Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
- uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb
with:
python-version: ${{ matrix.python-version }}
- name: Cache pre-commit
uses: actions/cache@4.2.2
- name: Cache prek
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-|${{ matrix.python-version }}|${{ hashFiles('.pre-commit-config.yaml') }}
path: ~/.cache/prek
key: prek-|${{ matrix.python-version }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Lint
run: |
uv run pre-commit run --all-files
uv run prek run --all-files
- name: Lint GitHub Actions
uses: eifinger/actionlint-action@v1
80 changes: 10 additions & 70 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,53 +17,20 @@ repos:
- id: prettier
name: 💄 Ensuring files are prettier
types: [yaml, json, markdown]
- repo: local
- repo: builtin
hooks:
- id: check-ast
name: 🐍 Check Python AST
language: system
types: [python]
entry: uv run check-ast
- id: check-case-conflict
name: 🔠 Check for case conflicts
language: system
entry: uv run check-case-conflict
- id: check-docstring-first
name: ℹ️ Check docstring is first
language: system
types: [python]
entry: uv run check-docstring-first
- id: check-executables-have-shebangs
name: 🧐 Check that executables have shebangs
language: system
types: [text, executable]
entry: uv run check-executables-have-shebangs
stages: [pre-commit, pre-push, manual]
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
name: { Check JSON files
language: system
types: [json]
entry: uv run check-json
- id: check-toml
- id: check-merge-conflict
name: 💥 Check for merge conflicts
language: system
types: [text]
entry: uv run check-merge-conflict
- id: detect-private-key
- id: check-executables-have-shebangs
stages: [pre-commit, pre-push, manual]
- id: check-symlinks
name: 🔗 Check for broken symlinks
language: system
types: [symlink]
entry: uv run check-symlinks
- id: check-toml
name: ✅ Check TOML files
language: system
types: [toml]
entry: uv run check-toml
- id: check-xml
name: ✅ Check XML files
entry: check-xml
language: system
types: [xml]
- repo: local
hooks:
- id: codespell
name: ✅ Check code for common misspellings
language: system
Expand All @@ -75,27 +42,6 @@ repos:
docs/openapi_v8.yaml
)$
entry: uv run codespell --ignore-words=.codespell
- id: debug-statements
name: 🪵 Debug Statements and imports (Python)
language: system
types: [python]
entry: uv run debug-statement-hook
- id: detect-private-key
name: 🕵️ Detect Private Keys
language: system
types: [text]
entry: uv run detect-private-key
- id: end-of-file-fixer
name: ⮐ Fix End of Files
language: system
types: [text]
entry: uv run end-of-file-fixer
stages: [pre-commit, pre-push, manual]
- id: fix-byte-order-marker
name: 🚏 Fix UTF-8 byte order marker
language: system
types: [text]
entry: uv run fix-byte-order-marker
- id: mypy
name: 🆎 Static type checking using mypy
language: system
Expand All @@ -108,12 +54,6 @@ repos:
types: [python]
entry: uv run pytest
pass_filenames: false
- id: trailing-whitespace
name: ✄ Trim Trailing Whitespace
language: system
types: [text]
entry: uv run trailing-whitespace-fixer
stages: [pre-commit, pre-push, manual]
- id: yamllint
name: 🎗 Check YAML files with yamllint
language: system
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ dev = [
"ruff>=0.11.12",
"codespell>=2.4.1",
"mypy>=1.16.0",
"pre-commit>=4.2.0",
"pre-commit-hooks>=5.0.0",
"prek>=0.3.0",
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"pytest-asyncio>=1.0.0",
Expand Down
Loading