Skip to content

Commit e75d1df

Browse files
committed
refactor(ci): simplify lint by leveraging treefmt
treefmt already includes ruff-check and typos, so remove redundant commands from justfile and CI workflow. Changes: - Remove separate `uv run ruff check` from lint (treefmt runs ruff-check) - Remove `typos` and `typos-fix` commands (treefmt runs typos) - Remove typos CI job (covered by lint via treefmt)
1 parent d76d605 commit e75d1df

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ jobs:
3030
- name: Run Gitleaks
3131
run: nix develop --command just gitleaks
3232

33-
typos:
34-
runs-on: ubuntu-latest
35-
steps:
36-
- name: Checkout repository
37-
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
38-
39-
- name: Setup Nix
40-
uses: ./.github/actions/setup-nix
41-
42-
- name: Run Typo Check
43-
run: nix develop --command just typos
44-
4533
ci:
4634
runs-on: ubuntu-latest
4735
strategy:

justfile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
install *extras:
33
uv sync {{ extras }}
44

5-
# Run ruff linting and format check
5+
# Run linting and format check (ruff, typos, nixfmt, oxfmt)
66
lint:
7-
uv run ruff check .
87
nix fmt -- --fail-on-change
98

109
# Format and auto-fix linting issues
1110
format:
12-
uv run ruff check --fix .
1311
nix fmt
1412

1513
# Run all tests
@@ -32,18 +30,10 @@ test-examples:
3230
ty:
3331
uv run ty check stackone_ai
3432

35-
# Run typos spell checker
36-
typos:
37-
typos --config typos.toml .
38-
3933
# Run gitleaks secret detection
4034
gitleaks:
4135
gitleaks detect --source . --config .gitleaks.toml
4236

43-
# Fix typos
44-
typos-fix:
45-
typos --config typos.toml --write-changes .
46-
4737
# Update version in __init__.py
4838
update-version:
4939
uv run scripts/update_version.py

0 commit comments

Comments
 (0)