-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.cfg
43 lines (41 loc) · 1.85 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[egg_info]
# Append a zero at the end as a workaround for setuptools bug (pypa/pip#9446)
# see https://github.com/pypa/pip/issues/9446
tag_build = .dev0
tag_date = 0
tag_svn_revision = 0
[flake8]
# H101 Include your name with TODOs as in # TODO(yourname). This makes it easier to find out who the author of the comment was.
# H302 Do not import objects, only modules DEPRICATED
# H404 Multi line docstrings should start without a leading new line.
# H405 multi line docstring summary not separated with an empty line
# H301 Do not import more than one module per line (*)
# H306 Alphabetically order your imports by the full module path.
# H904 Wrap long lines in parentheses instead of a backslash
# E203 whitespace before ':' " on list slice.
# E266 too many leading ‘#’ for block comment
# E252 missing whitespace around parameter equals
# w503 line break occurred before a binary operator (black and flake disagree)
# E402 module level import not at top of file
# E203 whitespaces and the slice operator. (black and flake disagree)
ignore = H405,H404,H302,H306,H301,H101,H801,E402,W503,E252,E203
max-line-length = 128
exclude = **/.env,.venv,.git,.tox,dist,doc,**egg
copyright-check=True
copyright-author=Inmanta
# C errors are not selected by default, so add them to the selection
select = E,F,W,C,BLK,I
# make sure projects in examples dir are never considered as separate projects rather than depending on how check is invoked
black-config=pyproject.toml
[isort]
profile=black
multi_line_output=3
include_trailing_comma=True
force_grid_wrap=0
use_parentheses=True
#line_length=128
default_section=FIRSTPARTY
# When tox runs isort it does not label all 1st and 3rd party packages correct, this causes a difference in sorting between
# normal and tox. This list forces these packages
known_first_party=inmanta,inmanta_tests
known_third_party=pytest,pydantic,pkg_resources,yaml,tornado