-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
189 lines (169 loc) · 4.55 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
181
182
183
184
185
186
187
188
189
[tool.poetry]
name = "cornflakes"
version = "3.3.28" # <<FORCE_BUMP>>
description = "Create generic any easy way to manage Configs for your project"
authors = ["Semjon Geist <semjon.geist@ionos.com>"]
license = "Apache2.0"
readme = "README.rst"
homepage = "https://github.com/sgeist/cornflakes"
repository = "https://github.com/sgeist/cornflakes"
documentation = "https://cornflakes.readthedocs.io"
packages = [
{ include = "cornflakes"}
]
classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
include = [ # include cpp sources for not compiled dist
{ path = "inst/ext", format = "sdist" },
{ path = "inst/_cornflakes", format = "sdist" }
]
exclude = [
{ path = "cornflakes/__pycache__" }
]
[tool.poetry.dependencies]
python = ">=3.8,<4.0"
PyYAML = "^6.0.1"
toml = "^0.10.2"
rich-rst = "^1.1.7"
click = "^8.1.3"
rich = "13.5.2"
validators = ">=0.20,<0.23"
typing-extensions = "^4.7.1"
typeguard = "^4.1.3"
[tool.poetry.dev-dependencies]
pytype = {version = "2023.9.19", python = "<3.11,>=3.8"}
autoflake = "^2.2.1"
pytest = ">= 7.3.1"
coverage = {extras = ["toml"], version = ">=7.3.0"}
safety = ">=2.3.5"
typeguard = ">=4.1.3"
xdoctest = {extras = ["colors"], version = ">=1.1.1"}
sphinx = ">=7.1.2"
sphinx-autobuild = ">=2021.3.14"
pre-commit = ">=3.3.3"
#flake8 = ">=3.8.4"
black = ">=22.12.0"
#flake8-bandit = ">=2.1.2"
#flake8-bugbear = ">=21.4.3"
#flake8-docstrings = ">=1.5.0"
#flake8-rst-docstrings = ">=0.2.3"
pep8-naming = ">=0.11.1"
darglint = ">=1.8.1"
pre-commit-hooks = ">=4.4.0"
sphinx-rtd-theme = ">=1.3.0"
sphinx-click = ">=5.0.1"
Pygments = ">=2.16.1"
types-pkg-resources = ">=0.1.3"
types-requests = ">=2.31.0.2"
types-attrs = ">=19.1.0"
sphinx-rtd-dark-mode = ">=1.2.4"
sphinx-automodapi = ">=0.16.0"
Jinja2 = ">=3.1.2"
mypy = ">=1.5.1"
pyupgrade = ">=3.8.0"
myst_parser = ">=2.0.0"
breathe = ">=4.35.0"
Cython = ">=3.0.2"
mock = ">=5.1.0"
docutils = ">=0.18.1"
setuptools = "^68.2.2"
ninja = ">=1.11.1"
nox = "^2023.4.22"
nox-poetry = "^1.0.3"
compiledb = "^0.10.1"
isort = "^5.12.0"
virtualenv = "^20.24.5"
pybind11 = "^2.11.1"
pydantic = {extras = ["dotenv"], version = "^2.0"}
markdown-it-py = ">=3.0.0"
clang-format = "^16.0.6"
clang-tidy = "^15.0.2.1"
cpplint = "^1.6.1"
pydantic-settings = "^2.0.3"
types-pyyaml = "^6.0.12.11"
types-toml = "^0.10.8.7"
[tool.poetry.scripts]
cornflakes = "cornflakes.__main__:main"
#[[tool.poetry.source]]
#name = "cornflakes"
#url = "https://pypi.org/"
#priority = "primary"
#
#
#[[tool.poetry.source]]
#name = "PyPI"
#priority = "primary"
[tool.black]
line-length = 120
skip-string-normalization = false
[tool.ruff]
ignore = ["E501","D100","N813"]
line-length = 120
exclude =[".git","__pycache__","docs/source/conf.py,build*","dist/*",".venv","ext/*","setup*","tests/*","cmake-build-debug*"]
[tool.ruff.mccabe]
max-complexity = 10
[tool.flake8]
select = ["B","B9","C","D","DAR","E","F","N","RST","B","W"]
ignore = ["E203","E501","RST201","RST203","RST301","W503","D100","N813","RST304","WPS412"]
max-line-length = 120
max-complexity = 10
docstring-convention = "google"
per-file-ignores = ["tests/*:S101"]
exclude =[".git","__pycache__","docs/source/conf.py,build*","dist/*",".venv","ext/*","setup*","tests/*","cmake-build-debug*"]
strictness="long"
docstring_style="sphinx"
[tool.mypy]
strict = false
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
ignore_missing_imports = true
[pytype]
inputs = "cornflakes"
[tool.isort]
skip = ["__init__.py", "_enforce_types.py"] # isort different behaviour on ci
force_sort_within_sections=true
multi_line_output=3
include_trailing_comma=true
balanced_wrapping=true
line_length=120
profile = "black"
[tool.coverage.paths]
source = ["cornflakes", "*/site-packages"]
[tool.coverage.run]
branch = true
source = ["cornflakes"]
[tool.coverage.report]
show_missing = true
[tool.poetry.build]
script = "build.py"
generate-setup-file = true
[build-system]
requires = [
"poetry-core>=1.0.0",
"pybind11",
"setuptools",
"packaging",
"wheel",
"ninja",
"cmake>=3.12"
# "fastentrypoints"
]
#build-backend = "setuptools.build_meta"
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = ["src"]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
testpaths = ["tests"]
[tool.cibuildwheel]
test-command = "pytest {project}/tests"
before-build = "rm -rf {project}/build"
after-build = "rm -rf {project}/build"