Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
default_language_version:
python: python3.12

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand All @@ -18,17 +21,3 @@ repos:
- id: ruff-check
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
hooks:
- id: mypy
additional_dependencies: []
args: [--config-file=pyproject.toml]

- repo: https://github.com/PyCQA/bandit
rev: "1.8.3"
hooks:
- id: bandit
args: [-c, pyproject.toml, -r, src/]
additional_dependencies: ["bandit[toml]"]
13 changes: 1 addition & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ dev = [
"pre-commit>=4.0",
"ruff>=0.8",
"mypy>=1.14",
"bandit[toml]>=1.8",
"pytest>=8.0",
"pytest-cov>=6.0",
]
Expand Down Expand Up @@ -58,10 +57,8 @@ select = [
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"S", # flake8-bandit (overlap with bandit, but fast)
"S", # flake8-bandit
"C4", # flake8-comprehensions
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific rules
]
ignore = [
Expand Down Expand Up @@ -111,11 +108,3 @@ omit = ["tests/*", "**/__init__.py"]
show_missing = true
skip_empty = true
# fail_under = 60 # uncomment when ready to enforce coverage threshold

# =============================================================================
# bandit — security linting
# =============================================================================

[tool.bandit]
exclude_dirs = ["tests", ".venv"]
skips = ["B101"]
Loading