-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
1 changed file
with
32 additions
and
32 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,18 +1,18 @@ | ||
exclude: | | ||
(?x) | ||
NOT INSTALLABLE ADDONS | ||
END NOT INSTALLABLE ADDONS | ||
Files and folders generated by bots, to avoid loops | ||
# NOT INSTALLABLE ADDONS | ||
# END NOT INSTALLABLE ADDONS | ||
#Files and folders generated by bots, to avoid loops | ||
^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$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/| | ||
Maybe reactivate this when all README files include prettier ignore tags? | ||
# Maybe reactivate this when all README files include prettier ignore tags? | ||
^README\.md$| | ||
Library files can have extraneous formatting (even minimized) | ||
# Library files can have extraneous formatting (even minimized) | ||
/static/(src/)?lib/| | ||
Repos using Sphinx to generate docs don't need prettying | ||
# Repos using Sphinx to generate docs don't need prettying | ||
^docs/_templates/.*\.html$| | ||
You don't usually want a bot to modify your legal texts | ||
# You don't usually want a bot to modify your legal texts | ||
(LICENSE.*|COPYING.*) | ||
default_language_version: | ||
python: python3.6 | ||
|
@@ -67,34 +67,34 @@ repos: | |
- --remove-all-unused-imports | ||
- --remove-duplicate-keys | ||
- --remove-unused-variables | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.1.2 | ||
hooks: | ||
- id: prettier | ||
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/psf/black | ||
# rev: 22.3.0 | ||
# hooks: | ||
# - id: black | ||
# - repo: https://github.com/pre-commit/mirrors-prettier | ||
# rev: v2.1.2 | ||
# hooks: | ||
# - id: prettier | ||
# 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/asottile/pyupgrade | ||
rev: v2.7.2 | ||
hooks: | ||
- id: pyupgrade | ||
args: | ||
- --keep-percent-format | ||
- --py36-plus | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
language_version: python3.6 | ||
hooks: | ||
- id: isort | ||
name: isort except __init__.py | ||
args: | ||
- --settings=. | ||
exclude: /__init__\.py$ | ||
# - repo: https://github.com/PyCQA/isort | ||
# rev: 5.12.0 | ||
# language_version: python3.8 | ||
# hooks: | ||
# - id: isort | ||
# name: isort except __init__.py | ||
# args: | ||
# - --settings=. | ||
# exclude: /__init__\.py$ |