Skip to content

Commit

Permalink
Add Flake8, Isort and PyLint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed May 24, 2020
1 parent 30662c9 commit 4f6be26
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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=

0 comments on commit 4f6be26

Please sign in to comment.