mirror of
https://github.com/Horizontal42/netsleuth.git
synced 2026-11-10 22:42:03 +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: end-of-file-fixer
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- id: check-json
|
||||
- id: check-toml
|
||||
- id: check-merge-conflict
|
||||
- id: detect-private-key
|
||||
|
||||
|
|
@ -16,18 +17,17 @@ repos:
|
|||
args: [--fix, --exit-non-zero-on-fix]
|
||||
- id: ruff-format
|
||||
|
||||
- repo: local
|
||||
- repo: https://github.com/psf/black
|
||||
rev: 23.12.1
|
||||
hooks:
|
||||
- id: flake8
|
||||
name: flake8
|
||||
entry: uv run flake8
|
||||
language: system
|
||||
types: [python]
|
||||
args: [--count, --show-source, --statistics]
|
||||
- id: black
|
||||
language_version: python3.11
|
||||
|
||||
- id: pytest
|
||||
name: pytest
|
||||
entry: uv run pytest -q
|
||||
language: system
|
||||
types: [python]
|
||||
pass_filenames: false
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.8.0
|
||||
hooks:
|
||||
- id: mypy
|
||||
additional_dependencies:
|
||||
- types-requests
|
||||
- types-PyYAML
|
||||
args: [--ignore-missing-imports, --no-strict-optional]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue