4 ms·
Disable it in pylintrc. Pylint is unusable without a good config file anyway.
by sametmax 7y ago
Disable it in pylintrc. Pylint is unusable without a good config file anyway.
- sleavey 7y agoIdeally the defaults should be sensible. I have found they mostly are, except the f-string one.
- baq 7y agoon the contrary, i've seen code slow down by 50% due to a log.debug() that wasn't even emitted in prod. should've seen my face when i saw the pyspy flamechart.
- sametmax 7y agoFor something as finely tuned as pylint, my sensible default and your would never be the same. I don't want it to scream on a missing docstring for every single thing. I do want to be able to use a, b and x as variables. No, this root var is not a constant, don't ask me for uppercase. Etc.
- emidln 7y agopylint still sucks at partial function definitions. It wants to name anything that exists in the module scope that isn't an explicit function definition with CAPS_LOCK_MODE. $ pylint pylint_sucks_at_partials.py ************* Module pylint_sucks_at_partials pylint_sucks_at_partials.py:7:0: C0103: Constant name "add5" doesn't conform to UPPER_CASE naming style (invalid-name) The program in question: #!/usr/bin/env python """ proving pylint still sucks at partials """ from functools import partial from operator import add add5 = partial(add, 5) if __name__ == '__main__': import sys print(add5(int(sys.argv[1])))