You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
style: adopt the shared ruff, mypy and pre-commit #206
ruff with the shared rule set B C4 D E F G I PL RUF S SIM UP W (and the same ignores as cloud-registry), line length 88, ruff format, Google docstrings everywhere (also tests).
mypy with disallow_untyped_defs, disallow_any_generics, warn_unused_ignores, over pro_tes, tests and scripts; fix all findings (Fix type checker issues #116; FOCA ships type information since 0.14).
.pre-commit-config.yaml as in cloud-registry: pre-commit-hooks, ruff, semgrep with .semgrep/ (flask-debug-enabled, jwt-decode-without-verification), gitleaks (staged and all files), actionlint, local ast-grep (rules foca-config-attribute, pydantic-v1-dict, string-status-code, with rule tests) and mypy hooks; hook revisions pinned to commits.
CI: one "Static code analysis" job running pre-commit (and gitleaks-all); remove flake8, pylint and black.
Reformat in one commit, listed in .git-blame-ignore-revs.
Acceptance criteria
pre-commit run --all-files passes locally and in CI, with the shared rule set and strict mypy settings.
Activity
style: reformat with ruff (#227)
style: adopt the shared ruff, mypy and pre-commit (#231)