-
Notifications
You must be signed in to change notification settings - Fork 19
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
7f08f36
commit 6127c3e
Showing
23 changed files
with
1,189 additions
and
800 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,53 @@ | ||
default_stages: [commit] | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: debug-statements | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
args: ["--fix=no"] | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/psf/black | ||
rev: 23.9.0 | ||
hooks: | ||
- id: black | ||
# It is recommended to specify the latest version of Python | ||
# supported by your project here, or alternatively use | ||
# pre-commit's default_language_version, see | ||
# https://pre-commit.com/#top_level-default_language_version | ||
language_version: python3.11 | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: "6.1.0" # pick a git hash / tag to point to | ||
hooks: | ||
- id: flake8 | ||
# black-compatible flake-8 config | ||
args: [ | ||
# disable layout-related rules as we use 'black' for these: | ||
# - E501: leave line length decisions up to black | ||
# - E127 and E128: extremely pedantic and difficult to get | ||
# right, more a waste of time than an improvement | ||
"--extend-ignore=E501,E128,E127,E203", | ||
] | ||
|
||
# Check commit message style. | ||
# this commit-msg hooks needs to be explicitly installed with: | ||
# pre-commit install --hook-type commit-msg | ||
- repo: https://github.com/commitizen-tools/commitizen | ||
rev: v3.8.2 | ||
hooks: | ||
- id: commitizen | ||
stages: [commit-msg] | ||
|
||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: system | ||
types: [python] |
Oops, something went wrong.