-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (113 loc) · 2.73 KB
/
pyproject.toml
File metadata and controls
124 lines (113 loc) · 2.73 KB
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
[tool.poetry]
name = "pca-errors"
version = "0.2.0"
description = "Declarative, parametrizable & L10n-independent errors for python-clean-architecture."
authors = [
"lhaze <github@lhaze.name>",
]
license = "MIT License"
readme = "README.md"
homepage = "https://github.com/pcah/pca-errors"
repository = "https://github.com/pcah/pca-errors"
keywords = [
"python",
"error-handling",
"design-patterns"
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Intended Audience :: Developers",
"Development Status :: 3 - Alpha",
]
packages = [
{ include = "pca" },
]
[tool.poetry.dependencies]
python = "^3.7"
[tool.poetry.dev-dependencies]
black = {version = "^20.8b1", markers = "platform_python_implementation!='PyPy'"}
coverage = "^5.3"
flake8 = "^3.8.4"
ipython = "^7.32.0"
isort = "^5.6.4"
mock = "^4.0.2"
pdbpp = "^0.10.2"
pre-commit = "^2.9.2"
pytest = "^6.1.2"
pytest-cov = "^2.10.1"
tox = "^3.24.1"
tox-gh-actions = "^2.6.0"
tox-poetry-installer = "^0.8.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 99
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''
[tool.isort]
profile = "black"
force_grid_wrap = 2
atomic = true
include_trailing_comma = true
lines_after_imports = 2
lines_between_types = 1
use_parentheses = true
src_paths = [
"pca/packages/errors",
"tests",
]
skip_glob = ["*/setup.py"]
filter_files = true
known_first_party = ["pca"]
[tool.pyright]
include = [
"pca/packages/errors/",
"tests",
]
[tool.pytest.ini_options]
addopts = "--cov-fail-under=100 --tb=short"
[tool.coverage.run]
source = ["pca.packages.errors"]
omit = [
"tests/*"
]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Don't complain about missing debug-only code:
"def __repr__",
# Don't complain about type-checking guards:
"TYPE_CHECKING",
# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",
# Don't complain if non-runnable code isn't run:
"if __name__ == .__main__.:",
]