-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathpyproject.toml
133 lines (121 loc) · 3.11 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
[tool.poetry]
name = "python-clean-architecture"
version = "0.0.7"
description = "A Python toolkit for applications driven by the Clean Architecture"
authors = [
"lhaze <github@lhaze.name>",
]
license = "MIT License"
readme = "README.md"
homepage = "https://github.com/pcah/python-clean-architecture"
repository = "https://github.com/pcah/python-clean-architecture"
keywords = [
"python",
"architecture",
"design-patterns"
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"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",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Intended Audience :: Developers",
"Development Status :: 2 - Pre-Alpha",
]
packages = [
{ include = "pca" },
]
[tool.poetry.dependencies]
python = "^3.6.1"
"ruamel.yaml" = "^0.16.12"
JsonWeb = "0.8.2"
dataclasses = { version = "^0.8", python = ">=3.6,<3.7" }
marshmallow = "^3.9.1"
[tool.poetry.dev-dependencies]
# "gitpython",
# 'twine',
# 'virtualenv',
# 'wheel',
black = { version = "^20.8b1", markers = "platform_python_implementation!='PyPy'" }
coverage = "^5.3"
flake8 = "^3.8.4"
ipython = [
{version = "^7.19.0", python = "^3.7"},
{version = "~7.16.0", python = "3.6"},
]
isort = "^5.6.4"
mock = "^4.0.2"
pdbpp = "^0.10.2"
pre-commit = "^2.9.2"
pyfakefs = "^4.3.2"
pytest = "^6.1.2"
pytest-cov = "^2.10.1"
pytest-mock = "^3.3.1"
tinydb = { version = "^4.5.1", optional = true }
[tool.poetry.extras]
tinydb = ["tinydb"]
[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",]
skip_glob = ["*/setup.py"]
filter_files = true
known_first_party = ["pca", "devops"]
[tool.pytest.ini_options]
python_files = [
"pca/**/tests/**/*.py",
"pca/**/tests/*.py",
"devops/**/tests/*.py",
]
addopts = "--cov-fail-under=90 --tb=short"
[tool.coverage.run]
source = ["pca"]
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 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__.:",
]