Skip to content

Commit

Permalink
Chore: Update project infrastructure
Browse files Browse the repository at this point in the history
Use more recent versions of ruff and mypy.
  • Loading branch information
amotl committed Apr 20, 2024
1 parent aa54a6e commit cddcd3a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ requires-python = ">=3.8"
license = { text = "LGPL 3, EUPL 1.2" }
keywords = [
"date",
"time",
"multi-language",
"parsing",
"time",
"utility",
"multi-language",
]
authors = [
{name = "Andreas Motl", email = "andreas.motl@panodata.org"},
Expand Down Expand Up @@ -72,10 +72,10 @@ dynamic = [
[project.optional-dependencies]
develop = [
"black<25",
"mypy==1.9.0",
"mypy<1.10",
"poethepoet<1",
"pyproject-fmt<1.8",
"ruff==0.3.7",
"ruff<0.5",
"validate-pyproject<0.17",
]
release = [
Expand Down Expand Up @@ -146,7 +146,7 @@ warn_redundant_casts = true
[tool.ruff]
line-length = 120

select = [
lint.select = [
# Bandit
"S",
# Bugbear
Expand Down Expand Up @@ -174,15 +174,15 @@ select = [
"RET",
]

ignore = [
lint.ignore = [
"RET505", # Unnecessary `elif` after `return` statement
]

extend-exclude = [
"examples/*",
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"] # Use of `assert` detected
"aika/cli.py" = ["T201"] # Allow `print`

Expand All @@ -199,11 +199,11 @@ format = [
{ cmd = "black ." },
# Configure Ruff not to auto-fix (remove!):
# unused imports (F401), unused variables (F841), `print` statements (T201), and commented-out code (ERA001).
{ cmd = "ruff --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
{ cmd = "pyproject-fmt pyproject.toml" },
{ cmd = "ruff check --fix --ignore=ERA --ignore=F401 --ignore=F841 --ignore=T20 --ignore=ERA001 ." },
{ cmd = "pyproject-fmt --keep-full-version pyproject.toml" },
]
lint = [
{ cmd = "ruff ." },
{ cmd = "ruff check ." },
{ cmd = "black --check ." },
{ cmd = "validate-pyproject pyproject.toml" },
{ cmd = "mypy" },
Expand Down

0 comments on commit cddcd3a

Please sign in to comment.