Skip to content

Commit

Permalink
init a pre-commit file
Browse files Browse the repository at this point in the history
  • Loading branch information
shashankbansal6 authored and effigies committed Dec 7, 2021
1 parent 82f2633 commit 837f7e3
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-json
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 21.7b0
hooks:
- id: black
exclude: ^(fitlins/_version.py|versioneer.py)
- repo: https://github.com/pycqa/isort
rev: 5.9.3
hooks:
- id: isort
name: Sort python imports (isort)
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/asottile/pyupgrade
rev: v2.23.3
hooks:
- id: pyupgrade
exclude: ^(fitlins/_version.py|versioneer.py)

0 comments on commit 837f7e3

Please sign in to comment.