Skip to content

Commit

Permalink
Added .pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
shenoynikhil committed Sep 25, 2023
1 parent 0f21262 commit a305032
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-yaml
- id: check-toml
- id: check-json
- id: check-merge-conflict
- id: requirements-txt-fixer
- id: detect-private-key
- repo: https://github.com/psf/black
rev: 23.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.241'
hooks:
- id: ruff

0 comments on commit a305032

Please sign in to comment.