Skip to content

Commit 5a75a33

Browse files
authored
pin the linters in github workflow. match black version in pre-commit (BC-SECURITY#672)
1 parent 4768716 commit 5a75a33

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/lint-and-test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ jobs:
1414
- uses: actions/checkout@v3
1515
- uses: psf/[email protected]
1616
- uses: isort/isort-action@master
17+
with:
18+
isort-version: 5.12.0
1719
- name: Run ruff
1820
run: |
19-
pip install ruff
21+
pip install ruff==0.0.283
2022
ruff .
2123
matrix-prep-config:
2224
runs-on: ubuntu-latest

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.3.0
3+
rev: 23.7.0
44
hooks:
55
- id: black
66
language_version: python3.9
@@ -11,8 +11,8 @@ repos:
1111
- id: isort
1212
name: isort (python)
1313

14-
- repo: https://github.com/charliermarsh/ruff-pre-commit
15-
rev: 'v0.0.283'
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
rev: v0.0.283
1616
hooks:
1717
- id: ruff
1818
args: [--fix, --exit-non-zero-on-fix]

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

88
## [Unreleased]
9+
- Pin linters in the workflow
910

1011
## [5.6.2] - 2023-08-09
1112

0 commit comments

Comments
 (0)