-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
97 lines (81 loc) · 2.64 KB
/
pyproject.toml
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
[tool.poetry]
name = "mkdocutils"
version = "0.1.0"
description = ""
authors = ["Alexander Pushkov <alexander@notpushk.in>"]
[tool.poetry.dependencies]
python = "^3.8"
docutils = "^0.16"
jinja2 = "^2.11.2"
click = "^7.1.2"
Jinja2 = ">=2.10.1"
livereload = ">=2.5.1"
lunr = { version = "0.5.8", extras = ["languages"] }
PyYAML = ">=3.10"
tornado = ">=5.0"
ghp-import = ">=1.0"
pyyaml_env_tag = ">=0.1"
mkdocs-material = "^6.2.5"
recommonmark = "^0.7.1"
myst-parser = "^0.13.3"
[tool.poetry.dev-dependencies]
flakehell = "^0.9.0"
mypy = "^0.780"
wemake-python-styleguide = "^0.14.0"
add-trailing-comma = "^2.0.1"
autopep8 = "^1.5.3"
isort = "^4.3.21"
rope = "^0.17.0"
[tool.poetry.plugins."console_scripts"]
mkdocutils = "mkdocutils.__main__:cli"
[tool.poetry.plugins."mkdocs.themes"]
mkdocs = "mkdocutils.themes.mkdocs"
readthedocs = "mkdocutils.themes.readthedocs"
[tool.flakehell]
baseline = ".flakehell_baseline"
exclude = [".venv/**"]
format = "wemake"
inline-quotes = "double"
[tool.flakehell.plugins]
"flake8-*" = ["+*"]
mccabe = ["+*"]
nitpick = ["+*"]
"pep8-naming" = ["+*"]
pycodestyle = ["+*"]
pyflakes = ["+*"]
"wemake-python-styleguide" = ["+*"]
[tool.flakehell.exceptions."**"]
"*" = [
# These are purely subjective, the other ones will come with explanations:
"-D100", # Missing docstring in public module
"-D104", # Missing docstring in public package
"-D200", # One-line docstring should fit on one line with quotes
"-D202", # blank lines after long docstrings
"-WPS110", # Found wrong variable name
"-WPS125", # Found builtin shadowing (shadowing id is not a crime :-)
"-WPS300", # Found local folder import
"-WPS305", # Found `f` string
"-WPS332", # Found walrus operator
"-WPS430", # Found nested function
# Upstream doesn't have a uniform quote style:
"-Q000", # Remove bad quotes
# Not yet configured properly but seems useful:
"-DAR", # https://github.com/terrencepreilly/darglint#error-codes
# Ignored for now but probably should bump the limit:
"-E501", # line too long
# False positives:
"-E800", # Found commented out code
# Doesn't play well with f-strings:
"-WPS226", # Found string constant over-use
# Useful in some cases, maybe use as noqa instead:
"-WPS412", # Found `__init__.py` module with logic
# What's the purpose of protected modules if even
# the author can't import it?!
"-WPS436", # Found protected module import
# These two fail to detect new scope for control variables:
"-WPS440", # Found block variables overlap
"-WPS441", # Found control variable used after block
]
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"