Skip to content

Commit 8fd86aa

Browse files
committed
fix: standardized linters to use Makefile
1 parent 82f2495 commit 8fd86aa

4 files changed

Lines changed: 19 additions & 6 deletions

File tree

.github/workflows/cpp_linters.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Install cpplint
3232
run: pipx install cpplint
3333
- name: Run cpplint
34-
run: cpplint --filter=-whitespace/line_length,-whitespace/parens ./src/app/fast/*
34+
run: cpplint --filter=-whitespace/line_length,-whitespace/parens ./src/cpp/fast/*

.github/workflows/linters.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ jobs:
2020
python-version: 3.13
2121

2222
- name: Install libraries
23-
run: make python-install-editable
23+
run: make python-install
2424

2525
- name: mypy
26-
run: mypy ./src
26+
run: make mypy
2727

2828
- name: ruff
29-
run: ruff check .
29+
run: make ruff
3030

3131
- name: flake8
32-
run: flake8 .
32+
run: make flake8

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,14 @@ python-install:
55
pip3 install .
66

77
python-install-editable:
8-
pip3 install -e .[development]
8+
pip3 install -e .[development]
9+
10+
mypy:
11+
mypy ./src/python/
12+
13+
ruff:
14+
ruff check ./src/python/
15+
16+
flake8:
17+
flake8 ./src/python/
18+

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,6 @@ where = ./src/python
4747
include =
4848
app
4949
app.*
50+
51+
[flake8]
52+
max-line-length = 120

0 commit comments

Comments
 (0)