Skip to content

Commit

Permalink
Add template 2.0.1 pre-commit and gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
joeshannon committed Mar 6, 2024
1 parent 074e0c1 commit d63ecd5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ __pycache__/
# Distribution / packaging
.Python
env/
.venv
build/
develop-eggs/
dist/
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-yaml
- id: check-merge-conflict

- repo: local
hooks:
- id: black
name: Run black
stages: [commit]
- id: ruff
name: lint with ruff
language: system
entry: black --check --diff
entry: ruff check --force-exclude
types: [python]
require_serial: true

- id: ruff
name: Run ruff
stages: [commit]
- id: ruff-format
name: format with ruff
language: system
entry: ruff
entry: ruff format --force-exclude
types: [python]
require_serial: true

0 comments on commit d63ecd5

Please sign in to comment.