|
@ -5,7 +5,7 @@ exclude: | |
|
|
# Files and folders generated by bots, to avoid loops |
|
|
# Files and folders generated by bots, to avoid loops |
|
|
^setup/|/static/description/index\.html$| |
|
|
^setup/|/static/description/index\.html$| |
|
|
# We don't want to mess with tool-generated files |
|
|
# 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? |
|
|
# Maybe reactivate this when all README files include prettier ignore tags? |
|
|
^README\.md$| |
|
|
^README\.md$| |
|
|
# Library files can have extraneous formatting (even minimized) |
|
|
# Library files can have extraneous formatting (even minimized) |
|
@ -38,7 +38,13 @@ repos: |
|
|
rev: v1.4 |
|
|
rev: v1.4 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: autoflake |
|
|
- 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 |
|
|
- repo: https://github.com/psf/black |
|
|
rev: 20.8b1 |
|
|
rev: 20.8b1 |
|
|
hooks: |
|
|
hooks: |
|
@ -47,12 +53,13 @@ repos: |
|
|
rev: v2.1.2 |
|
|
rev: v2.1.2 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: prettier |
|
|
- id: prettier |
|
|
name: prettier + plugin-xml |
|
|
|
|
|
|
|
|
name: prettier (with plugin-xml) |
|
|
additional_dependencies: |
|
|
additional_dependencies: |
|
|
- "prettier@2.1.2" |
|
|
- "prettier@2.1.2" |
|
|
- "@prettier/plugin-xml@0.12.0" |
|
|
- "@prettier/plugin-xml@0.12.0" |
|
|
args: |
|
|
args: |
|
|
- --plugin=@prettier/plugin-xml |
|
|
- --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 |
|
|
- repo: https://github.com/pre-commit/mirrors-eslint |
|
|
rev: v7.8.1 |
|
|
rev: v7.8.1 |
|
|
hooks: |
|
|
hooks: |
|
@ -87,6 +94,7 @@ repos: |
|
|
rev: v2.7.2 |
|
|
rev: v2.7.2 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: pyupgrade |
|
|
- id: pyupgrade |
|
|
|
|
|
args: ["--keep-percent-format"] |
|
|
- repo: https://github.com/PyCQA/isort |
|
|
- repo: https://github.com/PyCQA/isort |
|
|
rev: 5.5.1 |
|
|
rev: 5.5.1 |
|
|
hooks: |
|
|
hooks: |
|
@ -109,13 +117,7 @@ repos: |
|
|
rev: 3.8.3 |
|
|
rev: 3.8.3 |
|
|
hooks: |
|
|
hooks: |
|
|
- id: flake8 |
|
|
- 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"] |
|
|
additional_dependencies: ["flake8-bugbear==20.1.4"] |
|
|
- repo: https://github.com/PyCQA/pylint |
|
|
- repo: https://github.com/PyCQA/pylint |
|
|
rev: pylint-2.5.3 |
|
|
rev: pylint-2.5.3 |
|
|