Skip to content

Commit f9b787b

Browse files
committed
Update Automation
Add requirements installation to Pylint github workflow. Move ruff pre-commit action to before black per ruff documentation.
1 parent e80f7c1 commit f9b787b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/pylint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.9", "3.10", "3.11", "3.12"]
10+
python-version: ["3.10", "3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v4
1313
- name: Set up Python ${{ matrix.python-version }}
@@ -17,6 +17,7 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
python -m pip install --upgrade pip
20+
python -m pip install -r requirements.txt
2021
pip install pylint
2122
- name: Analysing the code with pylint
2223
run: |

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
2-
- repo: https://github.com/psf/black
3-
rev: 24.10.0
4-
hooks:
5-
- id: black
62
- repo: https://github.com/astral-sh/ruff-pre-commit
73
# Ruff version.
84
rev: v0.7.1
95
hooks:
106
# Run the linter.
117
- id: ruff
12-
args: [ --fix ]
8+
args: [ --fix ]
9+
- repo: https://github.com/psf/black
10+
rev: 24.10.0
11+
hooks:
12+
- id: black

0 commit comments

Comments
 (0)