-
Notifications
You must be signed in to change notification settings - Fork 0
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
10f1827
commit 40759a9
Showing
1 changed file
with
32 additions
and
26 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 |
---|---|---|
@@ -1,31 +1,37 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.7.0 | ||
- repo: local | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
types: [python] | ||
files: '^(assesspy/|tests/)' | ||
|
||
- repo: https://github.com/pycqa/isort | ||
rev: 5.11.0 | ||
hooks: | ||
- id: isort | ||
args: | ||
- '--line-length=110' | ||
- '--multi-line=3' | ||
- '--force-grid-wrap=0' | ||
- '--trailing-comma' | ||
- '--use-parentheses' | ||
- '--ensure-newline-before-comments' | ||
types: [python] | ||
- id: black | ||
name: black | ||
entry: black | ||
language: system | ||
types: [ python ] | ||
files: ^(assesspy/|tests/) | ||
|
||
- id: isort | ||
name: isort | ||
entry: isort | ||
language: system | ||
types: [ python ] | ||
exclude: '.*/migrations/.*' | ||
args: [ | ||
'--line-length=110', | ||
'--multi-line=3', | ||
'--force-grid-wrap=0', | ||
'--trailing-comma', | ||
'--use-parentheses', | ||
'--ensure-newline-before-comments', | ||
] | ||
|
||
- repo: https://github.com/pycqa/flake8 | ||
rev: 5.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: | ||
- '--per-file-ignores=assesspy/*:E501 assesspy/__init__.py:F401' | ||
types: [python] | ||
files: '^(assesspy/|tests/)' | ||
- id: flake8 | ||
name: flake8 | ||
entry: flake8 | ||
language: system | ||
types: [ python ] | ||
files: ^(assesspy/|tests/) | ||
args: [ | ||
'--per-file-ignores= | ||
assesspy/*:E501 | ||
assesspy/__init__.py:F401' | ||
] |