|
@@ -7,30 +7,19 @@ repos:
|
|
|
hooks:
|
|
|
- id: black
|
|
|
language_version: python3
|
|
|
- args: ['--target-version', 'py37']
|
|
|
- - repo: https://github.com/timothycrosley/isort
|
|
|
-
|
|
|
- rev: 5.6.4
|
|
|
+ args: ['--target-version', 'py38']
|
|
|
+
|
|
|
+ - repo: https://github.com/astral-sh/ruff-pre-commit
|
|
|
+ rev: 'v0.0.290'
|
|
|
hooks:
|
|
|
- - id: isort
|
|
|
- - repo: https://github.com/pycqa/flake8
|
|
|
-
|
|
|
- rev: 3.8.4
|
|
|
- hooks:
|
|
|
- - id: flake8
|
|
|
- additional_dependencies:
|
|
|
- - flake8-comprehensions
|
|
|
- - flake8-assertive
|
|
|
- - flake8-print
|
|
|
- - repo: https://github.com/rtts/djhtml
|
|
|
- rev: v1.4.13
|
|
|
- hooks:
|
|
|
- - id: djhtml
|
|
|
+ - id: ruff
|
|
|
+ args: [--fix, --exit-non-zero-on-fix]
|
|
|
+
|
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
|
rev: v3.1.0
|
|
|
hooks:
|
|
|
- id: prettier
|
|
|
- types_or: [css, javascript, json, yaml]
|
|
|
+ types_or: [css, scss, javascript, ts, tsx, json, yaml]
|
|
|
- repo: https://github.com/pre-commit/mirrors-eslint
|
|
|
rev: v8.55.0
|
|
|
hooks:
|
|
@@ -41,10 +30,14 @@ repos:
|
|
|
additional_dependencies:
|
|
|
- eslint@8.55.0
|
|
|
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
|
|
|
- rev: v14.2.0
|
|
|
+ rev: v15.10.3
|
|
|
hooks:
|
|
|
- id: stylelint
|
|
|
- files: \.css$
|
|
|
+ files: \.scss$
|
|
|
additional_dependencies:
|
|
|
- stylelint@15.11.0
|
|
|
- stylelint-config-standard@34.0.0
|
|
|
+ - repo: https://github.com/rtts/djhtml
|
|
|
+ rev: 3.0.6
|
|
|
+ hooks:
|
|
|
+ - id: djhtml
|