-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
156 lines (143 loc) · 3.73 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
[project]
name = "sitri"
version = "2.2.12"
description = "Library for one endpoint config managment"
authors = [
{name = "Alexander Lavrov", email = "[email protected]"},
]
requires-python = ">=3.7,<3.12"
readme = "README.md"
license = {text = "MIT"}
keywords = ["packaging", "poetry", "config", "configuration", "managment", "vault", "pydantic", "json", "yaml", "environment"]
classifiers = ["Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules"]
[project.urls]
repository = "https://github.com/Egnod/sitri"
documentation = "https://sitri.readthedocs.io"
[project.optional-dependencies]
redis = ["redis>=4.3.4"]
vedis = ["vedis>=0.7.1"]
pyyaml = ["pyyaml>=6.0"]
hvac = ["hvac>=0.11.2"]
settings = ["pydantic>=1.9.1"]
orjson = ["orjson>=3.8.1"]
toml = ["tomli>=2.0.1", "tomli-w>=1.0.0"]
all = [
"redis>=4.3.4",
"vedis>=0.7.1",
"pyyaml>=6.0",
"hvac>=0.11.2",
"pydantic>=1.9.1",
"orjson>=3.8.1",
"tomli>=2.0.1",
"tomli-w>=1.0.0"
]
[tool.pdm]
[tool.pdm.dev-dependencies]
dev = [
"pytest==6.2.5",
"pytest-mock==3.7.0",
"coverage==6.3.2",
"pytest-cov==3.0.0",
"pytest-lazy-fixture==0.6.3",
"pytest-cases==3.6.11",
"pre-commit==2.20.0",
"commitizen==2.29.5",
"doq==0.9.1",
"mkdocs==1.4.1",
"mkdocs-material==8.5.10",
"mkdocstrings[python]==0.19.0"
]
[tool.pdm.build]
includes = []
[build-system]
requires = ["pdm-pep517>=1.0.0"]
build-backend = "pdm.pep517.api"
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["setup.py", "docs", "build"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
[tool.black]
line-length = 120
include = '\.pyi?$'
preview = true
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| migrations
)
)
'''
[tool.isort]
known_first_party = "sitri"
line_length = 120
profile = "black"
multi_line_output = 3
include_trailing_comma = true
use_parentheses = true
[tool.pycln]
all = true
[tool.mypy]
ignore_missing_imports = true
no_site_packages = true
strict_optional = false
strict = true
allow_subclassing_any = true
allow_untyped_calls = true
pretty = true
show_error_codes = true
implicit_reexport = true
allow_untyped_decorators = true
warn_return_any = false
disable_error_code = ["valid-type", "call-arg"]
[tool.commitizen]
name = "cz_conventional_commits"
version = "2.2.12"
tag_format = "$major.$minor.$patch"
version_files = [
"sitri/__init__.py",
"pyproject.toml",
]
style = [
["qmark", "fg:#ff9d00 bold"],
["question", "bold"],
["answer", "fg:#ff9d00 bold"],
["pointer", "fg:#ff9d00 bold"],
["highlighted", "fg:#ff9d00 bold"],
["selected", "fg:#cc5454"],
["separator", "fg:#cc5454"],
["instruction", ""],
["text", ""],
["disabled", "fg:#858585 italic"]
]
[tool.pytest.ini_options]
addopts = "--cov=sitri tests/unit/configs/ tests/unit/config/ tests/"
[tool.flake8]
max-line-length = 120
max-complexity = 18
select = ["B","C","E","F","W","T4","B9"]
ignore = ["E203", "E266", "E501", "W503", "F403", "F401", "B008", "E402", "B902"]