We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4475d04 commit e31aab2Copy full SHA for e31aab2
.github/workflows/pylint.yml
@@ -20,4 +20,9 @@ jobs:
20
pip install pylint
21
- name: Analysing the code with pylint
22
run: |
23
- pylint $(git ls-files '*.py')
+ 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
@@ -28,5 +28,4 @@ def get_request(self):
raise Exception("RequestContext has not been initialized. Call set_request() first.")
29
return self.request
30
31
-# Create a globally accessible instance
32
request_context = RequestContext.get_instance()
0 commit comments