Changeset View
Changeset View
Standalone View
Standalone View
.pre-commit-config.yaml
exclude: '^swh/web/tests/resources/' | exclude: "^swh/web/tests/resources/" | ||||
repos: | repos: | ||||
- repo: https://github.com/pre-commit/pre-commit-hooks | - repo: https://github.com/pre-commit/pre-commit-hooks | ||||
rev: v2.4.0 | rev: v2.4.0 | ||||
hooks: | hooks: | ||||
- id: trailing-whitespace | - id: trailing-whitespace | ||||
- id: check-json | - id: check-json | ||||
- id: check-yaml | - id: check-yaml | ||||
- repo: https://gitlab.com/pycqa/flake8 | - repo: https://gitlab.com/pycqa/flake8 | ||||
rev: 3.8.3 | rev: 3.8.3 | ||||
hooks: | hooks: | ||||
- id: flake8 | - id: flake8 | ||||
- repo: https://github.com/codespell-project/codespell | - repo: https://github.com/codespell-project/codespell | ||||
rev: v1.16.0 | rev: v1.16.0 | ||||
hooks: | hooks: | ||||
- id: codespell | - id: codespell | ||||
exclude: > | exclude: > | ||||
(?x)^( | (?x)^( | ||||
cypress/integration/directory.spec.js| | cypress/integration/directory.spec.js| | ||||
yarn.lock| | yarn.lock| | ||||
package.json | package.json | ||||
)$ | )$ | ||||
- repo: local | - repo: local | ||||
hooks: | hooks: | ||||
- id: mypy | - id: mypy | ||||
name: mypy | name: mypy | ||||
entry: env DJANGO_SETTINGS_MODULE=swh.web.settings.development mypy | entry: env DJANGO_SETTINGS_MODULE=swh.web.settings.development mypy | ||||
args: [swh] | args: [swh] | ||||
pass_filenames: false | pass_filenames: false | ||||
language: system | language: system | ||||
types: [python] | types: [python] | ||||
- repo: local | - repo: local | ||||
hooks: | hooks: | ||||
- id: eslint | - id: eslint | ||||
name: eslint | name: eslint | ||||
entry: node_modules/.bin/eslint -c swh/web/assets/config/.eslintrc | entry: node_modules/.bin/eslint -c assets/config/.eslintrc | ||||
language: system | language: system | ||||
types: [javascript] | types: [javascript] | ||||
- repo: https://github.com/PyCQA/isort | - repo: https://github.com/PyCQA/isort | ||||
rev: 5.5.2 | rev: 5.5.2 | ||||
hooks: | hooks: | ||||
- id: isort | - id: isort | ||||
- repo: https://github.com/python/black | - repo: https://github.com/python/black | ||||
rev: 19.10b0 | rev: 19.10b0 | ||||
hooks: | hooks: | ||||
- id: black | - id: black | ||||
# unfortunately, we are far from being able to enable this... | # unfortunately, we are far from being able to enable this... | ||||
# - repo: https://github.com/PyCQA/pydocstyle.git | # - repo: https://github.com/PyCQA/pydocstyle.git | ||||
# rev: 4.0.0 | # rev: 4.0.0 | ||||
# hooks: | # hooks: | ||||
# - id: pydocstyle | # - id: pydocstyle | ||||
# name: pydocstyle | # name: pydocstyle | ||||
# description: pydocstyle is a static analysis tool for checking compliance with Python docstring conventions. | # description: pydocstyle is a static analysis tool for checking compliance with Python docstring conventions. | ||||
# entry: pydocstyle --convention=google | # entry: pydocstyle --convention=google | ||||
# language: python | # language: python | ||||
# types: [python] | # types: [python] |