Skip to content

Commit

Permalink
Create .pre-commit-config.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
trumbell authored Dec 10, 2024
1 parent ebe2ea8 commit d03d951
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
repos:
# default hooks provided by the pre-commit project
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-yaml
- id: check-toml
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
# autoflake: Automatically resolves starred imports, makes them explicit
- repo: https://github.com/myint/autoflake
rev: v2.3.1 # Specify the latest version
hooks:
- id: autoflake
args: [--remove-all-unused-imports, --expand-star-imports, --in-place]
# Ruff-related pre-commit hooks
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.284
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
types_or: [python, pyi]
# black: automatic pep8 compliance code formatting
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: black

0 comments on commit d03d951

Please sign in to comment.