diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fc46e9a..e90c34e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +default_language_version: + python: python3.12 + repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 @@ -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]"] diff --git a/pyproject.toml b/pyproject.toml index 06105f1..d1075fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ] @@ -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 = [ @@ -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"]