mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.5.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: check-yaml
|
|
- id: check-json
|
|
- id: check-toml
|
|
- id: check-added-large-files
|
|
args: ['--maxkb=1000']
|
|
- id: check-merge-conflict
|
|
- id: check-case-conflict
|
|
- id: check-docstring-first
|
|
- id: debug-statements
|
|
- id: mixed-line-ending
|
|
- id: name-tests-test
|
|
args: ['--pytest-test-first']
|
|
|
|
- repo: https://github.com/psf/black
|
|
rev: 24.1.1
|
|
hooks:
|
|
- id: black
|
|
language_version: python3
|
|
args: ['--line-length=88']
|
|
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.13.2
|
|
hooks:
|
|
- id: isort
|
|
args: ['--profile', 'black', '--line-length=88']
|
|
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 7.0.0
|
|
hooks:
|
|
- id: flake8
|
|
args: ['--max-line-length=88', '--extend-ignore=E203,W503']
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.10.0
|
|
hooks:
|
|
- id: python-check-blanket-noqa
|
|
- id: python-check-mock-methods
|
|
- id: python-no-eval
|
|
- id: python-no-log-warn
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.33.0
|
|
hooks:
|
|
- id: yamllint
|
|
args: ['-d', '{extends: default, rules: {line-length: {max: 120}}}']
|
|
|
|
# Removed slow hooks for faster development:
|
|
# - mypy: Type checking (can be run manually or in CI)
|
|
# - bandit: Security scanning (can be run separately)
|
|
# - pytest: Testing (should be run manually, not on every commit)
|
|
|