diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8957560dfe..3aeb3375bf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 @@ -71,17 +71,17 @@ repos: 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: - - "prettier@2.1.2" - - "@prettier/plugin-xml@0.12.0" - 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-prettier + # rev: v2.1.2 + # hooks: + # - id: prettier + # name: prettier (with plugin-xml) + # additional_dependencies: + # - "prettier@2.1.2" + # - "@prettier/plugin-xml@0.12.0" + # 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: @@ -89,12 +89,12 @@ repos: 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$