BREAKING CHANGE: Minimum Python version is now 3.10 - Drop support for Python 3.8 (EOL Oct 2024) and 3.9 (EOL Oct 2025) - Add support for Python 3.11, 3.12, and 3.13 - Modernize type hints to Python 3.10+ syntax - Update pre-commit hooks to latest versions - Update GitHub Actions to latest versions - Bump version to 1.2.0
34 lines
952 B
YAML
34 lines
952 B
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
- id: check-added-large-files
|
|
- id: check-yaml
|
|
- id: pretty-format-json
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/akaihola/darker
|
|
rev: v2.1.1
|
|
hooks:
|
|
- id: darker
|
|
args:
|
|
- --isort
|
|
- --flynt
|
|
- --lint=flake8 --max-line-length=88 --ignore=E203,W503
|
|
- --lint=mypy # --strict # commenting strict for now as we haven't maintained typing completely
|
|
- --lint=pylint --max-line-length=88 --disable=W0511
|
|
additional_dependencies:
|
|
- black==26.1.0
|
|
- flake8==7.3.0
|
|
- flynt==1.0.6
|
|
- isort==7.0.0
|
|
- mypy==1.19.1
|
|
- pylint==4.0.4
|
|
|
|
- repo: https://github.com/opensource-nepal/commitlint
|
|
rev: v1.13.3
|
|
hooks:
|
|
- id: commitlint
|