Skip to content

Commit bf83d08

Browse files
Add security workflows: pre-commit hooks, dependency review
1 parent 7327c77 commit bf83d08

File tree

3 files changed

+8
-62
lines changed

3 files changed

+8
-62
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
with:
2222
fail-on-severity: high
2323
comment-summary-in-pr: always
24-
deny-licenses: GPL-3.0, AGPL-3.0
24+
deny-licenses: GPL-3.0-only, AGPL-3.0-only

.pre-commit-config.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,11 @@ repos:
2525
- id: check-toml
2626
- id: check-ast
2727

28-
# Python specific
29-
- repo: https://github.com/psf/black
30-
rev: 24.4.2
28+
# Python specific - using Ruff (matches CI settings)
29+
- repo: https://github.com/astral-sh/ruff-pre-commit
30+
rev: v0.4.4
3131
hooks:
32-
- id: black
33-
language_version: python3
34-
35-
- repo: https://github.com/pycqa/isort
36-
rev: 5.13.2
37-
hooks:
38-
- id: isort
39-
args: ["--profile", "black"]
40-
41-
- repo: https://github.com/pycqa/flake8
42-
rev: 7.0.0
43-
hooks:
44-
- id: flake8
45-
args: [--max-line-length=120]
32+
- id: ruff
33+
args: [--fix, --line-length=100]
34+
- id: ruff-format
35+
args: [--line-length=100]

0 commit comments

Comments
 (0)