diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ee1f1400..c6c2ddff 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,28 +1,41 @@ -# .pre-commit-config.yaml file for https://github.com/zxdavb/evohome-async -# last updated 2024-06-26 -exclude: (^.secrets/|^docs/) +exclude: ^(.secrets|docs)/ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.6.4 + rev: v0.6.9 hooks: - id: ruff # linter - id: ruff-format # formatter + - repo: https://github.com/cdce8p/python-typing-update + rev: v0.6.0 + hooks: + # Run `python-typing-update` hook manually from time to time + # to update python typing syntax. + # Will require manual work, before submitting changes! + # pre-commit run --hook-stage manual python-typing-update --all-files + - id: python-typing-update + stages: [manual] + args: + - --py311-plus + - --force + - --keep-updates + files: ^(src|tests)/.+\.py$ + - repo: https://github.com/codespell-project/codespell rev: v2.3.0 hooks: - id: codespell args: - # --ignore-words-list=cant,wont + # --ignore-words-list= - --skip="./.*,*.csv,*.json,*.ambr" - --quiet-level=2 exclude_types: [csv, json, html] - exclude: ^tests/fixtures/|tests/snapshots/ + exclude: ^(tests/.+/fixtures|tests/.+/snapshots)/ - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-executables-have-shebangs # id: check-json # don't enable this one