Skip to content

Commit

Permalink
Test pre-comit config
Browse files Browse the repository at this point in the history
  • Loading branch information
sparul93 committed Feb 7, 2024
1 parent 23fbc4d commit 4a3668e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: check-ast
- id: trailing-whitespace
- id: check-added-large-files
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-json
# - id: check-shebang-scripts-are-executable
- id: pretty-format-json
- id: check-merge-conflict
- id: mixed-line-ending
- id: requirements-txt-fixer
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
args: ["--profile", "black"]
- repo: https://github.com/PyCQA/autoflake
rev: v2.0.1
hooks:
- id: autoflake
args: ["--remove-unused-variables", "--expand-star-imports", "--remove-all-unused-imports"]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black

0 comments on commit 4a3668e

Please sign in to comment.