kitsune/.pre-commit-config.yaml

40 строки
1.2 KiB
YAML
Исходник Обычный вид История

default_language_version:
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-03-29 16:10:29 +03:00
rev: v4.1.0
2015-04-10 05:40:17 +03:00
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: debug-statements
2020-07-24 16:24:49 +03:00
- repo: https://github.com/psf/black
2022-03-29 16:10:29 +03:00
rev: 22.3.0
2020-07-24 16:24:49 +03:00
hooks:
- id: black
2021-09-03 19:32:57 +03:00
files: "^kitsune/"
exclude: "^.*/migrations/.*$|kitsune/sumo/db_strings.py"
language_version: python3.10
- repo: https://gitlab.com/pycqa/flake8.git
2022-03-29 16:10:29 +03:00
rev: 4.0.1
2015-07-22 18:53:37 +03:00
hooks:
- id: flake8
2022-04-13 18:00:13 +03:00
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.6.2
hooks:
- id: prettier
additional_dependencies:
- prettier@2.6.2
- prettier-plugin-svelte@2.7.0
files: "^svelte/"
# - repo: https://github.com/pre-commit/mirrors-eslint
# rev: v8.1.0
# hooks:
# - id: eslint
# args: [--no-eslintrc, --config=webpack/eslintrc.js]
# exclude: "webpack/.*|webpack\\..*\\.js"
# additional_dependencies:
# - eslint@8.1.0
# - eslint-import-resolver-webpack@0.13.2
# - eslint-plugin-import@2.25.2