Skip to content

Commit b72d739

Browse files
frienship endend with pylint: now ruff is my new best friend.
1 parent 1b8e563 commit b72d739

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
test:
77
runs-on: ubuntu-latest
8-
#needs: pylint
8+
needs: ruff
99

1010
steps:
1111
- name: Checkout repository

.github/workflows/pylint.yml

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

.github/workflows/ruff.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Ruff
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout repository
8+
uses: actions/checkout@v4
9+
10+
- name: Install Python
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: '3.13'
14+
cache: 'pip'
15+
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install ruff
20+
21+
# Update output format to enable automatic inline annotations.
22+
- name: Run Ruff
23+
run: ruff check --output-format=github .

test/test_processor_node_a.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,15 @@ def test_runner(in_i, in_f, out_s_i, out_s_f):
131131
sources=sources,
132132
hdl_toplevel="processor_node_a",
133133
always=True,
134-
build_dir="sim_build/processor_node_a",
134+
build_dir=f"sim_build/processor_node_a_in_{
135+
in_i}_{in_f}_out_{out_i}_{out_f}",
135136
parameters=generics
136137
)
137138

138139
runner.test(
139140
hdl_toplevel="processor_node_a",
140141
test_module="test_processor_node_a",
141-
plusargs=[f"--wave=in_{in_i}_{in_f}_out_{out_i}_{out_f}.fst"],
142+
plusargs=["--wave=test.fst"],
142143
)
143144

144145

test/test_processor_node_b.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,15 @@ def test_runner(in_i, in_f, out_s_i, out_s_f):
127127
sources=sources,
128128
hdl_toplevel="processor_node_b",
129129
always=True,
130-
build_dir="sim_build/processor_node_b",
130+
build_dir=f"sim_build/processor_node_b_in_{
131+
in_i}_{in_f}_out_{out_i}_{out_f}",
131132
parameters=generics
132133
)
133134

134135
runner.test(
135136
hdl_toplevel="processor_node_b",
136137
test_module="test_processor_node_b",
137-
plusargs=[f"--wave=in_{in_i}_{in_f}_out_{out_i}_{out_f}.fst"],
138+
plusargs=["--wave=test.fst"],
138139
)
139140

140141

0 commit comments

Comments
 (0)