Skip to content

Commit

Permalink
update pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Oct 12, 2024
1 parent 071b814 commit eb7093c
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit eb7093c

Please sign in to comment.