Skip to content

Commit 7c3f5c4

Browse files
committed
chore: add linter installation to make env
1 parent e3d10c1 commit 7c3f5c4

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

.github/workflows/CI.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ jobs:
4747
with:
4848
python-version: "3.11"
4949
- name: Lint codes
50-
run: |
51-
make poetry
52-
poetry install --all-extras --with lint
53-
make gen
54-
make lint
50+
run: make env lint
5551

5652
# Check if the plugin doc is generated correctly
5753
plugin-doc-check:

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ endif
2727

2828
.PHONY: env
2929
env: poetry gen
30-
poetry install --all-extras
30+
poetry install --all-extras --with lint
3131
poetry run pip install --upgrade pip
3232

3333
.PHONY: poetry poetry-fallback
@@ -69,7 +69,7 @@ install: gen-basic
6969

7070
.PHONY: lint
7171
# flake8 configurations should go to the file setup.cfg
72-
lint: clean
72+
lint: clean gen
7373
poetry run flake8 .
7474
poetry run pylint --disable=all --enable=E0602,E0603,E1101 skywalking tests
7575

0 commit comments

Comments
 (0)