mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-11 01:02:10 +03:00
feat: добавить pre-commit хуки для линтинга и форматирования
This commit is contained in:
parent
313adecfff
commit
2c547bd763
1 changed files with 14 additions and 14 deletions
|
|
@ -5,7 +5,8 @@ repos:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: check-added-large-files
|
- id: check-json
|
||||||
|
- id: check-toml
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: detect-private-key
|
- id: detect-private-key
|
||||||
|
|
||||||
|
|
@ -16,18 +17,17 @@ repos:
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
- id: ruff-format
|
- id: ruff-format
|
||||||
|
|
||||||
- repo: local
|
- repo: https://github.com/psf/black
|
||||||
|
rev: 23.12.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: black
|
||||||
name: flake8
|
language_version: python3.11
|
||||||
entry: uv run flake8
|
|
||||||
language: system
|
|
||||||
types: [python]
|
|
||||||
args: [--count, --show-source, --statistics]
|
|
||||||
|
|
||||||
- id: pytest
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
name: pytest
|
rev: v1.8.0
|
||||||
entry: uv run pytest -q
|
hooks:
|
||||||
language: system
|
- id: mypy
|
||||||
types: [python]
|
additional_dependencies:
|
||||||
pass_filenames: false
|
- types-requests
|
||||||
|
- types-PyYAML
|
||||||
|
args: [--ignore-missing-imports, --no-strict-optional]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue