-
Notifications
You must be signed in to change notification settings - Fork 25
/
pyproject.toml
103 lines (86 loc) 路 2.51 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
[tool.dephell.main]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "setuppy", path = "setup.py"}
tag = "v."
[tool.dephell.flake8]
from = {format = "pip", path = "requirements-flake.txt"}
python = ">=3.6"
command = "flake8"
# generate report:
# dephell venv run --env=pytest coverage report --show-missing
[tool.dephell.pytest]
from = {format = "poetry", path = "pyproject.toml"}
envs = ["main", "tests"]
command = "pytest --cov=deal tests/"
[tool.dephell.docs]
from = {format = "poetry", path = "pyproject.toml"}
envs = ["docs"]
command = "sphinx-build -W docs docs/build"
[tool.dephell.typing]
from = {format = "poetry", path = "pyproject.toml"}
envs = ["main", "tests"]
command = "mypy --ignore-missing-imports --allow-redefinition deal/"
[tool.dephell.isort]
from = {format = "poetry", path = "pyproject.toml"}
envs = ["main", "tests"]
command = "isort -rc -y ."
[tool.flakehell.plugins]
deal = ["+*"]
[tool.isort]
line_length = 90
combine_as_imports = true
balanced_wrapping = true
lines_after_imports = 2
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"
[tool.poetry]
name = "deal"
version = "3.6.2"
description = "Programming by contract"
license = "MIT"
authors = ["Gram <master_fess@mail.ru>"]
repository = "https://github.com/orsinium/deal"
readme = "README.md"
keywords = [
"deal", "contracts", "pre", "post", "invariant", "decorators",
"validation", "pythonic", "functional",
]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Quality Assurance",
]
[tool.poetry.dependencies]
python = ">=3.5"
astroid = "*"
hypothesis = "*"
typeguard = "*"
vaa = ">=0.2.1"
[tool.poetry.dev-dependencies]
# tests
coverage = "*"
isort = {extras = ["pyproject"], version = "*"}
marshmallow = "*"
mypy = "*"
pytest = "*"
pytest-cov = "*"
urllib3 = "*"
# docs
m2r = "*"
recommonmark = "*"
sphinx = "*"
sphinx-rtd-theme = "*"
[tool.poetry.extras]
tests = ["coverage", "isort", "marshmallow", "mypy", "pytest", "pytest-cov", "urllib3"]
docs = ["m2r", "recommonmark", "sphinx", "sphinx-rtd-theme", "urllib3"]
[tool.poetry.plugins."flake8.extension"]
DEAL = "deal.linter:Checker"