mirror of
https://gh.wpcy.net/https://github.com/WeblateOrg/weblate.git
synced 2026-04-26 07:59:21 +08:00
updates: - [github.com/pre-commit/mirrors-eslint: v8.4.1 → v8.5.0](https://github.com/pre-commit/mirrors-eslint/compare/v8.4.1...v8.5.0)
114 lines
2.9 KiB
YAML
114 lines
2.9 KiB
YAML
# See https://pre-commit.com for more information
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.0.1
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-xml
|
|
- id: check-toml
|
|
- id: requirements-txt-fixer
|
|
- id: check-merge-conflict
|
|
- id: check-json
|
|
- id: debug-statements
|
|
- id: mixed-line-ending
|
|
args: [--fix=lf]
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.26.3
|
|
hooks:
|
|
- id: yamllint
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v2.29.1
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py36-plus]
|
|
- repo: https://github.com/psf/black
|
|
rev: 21.12b0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies:
|
|
- flake8-bugbear
|
|
- flake8-builtins
|
|
- flake8-comprehensions
|
|
- flake8-django
|
|
- flake8-docstrings
|
|
- flake8-eradicate
|
|
- flake8-executable
|
|
- flake8-logging-format
|
|
- flake8-mutable
|
|
- flake8-polyfill
|
|
- flake8-print
|
|
- flake8-return
|
|
- flake8-self
|
|
- pep8-naming
|
|
- repo: https://github.com/asottile/blacken-docs
|
|
rev: v1.12.0
|
|
hooks:
|
|
- id: blacken-docs
|
|
- repo: meta
|
|
hooks:
|
|
- id: check-hooks-apply
|
|
- id: check-useless-excludes
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.5.1
|
|
hooks:
|
|
- id: prettier
|
|
files: "\\.(\
|
|
css|less|scss\
|
|
|graphql|gql\
|
|
|js|jsx\
|
|
|json\
|
|
|md|markdown|mdown|mkdn\
|
|
|mdx\
|
|
|vue\
|
|
|yaml|yml\
|
|
)$"
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
rev: v8.5.0
|
|
hooks:
|
|
- id: eslint
|
|
args: ["--format=compact"]
|
|
additional_dependencies:
|
|
- prettier@2.2.1
|
|
- eslint@>=6.2.2
|
|
- eslint-plugin-import@>=2.18.0
|
|
- eslint-plugin-node@>=9.1.0
|
|
- eslint-plugin-promise@>=4.2.1
|
|
- eslint-plugin-standard@>=4.0.0
|
|
- eslint-config-prettier@latest
|
|
- eslint-plugin-prettier@latest
|
|
- repo: https://github.com/awebdeveloper/pre-commit-stylelint
|
|
rev: 0.0.2
|
|
hooks:
|
|
- id: stylelint
|
|
args: ["--formatter=compact"]
|
|
additional_dependencies:
|
|
- stylelint@latest
|
|
- stylelint-config-prettier@latest
|
|
- stylelint-prettier@latest
|
|
- prettier@2.2.1
|
|
|
|
exclude: "^.*\\.(\
|
|
csv|\
|
|
svg|\
|
|
wsdl(\\.[^.]*)?\
|
|
)|\
|
|
weblate/trans/tests/data/memory-broken\\.json|\
|
|
weblate/templates/browserconfig\\.xml|\
|
|
weblate/templates/configuration/custom\\.css|\
|
|
weblate/trans/tests/data/cs-CZ\\.rc|\
|
|
weblate/static/vendor/.*\
|
|
$"
|
|
ci:
|
|
skip:
|
|
- flake8
|