Skip to content

Commit da3e009

Browse files
committed
Add linting workflows
1 parent 2ad0a9a commit da3e009

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/lint.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Lint and Format
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
7+
jobs:
8+
lint-and-format:
9+
name: Run Linters and Formatters
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.11"
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
python -m pip install ".[dev]"
24+
25+
- name: Run ruff linter
26+
run: |
27+
ruff check src/radius_clustering tests --fix
28+
29+
- name: Run black formatter
30+
run: |
31+
black src/radius_clustering tests --check
32+

.github/workflows/sphinx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
sudo apt-get update
2424
sudo apt-get install build-essential
2525
pip install --upgrade pip
26-
pip install -e ".[doc]"
26+
pip install ".[doc]"
2727
pushd docs
2828
make html
2929
popd

0 commit comments

Comments
 (0)