feat: update issue templates and workflows; add python compile check and sourcery integration
This commit is contained in:
@@ -5,22 +5,19 @@ repos:
|
||||
- id: black
|
||||
language_version: python3
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.15.0
|
||||
rev: v0.14.5
|
||||
hooks:
|
||||
- id: ruff
|
||||
args: ["--fix"]
|
||||
- repo: https://github.com/sourcery-ai/sourcery
|
||||
rev: v1.22.0
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: sourcery
|
||||
args: ["--diff=git diff HEAD", "--no-summary", "--min-level=medium"]
|
||||
# Only flag critical, high, and medium severity issues
|
||||
# Low severity issues are excluded as they may be intentional
|
||||
- repo: https://github.com/pre-commit/mirrors-isort
|
||||
rev: v5.12.0
|
||||
hooks:
|
||||
- id: isort
|
||||
name: isort (python)
|
||||
- id: python-compile
|
||||
name: python compile check
|
||||
entry: tools/python_compile_check.sh
|
||||
language: script
|
||||
files: ".*\\.py$"
|
||||
pass_filenames: false
|
||||
always_run: true
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
@@ -28,8 +25,3 @@ repos:
|
||||
- id: trailing-whitespace
|
||||
- id: check-yaml
|
||||
- id: check-added-large-files
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v1.6
|
||||
hooks:
|
||||
- id: mypy
|
||||
additional_dependencies: []
|
||||
|
||||
Reference in New Issue
Block a user