-
-
Notifications
You must be signed in to change notification settings - Fork 305
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
Showing
4 changed files
with
17 additions
and
12 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
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
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
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ exclude: | | |
# Files and folders generated by bots, to avoid loops | ||
^setup/|/static/description/index\.html$| | ||
# We don't want to mess with tool-generated files | ||
.svg$| | ||
.svg$|/tests/([^/]+/)?cassettes/| | ||
# Maybe reactivate this when all README files include prettier ignore tags? | ||
^README\.md$| | ||
# Library files can have extraneous formatting (even minimized) | ||
|
@@ -40,7 +40,13 @@ repos: | |
rev: v1.4 | ||
hooks: | ||
- id: autoflake | ||
args: ["-i", "--ignore-init-module-imports"] | ||
args: | ||
- --expand-star-imports | ||
- --ignore-init-module-imports | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- --remove-duplicate-keys | ||
- --remove-unused-variables | ||
- repo: https://github.com/psf/black | ||
rev: 20.8b1 | ||
hooks: | ||
|
@@ -49,12 +55,13 @@ repos: | |
rev: v2.1.2 | ||
hooks: | ||
- id: prettier | ||
name: prettier + plugin-xml | ||
name: prettier (with plugin-xml) | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v7.8.1 | ||
hooks: | ||
|
@@ -89,6 +96,7 @@ repos: | |
rev: v2.7.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: ["--keep-percent-format"] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.5.1 | ||
hooks: | ||
|
@@ -111,13 +119,7 @@ repos: | |
rev: 3.8.3 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 except __init__.py | ||
exclude: /__init__\.py$ | ||
additional_dependencies: ["flake8-bugbear==20.1.4"] | ||
- id: flake8 | ||
name: flake8 only __init__.py | ||
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py | ||
files: /__init__\.py$ | ||
name: flake8 | ||
additional_dependencies: ["flake8-bugbear==20.1.4"] | ||
- repo: https://github.com/PyCQA/pylint | ||
rev: pylint-2.5.3 | ||
|