Philipp Wolfer
34881b5cb1
PICARD-1856: Use gettext.pgettext in Python 3.8
...
If available, use gettext.pgettext. Fall back to custom implementation for older Python versions.
2020-06-24 19:31:08 +02:00
Philipp Wolfer
8c219d16a5
Enable flake8 E402: Module level import not at top of file
...
This also removes some exceptions for isort which are not really necessary.
2020-05-13 17:04:11 +02:00
Philipp Wolfer
fb83a8e76b
Enable flake8 E265: Block comment should start with '# '
...
Most changes involve replacing non-breaking space with a simple space after the #.
2020-05-13 11:03:13 +02:00
Philipp Wolfer
683bcb499f
PEP8 fixes, allows for successful check with flake8
...
Ignore some additional checks globally that don't make much sense for our current code.
2019-08-15 15:10:35 +02:00
Philipp Wolfer
fa5ae617fe
PEP8: Line break before binary operator
2019-03-29 11:11:34 +01:00
Philipp Wolfer
801c7f8f35
Ignore the ui_*.py files for calculating testing code coverage.
2019-03-29 09:47:20 +00:00
Sambhav Kothari
d9a9c5bf0a
Update flake8 config with new builtins
2017-04-07 16:09:44 +05:30
Wieland Hoffmann
db9072bcaa
Add setup.cfg to ignore flake8 errors
...
This ignores E501 (line too long), some indentation related errors and
configures gettext functions as known builtins, which makes the error
list for most files very short.
Messages in the generated UI files are ignored as well.
This reduces the number of warnings from ~2300 to ~200.
2016-11-20 12:50:04 +01:00