Skip to content

Commit

Permalink
Merge pull request #8 from openzim/update_deps
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit74 authored Feb 5, 2024
2 parents 32bf990 + 6c50dcb commit d8a08b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/psf/black
rev: "23.12.1"
rev: "24.1.1"
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.3
rev: v0.2.0
hooks:
- id: ruff
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.348
rev: v1.1.349
hooks:
- id: pyright
name: pyright (system)
Expand Down
22 changes: 12 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ classifiers = [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]
dependencies = [
"hatchling==1.21.0",
"hatchling==1.21.1",
"packaging==23.2",
"toml==0.10.2", # to be replaced by tomllib once only 3.11 and above is supported
]
Expand All @@ -34,15 +34,15 @@ scripts = [
"invoke==2.2.0",
]
lint = [
"black==23.12.1",
"ruff==0.1.3",
"black==24.1.1",
"ruff==0.2.0",
]
check = [
"pyright==1.1.348",
"pyright==1.1.349",
]
test = [
"pytest==7.4.4",
"coverage==7.4.0",
"pytest==8.0.0",
"coverage==7.4.1",
]
dev = [
"pre-commit==3.6.0",
Expand Down Expand Up @@ -115,6 +115,8 @@ target-version = ['py38']
target-version = "py38"
line-length = 88
src = ["src"]

[tool.ruff.lint]
select = [
"A", # flake8-builtins
# "ANN", # flake8-annotations
Expand Down Expand Up @@ -191,17 +193,17 @@ unfixable = [
"F401",
]

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

[tool.ruff.flake8-bugbear]
[tool.ruff.lint.flake8-bugbear]
# add exceptions to B008 for fastapi.
extend-immutable-calls = ["fastapi.Depends", "fastapi.Query"]

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
# Tests can use magic values, assertions, and relative imports
"tests/**/*" = ["PLR2004", "S101", "TID252"]

Expand Down

0 comments on commit d8a08b7

Please sign in to comment.