mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
- Add essential open source files (CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, CHANGELOG.md, CONTRIBUTORS.md) - Add GitHub issue and PR templates - Add CI/CD workflows (CI, docs, release, dependabot) - Add pre-commit hooks configuration - Add documentation enhancements (architecture, governance, contributing, community) - Add developer experience scripts (setup-dev, run-tests, format-code, check-code) - Add community features (SUPPORT.md, .all-contributorsrc) - Enhance README badges and project metadata - Update mkdocs.yml navigation structure
81 lines
2.0 KiB
YAML
81 lines
2.0 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']
|
|
additional_dependencies:
|
|
- flake8-docstrings
|
|
- flake8-bugbear
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.8.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies:
|
|
- types-all
|
|
args: ['--ignore-missing-imports', '--no-strict-optional']
|
|
|
|
- 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/PyCQA/bandit
|
|
rev: 1.7.6
|
|
hooks:
|
|
- id: bandit
|
|
args: ['-r', 'semantica/', '-f', 'json', '-o', 'bandit-report.json']
|
|
exclude: ^tests/
|
|
|
|
- repo: https://github.com/adrienverge/yamllint
|
|
rev: v1.33.0
|
|
hooks:
|
|
- id: yamllint
|
|
args: ['-d', '{extends: default, rules: {line-length: {max: 120}}}']
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: pytest
|
|
name: pytest
|
|
entry: pytest
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
args: ['-v', '--tb=short']
|
|
|