-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
98ccda2
commit a112b37
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
## Pre-commit setup | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
# Ensures that a file is either empty, or ends with one newline. | ||
- id: end-of-file-fixer | ||
|
||
# Remove trailing whitespace | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
|
||
# Code style and formatting | ||
- repo: https://github.com/psf/black | ||
rev: 22.6.0 | ||
hooks: | ||
- id: black | ||
args: [ | ||
--line-length, "120", | ||
] | ||
|
||
# # Linting and PEP-8 | ||
# - repo: https://github.com/pycqa/flake8 | ||
# rev: 5.0.4 | ||
# hooks: | ||
# - id: flake8 | ||
# args: ["--ignore=D100,D400,E501", "--exclude=*test*"] | ||
# additional_dependencies: | ||
# - flake8-docstrings~=1.6.0 | ||
|
||
# # Security and Vulnerability checks | ||
# - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit | ||
# rev: v1.0.6 | ||
# hooks: | ||
# - id: python-bandit-vulnerability-check | ||
# args: [--skip, "B101", --recursive, clumper] |