Apply swh-py-template v0.3.3 with copier

Bump development tools: mypy, codespell, isort, ...

Move all tools configuration in pyproject.toml.

Remove no longer needed mypy overrides.
This commit is contained in:
Antoine Lambert 2025-02-14 13:32:03 +01:00
parent a3d66736a4
commit edef3b850c
No known key found for this signature in database
GPG key ID: D026E5C2F802586D
8 changed files with 53 additions and 99 deletions

View file

@ -1,18 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-json
- id: check-yaml
- repo: https://github.com/python/black
rev: 24.8.0
rev: 25.1.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
@ -20,16 +20,16 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies: [flake8-bugbear==24.4.26]
additional_dependencies: [flake8-bugbear==24.12.12, flake8-pyproject]
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
rev: v2.4.1
hooks:
- id: codespell
name: Check source code spelling
exclude: ^(swh/lister/.*/tests/data/.*)$
args: [-L crate]
stages: [commit]
stages: [pre-commit]
- id: codespell
name: Check commit message spelling
args: [-L crate]