2020-07-01 14:16:16 +03:00
|
|
|
default_language_version:
|
2022-01-05 17:02:28 +03:00
|
|
|
python: python3.10
|
2020-07-01 14:16:16 +03:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.1.0
|
2015-04-10 05:40:17 +03:00
|
|
|
hooks:
|
2020-07-01 14:16:16 +03:00
|
|
|
- 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
|
2021-09-03 18:57:45 +03:00
|
|
|
rev: 21.8b0
|
2020-07-24 16:24:49 +03:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2021-09-03 19:32:57 +03:00
|
|
|
files: "^kitsune/"
|
2020-08-19 11:58:53 +03:00
|
|
|
exclude: "^.*/migrations/.*$|kitsune/sumo/db_strings.py"
|
2022-01-05 17:02:28 +03:00
|
|
|
language_version: python3.10
|
2020-07-01 14:16:16 +03:00
|
|
|
- repo: https://gitlab.com/pycqa/flake8.git
|
2020-10-13 17:32:48 +03:00
|
|
|
rev: 3.8.4
|
2015-07-22 18:53:37 +03:00
|
|
|
hooks:
|
2020-07-01 14:16:16 +03:00
|
|
|
- id: flake8
|
2021-12-17 15:40:56 +03:00
|
|
|
# - 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
|