@@ -25,38 +25,50 @@ mkdocs = "^1.1"
2525pymdown-extensions = " >=6.3, <9.0"
2626pytkdocs = " >=0.2.0, <0.8.0"
2727
28+ coverage = { version = " ^5.0.4" , optional = true }
29+ invoke = { version = " ^1.4.1" , optional = true }
30+ mypy = { version = " ^0.770" , optional = true }
31+ pytest = { version = " ^4.3" , optional = true }
32+ pytest-randomly = { version = " ^3.4.1" , optional = true }
33+ pytest-sugar = { version = " ^0.9.2" , optional = true }
34+ pytest-xdist = { version = " ^1.26" , optional = true }
35+
36+ [tool .poetry .extras ]
37+ tests = [" coverage" , " invoke" , " mypy" , " pytest" , " pytest-randomly" , " pytest-sugar" , " pytest-xdist" ]
38+
2839[tool .poetry .dev-dependencies ]
29- bandit = " ^1.5 "
30- black = " ^19.10b0 "
40+ autoflake = " ^1.3.1 "
41+ black = " ^20.8b1 "
3142coverage = " ^5.0.4"
3243failprint = " ^0.3.0"
33- flake8 = " ^3.6"
34- flake8-bandit = " ^2.1.2"
35- flake8-black = " ^0.1.1"
36- flake8-builtins = " ^1.5.2"
37- flake8-comprehensions = " ^3.2.2"
38- flake8-docstrings = " ^1.5.0"
39- flake8-isort = " ^3.0.0"
44+ flakehell = " ^0.6.0"
45+ flake8-black = " ^0.2.1"
46+ flake8-builtins = " ^1.5.3"
4047flake8-tidy-imports = " ^4.1.0"
4148flake8-variables-names = " ^0.0.3"
49+ flake8-pytest-style = " ^1.3.0"
4250git-changelog = " ^0.4.0"
51+ httpx = " ^0.13.3"
52+ invoke = " ^1.4.1"
4353ipython = " ^7.2"
4454isort = { version = " ^4.3" , extras = [" pyproject" ] }
4555jinja2-cli = " ^0.7.0"
4656mkdocs-material = " >=4.5, <6.0"
4757mypy = " ^0.770"
4858pytest = " ^4.3"
49- pytest-cov = " ^2.8 "
59+ pytest-randomly = " ^3.4.1 "
5060pytest-sugar = " ^0.9.2"
5161pytest-xdist = " ^1.26"
52- requests = " ^2.23.0"
5362toml = " ^0.10.0"
63+ wemake-python-styleguide = " ^0.14.1"
64+ wrapt = " ^1.12.1"
5465
5566[tool .poetry .plugins ."mkdocs .plugins" ]
5667mkdocstrings = " mkdocstrings.plugin:MkdocstringsPlugin"
5768
5869[tool .black ]
5970line-length = 120
71+ exclude = " tests/fixtures"
6072
6173[tool .isort ]
6274line_length = 120
@@ -67,3 +79,39 @@ balanced_wrapping = true
6779default_section = " THIRDPARTY"
6880known_first_party = " mkdocstrings"
6981include_trailing_comma = true
82+
83+ [tool .flakehell ]
84+ format = " colored"
85+ max_line_length = 132
86+ show_source = false
87+ exclude = [" tests/fixtures" ]
88+
89+ [tool .flakehell .plugins ]
90+ "*" = [
91+ " +*" ,
92+ " -RST*" , # we write docstrings in markdown, not rst
93+ " -A001" , # redundant with W0622 (builtin override), which is more precise about line number
94+ " -D105" , # missing docstring in magic method
95+ " -D212" , # multi-line docstring summary should start at the first line
96+ " -E203" , # whitespace before ‘:’ (incompatible with Black)
97+ " -Q000" , # black already deals with quoting
98+ " -S101" , # use of assert
99+ " -W503" , # line break before binary operator (incompatible with Black)
100+ " -C0116" , # redunant with D102 (missing docstring)
101+ " -C0301" , # line too long
102+ " -R0903" , # too few public methods
103+ " -R0913" , # too many methods
104+ " -R0914" , # too many local variables
105+ " -W0611" , # redundant with F401 (unused import)
106+ " -WPS305" , # f-strings
107+ " -WPS125" , # redundant with W0622 (builtin override), which is more precise about line number
108+ " -WPS202" , # too many module members
109+ " -WPS210" , # too many local variables
110+ " -WPS213" , # too many expressions
111+ " -WPS220" , # too deep nesting
112+ " -WPS226" , # string over-use: can't disable it per file?
113+ " -WPS326" , # implicit string concatenation
114+ " -WPS336" , # explicit string concatenation
115+ " -WPS412" , # __init__ modules with logic
116+ " -WPS433" , # redundant with C0415 (not top-level import)
117+ ]
0 commit comments