This repository has been archived by the owner on Jan 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
pyproject.toml
180 lines (161 loc) · 4.43 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
[tool.flakehell]
exclude = ["example.py", "setup.py", "README.rst"]
max_line_length = 120
show_source = true
[tool.flakehell.plugins]
pycodestyle = ["+*"]
pyflakes = ["+*"]
flake8-commas = ["+*"]
flake8-quotes = ["+*"]
pylint = ["+F*", "+E*", "-E0611", "-E1101", "-E0401", "-E1102", "-E1123"]
# -- DEPHELL -- #
[tool.dephell.main]
from = {format = "flit", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
envs = ["main", "dev"]
tag = "v."
command = "python -m flakehell lint"
[tool.dephell.pytest]
from = {format = "flit", path = "pyproject.toml"}
envs = ["main", "dev"]
tests = ["tests"]
command = "python -m pytest tests/"
[tool.dephell.docs]
from = {format = "flit", path = "pyproject.toml"}
envs = ["docs"]
command = "sphinx-build -W docs docs/build"
[tool.dephell.isort]
from = {format = "flit", path = "pyproject.toml"}
envs = ["main", "dev"]
command = "isort -rc -y"
[tool.dephell.typing]
from = {format = "flit", path = "pyproject.toml"}
envs = ["main"]
command = "mypy --ignore-missing-imports --allow-redefinition flakehell/"
# -- ISORT -- #
[tool.isort]
line_length = 100
combine_as_imports = true
balanced_wrapping = true
lines_after_imports = 2
include_trailing_comma = true
not_skip = "__init__.py"
multi_line_output = 5
import_heading_stdlib = "built-in"
import_heading_thirdparty = "external"
import_heading_firstparty = "project"
import_heading_localfolder = "app"
# -- FLIT -- #
[tool.flit.metadata]
module="flakehell"
author="Gram (@orsinium)"
author-email="master_fess@mail.ru"
home-page="https://github.com/life4/flakehell"
requires-python=">=3.5"
requires=[
"colorama",
"entrypoints",
"flake8>=3.8.0",
"pygments",
"toml",
"urllib3",
]
description-file="README.md"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: Flake8",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
[tool.flit.metadata.urls]
Documentation = "https://flakehell.readthedocs.io/"
[tool.flit.scripts]
flakehell = "flakehell:entrypoint"
flake8helled = "flakehell:flake8_entrypoint"
[tool.flit.entrypoints."flake8.extension"]
pylint = "flakehell.plugins:PyLintChecker"
[tool.flit.entrypoints."flake8.report"]
baseline = "flakehell.formatters:BaseLineFormatter"
colored = "flakehell.formatters:ColoredFormatter"
gitlab = "flakehell.formatters:GitlabFormatter"
grouped = "flakehell.formatters:GroupedFormatter"
json = "flakehell.formatters:JSONFormatter"
stat = "flakehell.formatters:StatFormatter"
[tool.flit.metadata.requires-extra]
docs = [
"alabaster",
"pygments-github-lexers",
"recommonmark",
"sphinx",
]
dev = [
"dlint",
"flake8-2020",
"flake8-aaa",
"flake8-absolute-import",
"flake8-alfred",
"flake8-annotations-complexity",
"flake8-bandit",
"flake8-black",
"flake8-broken-line",
"flake8-bugbear",
"flake8-builtins",
"flake8-coding",
"flake8-cognitive-complexity",
"flake8-commas",
"flake8-comprehensions",
"flake8-debugger",
"flake8-django",
"flake8-docstrings",
"flake8-eradicate",
"flake8-executable",
"flake8-expression-complexity",
"flake8-fixme",
"flake8-functions",
"flake8-future-import",
"flake8-import-order",
"flake8-isort",
"flake8-logging-format",
"flake8-mock",
"flake8-mutable",
"flake8-mypy",
"flake8-pep3101",
"flake8-pie",
"flake8-print",
"flake8-printf-formatting",
"flake8-pyi",
"flake8-pytest-style",
"flake8-pytest",
"flake8-quotes",
"flake8-requirements",
"flake8-rst-docstrings",
"flake8-scrapy",
"flake8-spellcheck",
"flake8-sql",
"flake8-strict",
"flake8-string-format",
"flake8-tidy-imports",
"flake8-todo",
"flake8-use-fstring",
"flake8-variables-names",
"mccabe",
"pandas-vet",
"pep8-naming",
"pylint",
"typing-extensions", # required by WPS but isn't installed by DepHell
"wemake-python-styleguide",
"pytest",
"isort[pyproject]",
]
[build-system]
requires = ["flit_core >=2,<4"]
build-backend = "flit_core.buildapi"