From 8fd86aa82dd321358ef89a03ba9270a81bd5b689 Mon Sep 17 00:00:00 2001 From: Dominik Breksa Date: Tue, 9 Dec 2025 10:17:59 +0100 Subject: [PATCH 1/3] fix: standardized linters to use Makefile --- .github/workflows/cpp_linters.yaml | 2 +- .github/workflows/linters.yaml | 8 ++++---- Makefile | 12 +++++++++++- setup.cfg | 3 +++ 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpp_linters.yaml b/.github/workflows/cpp_linters.yaml index 172d368..b8be389 100644 --- a/.github/workflows/cpp_linters.yaml +++ b/.github/workflows/cpp_linters.yaml @@ -31,4 +31,4 @@ jobs: - name: Install cpplint run: pipx install cpplint - name: Run cpplint - run: cpplint --filter=-whitespace/line_length,-whitespace/parens ./src/app/fast/* + run: cpplint --filter=-whitespace/line_length,-whitespace/parens ./src/cpp/fast/* diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index a283504..4172c56 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -20,13 +20,13 @@ jobs: python-version: 3.13 - name: Install libraries - run: make python-install-editable + run: make python-install - name: mypy - run: mypy ./src + run: make mypy - name: ruff - run: ruff check . + run: make ruff - name: flake8 - run: flake8 . + run: make flake8 diff --git a/Makefile b/Makefile index eb3809f..87f8e0f 100644 --- a/Makefile +++ b/Makefile @@ -5,4 +5,14 @@ python-install: pip3 install . python-install-editable: - pip3 install -e .[development] \ No newline at end of file + pip3 install -e .[development] + +mypy: + mypy ./src/python/ + +ruff: + ruff check ./src/python/ + +flake8: + flake8 ./src/python/ + diff --git a/setup.cfg b/setup.cfg index 697d1df..41a8d88 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,3 +47,6 @@ where = ./src/python include = app app.* + +[flake8] +max-line-length = 120 \ No newline at end of file From 8f2fa25b1bc0b24bc0afea4afd0e67e67ff2c1a4 Mon Sep 17 00:00:00 2001 From: Dominik Breksa Date: Tue, 9 Dec 2025 10:22:19 +0100 Subject: [PATCH 2/3] fix: missing import in workflow --- .github/workflows/linters.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 4172c56..e696377 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -20,7 +20,7 @@ jobs: python-version: 3.13 - name: Install libraries - run: make python-install + run: make python-install-development - name: mypy run: make mypy From eb94c05e22bba796e2cd5d6b9ae748135d0ebd86 Mon Sep 17 00:00:00 2001 From: Dominik Breksa Date: Tue, 9 Dec 2025 10:23:00 +0100 Subject: [PATCH 3/3] fix: added CI deps to Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 87f8e0f..ec2a6d8 100644 --- a/Makefile +++ b/Makefile @@ -4,6 +4,9 @@ all: python-install: pip3 install . +python-install-development: + pip3 install .[development] + python-install-editable: pip3 install -e .[development]