Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Added a precommit hook #67

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
types: [python]
- id: requirements-txt-fixer
- id: trailing-whitespace
types: [python]

- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.7.1
hooks:
- id: rst-backticks
- id: rst-inline-touching-normal

- repo: https://github.com/pre-commit/mirrors-pylint
rev: v2.6.0
hooks:
- id: pylint