Skip to content

Commit

Permalink
[#53] Perf: improve pre-commit-config
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanofusai committed Dec 9, 2024
1 parent ef20276 commit c9ad25e
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,26 @@ ci:
- uv-lock
default_language_version:
python: python3.12
fail_fast: true
repos:
# Generic file checks and fixes
# Specific checks and fixes for Git
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args:
- -c
- title-match-regex.regex=^\[#\d+\]\s(Build|Bump|Chore|Ci|Docs|Feat|Fix|Perf|Refactor|Revert|Style|Test):\s[a-z].*$
- --ignore=B6
- --msg-filename
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args:
- --branch
- main
# Generic checks and fixes
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
Expand Down Expand Up @@ -36,6 +54,12 @@ repos:
- -formatter
- eof_newline=true
# Specific checks and fixes for Python files
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
additional_dependencies:
- types-redis==4.6.0.20241004
- repo: https://github.com/asottile/pyupgrade
rev: v3.18.0
hooks:
Expand All @@ -47,23 +71,6 @@ repos:
args:
- --fix
- id: ruff-format
# Specific checks and fixes for Git
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
args:
- -c
- title-match-regex.regex=^\[#\d+\]\s(Build|Bump|Chore|Ci|Docs|Feat|Fix|Perf|Refactor|Revert|Style|Test):\s[a-z].*$
- --ignore=B6
- --msg-filename
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: no-commit-to-branch
args:
- --branch
- main
# Dependency management
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.6
Expand Down

0 comments on commit c9ad25e

Please sign in to comment.