--- repos: - repo: https://github.com/astral-sh/ruff-pre-commit rev: v0.15.12 hooks: - id: ruff name: ๐Ÿถ Ruff lint args: - --fix - id: ruff-format name: ๐Ÿถ Ruff format - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: check-added-large-files name: ๐Ÿ—œ๏ธ Check for added large files - id: check-ast name: ๐Ÿ Check python ast - id: check-builtin-literals name: ๐Ÿง Check builtin type constructor use - id: check-case-conflict name: ๐Ÿ”  Check for case conflicts - id: check-docstring-first name: โ„น๏ธ Check docstring is first - id: check-executables-have-shebangs name: ๐Ÿง Check that executables have shebangs - id: check-shebang-scripts-are-executable name: ๐Ÿง Check that scripts with shebangs are executable - id: check-merge-conflict name: ๐Ÿ’ฅ Check for merge conflicts - id: check-symlinks name: ๐Ÿ”— Check for broken symlinks - id: check-toml name: โœ… Check toml - id: check-xml name: โœ… Check xml - id: check-yaml name: โœ… Check yaml - id: debug-statements name: ๐Ÿ” Debug statements (Python) - id: destroyed-symlinks name: ๐Ÿ”— Detect destroyed symlinks - id: detect-private-key name: ๐Ÿ•ต๏ธ Detect private key - id: end-of-file-fixer name: โฎ Fix End of Files - id: fix-byte-order-marker name: ๐Ÿง Fix utf-8 byte order marker - id: name-tests-test name: ๐Ÿ”  Python tests naming args: - --pytest-test-first - id: no-commit-to-branch name: ๐Ÿ›‘ Don't commit to main branch - id: trailing-whitespace name: โœ„ Trim trailing whitespace - repo: https://github.com/adrienverge/yamllint.git rev: v1.38.0 hooks: - id: yamllint name: ๐ŸŽ— Check YAML files with yamllint - repo: local hooks: - id: mypy name: ๐Ÿ†Ž Static type checking using mypy language: system types: - python entry: uv run --frozen mypy require_serial: true - id: pytest name: ๐Ÿงช Running tests and test coverage with pytest language: system types: - python entry: uv run --frozen pytest pass_filenames: false