Skip to content

Commit

Permalink
added recipe for precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryancheley committed Jan 25, 2025
1 parent 89ea59c commit e82c9a7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,22 @@ repos:
rev: 7.1.1
hooks:
- id: flake8
language_version: python3.10
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
name: isort (python)
language_version: python3.10
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
language_version: python3.10
- id: end-of-file-fixer
language_version: python3.10
- id: check-yaml
language_version: python3.10
- id: check-added-large-files
language_version: python3.10
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ docs:
sync branch:
git switch {{branch}}
git pull origin {{branch}}

pre-commit:
pre-commit run --all-files

0 comments on commit e82c9a7

Please sign in to comment.