Skip to content

Commit f77fdac

Browse files
fixing linter and dependabot
1 parent 2760e01 commit f77fdac

File tree

5 files changed

+175
-7
lines changed

5 files changed

+175
-7
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,3 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8-
9-
# Keep pip/PyPI dependencies up to date
10-
- package-ecosystem: "pip"
11-
directory: "/"
12-
schedule:
13-
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,7 @@ jobs:
4040

4141
- name: Pytest
4242
run: pixi run test
43+
44+
- name: pip-audit (CVE scan)
45+
continue-on-error: true
46+
run: pixi run audit

pixi.lock

Lines changed: 168 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pixi.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ huggingface-hub = ">=0.20.0"
2424
transformers = ">=4.36.0"
2525
datasets = ">=2.16.0"
2626
ruff = ">=0.9.0"
27+
pip-audit = ">=2.7.0"
2728

2829
[tasks]
2930
# Initialize submodules
@@ -96,6 +97,7 @@ uninstall-all = """
9697
lint = "ruff check src/ tests/"
9798
lint-fix = "ruff check --fix src/ tests/"
9899
format = "ruff format src/ tests/"
100+
audit = "pip-audit"
99101

100102
# Testing tasks
101103
test = "pytest tests/ -v"

src/generate_embeddings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
if _CHAMPOLLION_DIR not in sys.path:
3030
sys.path.insert(0, _CHAMPOLLION_DIR)
3131

32-
from contrastive.evaluation.cka_coherence import test_models_coherence_from_directory
32+
from contrastive.evaluation.cka_coherence import test_models_coherence_from_directory # noqa: E402
3333

3434

3535
class ModelFetchStrategy(ABC):

0 commit comments

Comments
 (0)