aio-libs / aiomcache

Minimal asyncio memcached client
BSD 2-Clause "Simplified" License
141 stars 38 forks source link

param `max-line-length = 90` not working #405

Closed ArtemIsmagilov closed 5 months ago

ArtemIsmagilov commented 5 months ago

i try linting code. run

flake8 .

my code have line length ~100, but flake8 command no show this error. i try change max-doc-length = 40 and this changes was raise error nut not max-line-length = 40 Need fix this bug

ArtemIsmagilov commented 5 months ago

why ?

ignore = E226, ``E501``, E722, W503

https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes

Dreamsorcerer commented 5 months ago

why ?

Read the comments? https://github.com/aio-libs/aiomcache/blob/97039327bec1aca5c09e7268f9846cf376ff97ad/.flake8#L7-L10

ArtemIsmagilov commented 5 months ago

Indeed, I just didn't read the code carefully, I need to read the code more carefully.

B950: Line too long. This is a pragmatic equivalent of pycodestyle’s E501: it considers “max-line-length” but only triggers when the value has been exceeded by more than 10%.

https://pypi.org/project/flake8-bugbear/