Skip to content

Commit 62b70fe

Browse files
committed
style: re-format pyproject.toml
1 parent 8028f35 commit 62b70fe

1 file changed

Lines changed: 12 additions & 44 deletions

File tree

pyproject.toml

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,7 @@ build = "mkdocs build --config-file=docs/mkdocs.yml"
133133
serve = "mkdocs serve --verbose --config-file=docs/mkdocs.yml"
134134
deploy = "mike deploy --push --update-aliases $(hatch version) latest --config-file=docs/mkdocs.yml"
135135

136-
# ruff
137-
# Ref: https://docs.astral.sh/ruff/configuration/
138-
# ------------------------------------------------------------------------------
139-
140-
[tool.ruff]
136+
[tool.ruff] # Ref: https://docs.astral.sh/ruff/configuration/
141137
line-length = 120
142138
src = [
143139
"src",
@@ -168,6 +164,10 @@ lint.extend-select = [
168164
"W", # pycodestyle
169165
"YTT", # flake8-2020
170166
]
167+
lint.ignore = [
168+
"D105", # undocumented-magic-method
169+
"D107", # undocumented-public-init
170+
]
171171
lint.per-file-ignores."src/re3data/__about__.py" = [
172172
"D100", # undocumented-public-module
173173
]
@@ -183,16 +183,8 @@ lint.isort.known-first-party = [
183183
"re3data",
184184
]
185185
lint.pydocstyle.convention = "google"
186-
lint.ignore = [
187-
"D105", # undocumented-magic-method
188-
"D107", # undocumented-public-init
189-
]
190-
191-
# sp-repo-review
192-
# Ref: https://github.com/scientific-python/cookie/tree/main#list-of-checks
193-
# ------------------------------------------------------------------------------
194186

195-
[tool.repo-review]
187+
[tool.repo-review] # Ref: https://github.com/scientific-python/cookie/tree/main#list-of-checks
196188
ignore = [
197189
# PC is Pre-commit
198190
"PC111", # blacken-docs
@@ -202,11 +194,7 @@ ignore = [
202194
"RTD", # read the docs
203195
]
204196

205-
# pytest
206-
# Ref: https://docs.pytest.org/en/stable/customize.html
207-
# ------------------------------------------------------------------------------
208-
209-
[tool.pytest.ini_options]
197+
[tool.pytest.ini_options] # Ref: https://docs.pytest.org/en/stable/customize.html
210198
minversion = "8.0"
211199
addopts = [
212200
"-ra",
@@ -221,11 +209,7 @@ log_cli_level = "INFO"
221209
xfail_strict = true
222210
testpaths = "tests"
223211

224-
# coverage.py
225-
# Ref: https://coverage.readthedocs.io/en/latest/config.html
226-
# ------------------------------------------------------------------------------
227-
228-
[tool.coverage.run]
212+
[tool.coverage.run] # Ref: https://coverage.readthedocs.io/en/latest/config.html
229213
branch = true
230214
parallel = true
231215
source = [
@@ -245,11 +229,7 @@ show_missing = true
245229
skip_covered = true
246230
skip_empty = true
247231

248-
# mypy
249-
# Ref: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
250-
# ------------------------------------------------------------------------------
251-
252-
[tool.mypy]
232+
[tool.mypy] # Ref: https://mypy.readthedocs.io/en/stable/config_file.html#using-a-pyproject-toml-file
253233
python_version = "3.10"
254234
strict = true
255235
pretty = true
@@ -262,19 +242,11 @@ enable_error_code = [
262242
]
263243
warn_unreachable = true
264244

265-
# licensecheck
266-
# Ref: https://github.com/FHPythonUtils/LicenseCheck/#example-1-pyprojecttoml
267-
# ------------------------------------------------------------------------------
268-
269-
[tool.licensecheck]
245+
[tool.licensecheck] # Ref: https://github.com/FHPythonUtils/LicenseCheck/#example-1-pyprojecttoml
270246
using = "PEP631"
271247
format = "ansi"
272248

273-
# python-semantic-release
274-
# Ref: https://python-semantic-release.readthedocs.io/en/latest/configuration.html#settings
275-
# ------------------------------------------------------------------------------
276-
277-
[tool.semantic_release]
249+
[tool.semantic_release] # Ref: https://python-semantic-release.readthedocs.io/en/latest/configuration.html#settings
278250
commit_author = "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
279251
commit_message = "chore: release {version}\n\nAutomatically generated by python-semantic-release [skip ci]"
280252
major_on_zero = false
@@ -292,11 +264,7 @@ python -m build --installer=uv
292264
changelog.template_dir = ".github/templates"
293265
changelog.environment.keep_trailing_newline = true
294266

295-
# typos
296-
# Ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md
297-
# ------------------------------------------------------------------------------
298-
299-
[tool.typos]
267+
[tool.typos] # Ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md
300268
# add "spellchecker:disable-line" to ignore specific lines
301269
default.extend-ignore-re = [
302270
"(?Rm)^.*# spellchecker:disable-line$",

0 commit comments

Comments
 (0)