Skip to content

Commit e55b517

Browse files
committed
Move code linters to Makefile
1 parent ef10932 commit e55b517

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

.github/workflows/ci_pipeline.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ jobs:
5858
- name: Install dependencies using Poetry
5959
run: poetry install
6060

61-
- name: Check import sorting with isort
62-
run: poetry run isort --check-only --diff .
63-
64-
- name: Check code formatting with black
65-
run: poetry run black --check .
61+
- name: Run code linters
62+
run: make lint-check
6663

6764
- name: Run tests and generate reports
6865
env:

Makefile

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,18 @@ e2e-test:
2323
--junitxml=testLog_e2e.xml \
2424
--log-cli-level=INFO
2525

26-
# Use Python Black to format python files
27-
format:
28-
black .
26+
# Use black to format Python files
27+
format-black:
28+
poetry run black .
29+
30+
# Use isort to format Python files
31+
format-isort:
32+
poetry run isort .
33+
34+
# Run code linters
35+
lint-check:
36+
poetry run black --check .
37+
poetry run isort --check-only --diff .
2938

3039
# Generate wheel file using poetry build command
3140
build:
@@ -51,4 +60,3 @@ installer:
5160
--onefile \
5261
--name cover-agent \
5362
cover_agent/main.py
54-

0 commit comments

Comments
 (0)