Skip to content

Commit e31aab2

Browse files
committed
test 4
1 parent 4475d04 commit e31aab2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ jobs:
2020
pip install pylint
2121
- name: Analysing the code with pylint
2222
run: |
23-
pylint $(git ls-files '*.py')
23+
files=$(git diff --name-only ${{ github.sha }} ${{ github.sha }}^ -- '*.py')
24+
if [ -n "$files" ]; then
25+
pylint $files
26+
else
27+
echo "No Python files changed in this commit. Skipping pylint."
28+
fi

autograder/context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,4 @@ def get_request(self):
2828
raise Exception("RequestContext has not been initialized. Call set_request() first.")
2929
return self.request
3030

31-
# Create a globally accessible instance
3231
request_context = RequestContext.get_instance()

0 commit comments

Comments
 (0)