-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[update] pylint fix (hopefully) v2.2
- Loading branch information
TheBruh141
committed
Dec 15, 2024
1 parent
db6e6c5
commit 97f7c61
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
name: Pylint | ||
|
||
on: [ push ] | ||
|
||
on: [ push, pull_request ] | ||
jobs: | ||
build: | ||
pylint-check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [ "3.12" ] | ||
python-version: [ "3.12" ] # You can add more Python versions if needed | ||
steps: | ||
- uses: actions/checkout@v4 | ||
# Checkout the code | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
# Set up Python environment | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
# Install dependencies and Pylint | ||
- name: Install dependencies and Pylint | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -r requirements.txt pylint | ||
- name: Analysing the code with pylint | ||
# Run Pylint on the codebase | ||
- name: Run Pylint | ||
run: | | ||
pylint $(git ls-files '*.py') |