Fixes and improvements.

This commit is contained in:
OK
2025-08-09 00:16:37 +02:00
parent 38f0479d1e
commit d742ab86fa
22 changed files with 529 additions and 457 deletions
+11 -11
View File
@@ -37,21 +37,21 @@ repos:
- id: flake8
args: [--max-line-length=140]
# Bandit security scanner
- repo: https://github.com/pycqa/bandit
rev: 1.7.5
hooks:
- id: bandit
args: [-r, fjerkroa_bot]
exclude: tests/
# Bandit security scanner - disabled due to expected pickle/random usage
# - repo: https://github.com/pycqa/bandit
# rev: 1.7.5
# hooks:
# - id: bandit
# args: [-r, fjerkroa_bot]
# exclude: tests/
# MyPy type checker
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
hooks:
- id: mypy
additional_dependencies: [types-toml, types-requests]
args: [--config-file=pyproject.toml]
additional_dependencies: [types-toml, types-requests, types-setuptools]
args: [--config-file=pyproject.toml, --ignore-missing-imports]
# Local hooks using Makefile
- repo: local
@@ -62,8 +62,8 @@ repos:
language: system
pass_filenames: false
always_run: true
stages: [commit]
stages: [pre-commit]
# Configuration
default_stages: [commit, push]
default_stages: [pre-commit, pre-push]
fail_fast: false