Skip to content

Commit 5a47f97

Browse files
author
Harmanpreet Kaur
committed
Update PyLint workflow to improve clarity and maintainability
1 parent afdfc68 commit 5a47f97

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/pylint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@ on:
44
push:
55
paths:
66
- 'src/backend/**/*.py'
7+
- 'src/mcp_server/**/*.py'
78
- 'src/backend/requirements.txt'
9+
- 'src/mcp_server/pyproject.toml'
810
- '.flake8'
911
- '.github/workflows/pylint.yml'
1012
pull_request:
1113
paths:
1214
- 'src/backend/**/*.py'
15+
- 'src/mcp_server/**/*.py'
1316
- 'src/backend/requirements.txt'
17+
- 'src/mcp_server/pyproject.toml'
1418
- '.flake8'
1519
- '.github/workflows/pylint.yml'
1620

@@ -32,8 +36,9 @@ jobs:
3236
run: |
3337
python -m pip install --upgrade pip
3438
pip install -r src/backend/requirements.txt
39+
pip install -e src/mcp_server/ # Install mcp_server dependencies from pyproject.toml
3540
pip install flake8 # Ensure flake8 is installed explicitly
3641
3742
- name: Run flake8 and pylint
3843
run: |
39-
flake8 --config=.flake8 src/backend # Specify the directory to lint
44+
flake8 --config=.flake8 src/backend src/mcp_server # Lint both backend and mcp_server directories

0 commit comments

Comments
 (0)