generated from cal-itp/mkdocs-template
-
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
Amberg
authored and
Amberg
committed
Jun 25, 2024
1 parent
f5c76e0
commit e9f28e4
Showing
1 changed file
with
27 additions
and
10 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,15 +1,32 @@ | ||
files: _shared_utils | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.5.0 | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: end-of-file-fixer | ||
- id: mixed-line-ending | ||
- id: requirements-txt-fixer | ||
- id: trailing-whitespace | ||
args: [--markdown-linebreak-ext=md] | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli | ||
rev: v0.37.0 | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
args: ["--unsafe"] | ||
- id: check-added-large-files | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: ["--ignore=E501,W503,F403,F405,E711,E712,E231,E702"] | ||
# E711: comparison to None should be 'if cond is not None:' (siuba filtering requires we use != None and not is not) | ||
# E712: line too long and line before binary operator (black is ok with these), assign lambda expression OK, comparison to True with is (siuba uses ==) | ||
# E231: missing whitespace after colon (we don't want white space when setting gs://) | ||
# E702: multiple statements on one line (semicolon) | ||
types: | ||
- python | ||
files: _shared_utils | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
hooks: | ||
- id: black | ||
args: ["--line-length", "120"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: markdownlint | ||
- id: isort | ||
args: ["--profile", "black", "--filter-files"] |