Skip to content

Commit

Permalink
build: update pyproject.toml project settings (#273)
Browse files Browse the repository at this point in the history
Fixes: #266
  • Loading branch information
afuetterer authored Apr 3, 2024
1 parent c943ac4 commit d0f8fdb
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = [
"oai-pmh",
"oai-pmh-client",
]
license = "BSD-3-Clause"
license = {text = "BSD-3-Clause"}
authors = [
{ name = "Heinz-Alexander Fütterer" },
]
Expand Down Expand Up @@ -129,7 +129,7 @@ update-citation = """

[tool.ruff]
line-length = 120
src = ["src"]
src = ["src", "tests"]

[tool.ruff.format]
# Ref: https://docs.astral.sh/ruff/settings/#format
Expand All @@ -142,7 +142,6 @@ extend-select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"FURB", # refurb
"I", # isort
"G", # flake8-logging-format
"PERF", # perflint-perf
Expand All @@ -164,6 +163,8 @@ ignore = [
unfixable = [
"F401", # unused-import
]
isort.known-first-party = ["oaipmh_scythe"]
pydocstyle.convention = "google"

[tool.ruff.lint.per-file-ignores]
"src/oaipmh_scythe/__about__.py" = [
Expand All @@ -178,12 +179,6 @@ unfixable = [
"PLR2004", # magic-value-comparison
]

[tool.ruff.lint.isort]
known-first-party = ["oaipmh_scythe"]

[tool.ruff.lint.pydocstyle]
convention = "google"

# sp-repo-review
# Ref: https://github.com/scientific-python/cookie/tree/main#list-of-checks
# ------------------------------------------------------------------------------
Expand All @@ -204,7 +199,7 @@ ignore = [
# ------------------------------------------------------------------------------

[tool.pytest.ini_options]
minversion = "7.0"
minversion = "8.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
filterwarnings = ["error"]
log_cli_level = "INFO"
Expand Down Expand Up @@ -241,8 +236,9 @@ skip_empty = true
python_version = "3.10"
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
warn_unreachable = true

# licensecheck
# Ref: https://github.com/FHPythonUtils/LicenseCheck/#example-1-pyprojecttoml
Expand All @@ -268,12 +264,8 @@ build_command = """
python -m pip install build
python -m build
"""

[tool.semantic_release.changelog]
template_dir = ".github/templates"

[tool.semantic_release.changelog.environment]
keep_trailing_newline = true
changelog.template_dir = ".github/templates"
changelog.environment.keep_trailing_newline = true

# typos
# Ref: https://github.com/crate-ci/typos/blob/master/docs/reference.md
Expand Down

0 comments on commit d0f8fdb

Please sign in to comment.