mirror of
https://github.com/angr/angr
synced 2026-08-17 12:23:11 -04:00
updates: - [github.com/astral-sh/ruff-pre-commit: v0.16.0 → v0.16.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.16.0...v0.16.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
92 lines
1.9 KiB
YAML
92 lines
1.9 KiB
YAML
repos:
|
|
|
|
#
|
|
# Fail fast
|
|
#
|
|
|
|
- repo: https://github.com/abravalheri/validate-pyproject
|
|
rev: v0.25
|
|
hooks:
|
|
- id: validate-pyproject
|
|
fail_fast: true
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
# General
|
|
- id: check-merge-conflict
|
|
fail_fast: true
|
|
- id: check-case-conflict
|
|
fail_fast: true
|
|
- id: destroyed-symlinks
|
|
fail_fast: true
|
|
- id: check-symlinks
|
|
fail_fast: true
|
|
- id: check-added-large-files
|
|
args: ["--maxkb=1024"]
|
|
exclude: ^angr/procedures/definitions/.*/.*\.json$
|
|
fail_fast: false
|
|
# Syntax
|
|
- id: check-toml
|
|
fail_fast: true
|
|
- id: check-json
|
|
fail_fast: true
|
|
- id: check-yaml
|
|
fail_fast: true
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: check-ast
|
|
fail_fast: true
|
|
|
|
#
|
|
# Modifiers
|
|
#
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: mixed-line-ending
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/dannysepler/rm_unneeded_f_str
|
|
rev: v0.2.0
|
|
hooks:
|
|
- id: rm-unneeded-f-str
|
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
rev: v3.21.2
|
|
hooks:
|
|
- id: pyupgrade
|
|
args: [--py310-plus]
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.16.1
|
|
hooks:
|
|
- id: ruff-check
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- id: ruff-format
|
|
types_or: [python, pyi]
|
|
|
|
#
|
|
# Static Checks
|
|
#
|
|
|
|
- repo: https://github.com/pre-commit/pygrep-hooks
|
|
rev: v1.10.0
|
|
hooks:
|
|
# Python
|
|
- id: python-no-log-warn
|
|
# Documentation
|
|
- id: rst-backticks
|
|
- id: rst-directive-colons
|
|
- id: rst-inline-touching-normal
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: debug-statements
|
|
- id: check-builtin-literals
|
|
- id: check-docstring-first
|
|
|