Skip to content

Commit 3f1e557

Browse files
committed
chore(deps): configure pyproject-fmt policy
1 parent 99cbdc0 commit 3f1e557

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

pyproject.toml

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
[build-system]
22
build-backend = "poetry.core.masonry.api"
3-
43
requires = [
54
"cffi>=1.16",
65
"poetry-core>=1.9",
@@ -112,15 +111,12 @@ test-command = 'python -c "from pysatl_core.sampling.unuran.bindings import _unu
112111
target-version = "py312"
113112
line-length = 100
114113
exclude = [ "subprojects" ]
115-
116114
format.line-ending = "lf"
117-
118115
lint.select = [ "B", "C4", "E", "F", "I", "ISC", "PIE", "SIM", "TID", "UP" ]
119116
lint.ignore = [ "B008", "E203" ]
120117
lint.per-file-ignores."**/__init__.py" = [ "F403" ]
121118
lint.fixable = [ "ALL" ]
122-
lint.unfixable = [ ]
123-
119+
lint.unfixable = []
124120
lint.isort.combine-as-imports = true
125121
lint.isort.force-single-line = false
126122
lint.isort.known-first-party = [ "pysatl_core" ]
@@ -129,22 +125,17 @@ lint.isort.order-by-type = true
129125
[tool.codespell]
130126
skip = "subprojects/**"
131127

132-
[tool.pytest.ini_options]
133-
addopts = "-q --cov=pysatl_core --cov-report=term-missing"
134-
testpaths = [ "tests" ]
135-
136-
[tool.coverage.run]
137-
source = [ "pysatl_core" ]
138-
branch = true
139-
parallel = true
140-
141-
[tool.coverage.report]
142-
show_missing = true
143-
skip_covered = false
144-
exclude_lines = [
145-
"pragma: no cover",
146-
"if __name__ == .__main__.:",
128+
[tool.pyproject-fmt]
129+
expand_tables = [
130+
"tool.coverage.report",
131+
"tool.coverage.run",
132+
"tool.poetry.build",
133+
"tool.poetry.dependencies",
134+
"tool.poetry.group.dev.dependencies",
135+
"tool.poetry.group.docs.dependencies",
136+
"tool.pytest.ini_options",
147137
]
138+
skip_wrap_for_keys = [ "tool.cibuildwheel.test-command" ]
148139

149140
[tool.mypy]
150141
files = [ "src", "tests" ]
@@ -165,3 +156,20 @@ disallow_untyped_defs = false
165156
check_untyped_defs = true
166157
warn_return_any = false
167158
implicit_reexport = true
159+
160+
[tool.pytest.ini_options]
161+
addopts = "-q --cov=pysatl_core --cov-report=term-missing"
162+
testpaths = [ "tests" ]
163+
164+
[tool.coverage.report]
165+
show_missing = true
166+
skip_covered = false
167+
exclude_lines = [
168+
"pragma: no cover",
169+
"if __name__ == .__main__.:",
170+
]
171+
172+
[tool.coverage.run]
173+
source = [ "pysatl_core" ]
174+
branch = true
175+
parallel = true

0 commit comments

Comments
 (0)