Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 20, 2023
1 parent a9c09db commit be65c93
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .pre-commit-config.yaml
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
Expand Down Expand Up @@ -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$

0 comments on commit be65c93

Please sign in to comment.