Skip to content

Commit

Permalink
Migrate Ruff config
Browse files Browse the repository at this point in the history
  • Loading branch information
JamiePhonic authored Oct 16, 2024
1 parent 741de57 commit a253684
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ repos:
types: [python]
entry: scripts/run-in-env.sh ruff check --fix
require_serial: true
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: ruff-format
name: 🐶 Ruff Formatter
language: system
types: [python]
entry: scripts/run-in-env.sh ruff format
require_serial: true
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: check-ast
name: 🐍 Check Python AST
language: system
Expand All @@ -36,7 +36,7 @@ repos:
language: system
types: [text, executable]
entry: scripts/run-in-env.sh check-executables-have-shebangs
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: check-json
name: { Check JSON files
language: system
Expand Down Expand Up @@ -72,7 +72,7 @@ repos:
language: system
types: [text]
entry: scripts/run-in-env.sh end-of-file-fixer
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
- id: no-commit-to-branch
name: 🛑 Don't commit to main branch
language: system
Expand All @@ -86,7 +86,7 @@ repos:
language: system
types: [text]
entry: scripts/run-in-env.sh trailing-whitespace-fixer
stages: [commit, push, manual]
stages: [pre-commit, pre-push, manual]
# TODO: enable mypy and work out issues
# to become a fully typed package
# - id: mypy
Expand Down

0 comments on commit a253684

Please sign in to comment.