-
Notifications
You must be signed in to change notification settings - Fork 0
Add pylint to workflows #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
46cd697
12a70fb
2181891
5cf6d4e
dee94d1
efc6a58
328ef4d
f9c249e
dd2677c
2e4ff75
c381af9
d5b1cf2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,59 @@ | ||||||
| name: Static Code Analysis | ||||||
|
|
||||||
| on: pull_request | ||||||
|
|
||||||
| jobs: | ||||||
| pylint: | ||||||
| runs-on: ubuntu-latest | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Set up Python 3.12 | ||||||
| uses: actions/setup-python@v3 | ||||||
| with: | ||||||
| python-version: "3.12" | ||||||
| - name: Install dependencies | ||||||
| run: | | ||||||
| pip install -r css-reports/requirements.txt | ||||||
| pip install pylint | ||||||
| - name: Analysing the code with pylint | ||||||
| run: | | ||||||
| pylint $(git ls-files '*.py') | ||||||
|
|
||||||
| mypy: | ||||||
| runs-on: ubuntu-latest | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v4 | ||||||
|
|
||||||
| - name: Set up Python 3.12 | ||||||
| uses: actions/setup-python@v3 | ||||||
|
||||||
| uses: actions/setup-python@v3 | |
| uses: actions/setup-python@v5 |
Copilot
AI
Aug 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Running 'mypy --install-types' without the '--non-interactive' flag may cause the workflow to hang waiting for user input. Consider adding '--non-interactive' flag: 'mypy --install-types --non-interactive'.
| mypy --install-types | |
| mypy --install-types --non-interactive |
Copilot
AI
Aug 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actions/setup-python@v3 action is outdated. Consider upgrading to actions/setup-python@v5 for better performance and security updates.
| uses: actions/setup-python@v3 | |
| uses: actions/setup-python@v5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actions/setup-python@v3 action is outdated. Consider upgrading to actions/setup-python@v5 for better performance and security updates.