diff --git a/setup.cfg b/setup.cfg index e1343b4..6c1a085 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,3 +8,63 @@ universal=1 [metadata] license_file = LICENSE + +[flake8] +exclude = build,.git,docs +ignore = E127,E128, +max-line-length = 100 +per-file-ignores = + # this file has many long lines, define it as OK + tests/full_output_test.py:E501 + +[isort] +line_length = 100 +indent = 4 +multi_line_output = 3 +length_sort = false +force_alphabetical_sort_within_sections = true +sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER +lines_after_imports = 2 +from_first = true +include_trailing_comma = true + +# the following sections are for pylint +[MASTER] +ignore=.git +persistent=no +load-plugins= + pylint.extensions.bad_builtin, + pylint.extensions.check_elif, + pylint.extensions.comparetozero, + pylint.extensions.emptystring, + pylint.extensions.mccabe, + pylint.extensions.overlapping_exceptions, + pylint.extensions.redefined_variable_type + +[MESSAGES CONTROL] +disable= + fixme, + duplicate-code, + empty-docstring, + logging-format-interpolation, + missing-docstring + +[REPORTS] +output-format=parseable +files-output=no +reports=no + +[FORMAT] +max-line-length=100 + +[VARIABLES] +dummy-variables-rgx=_|dummy + +[DESIGN] +min-public-methods=0 +max-attributes=15 +max-args=7 +max-parents=9 + +[EXCEPTIONS] +overgeneral-exceptions=