Skip to content

Commit eb5e126

Browse files
authored
👷 Run lint on python 3.11 only (#34)
1 parent 2d7babc commit eb5e126

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/CD.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ jobs:
2424

2525
- name: Install dependencies
2626
run: |
27-
pip install -U pip setuptools wheel
28-
pip install setuptools wheel twine
27+
pip install -U pip setuptools wheel twine
2928
3029
- name: Build and publish
3130
env:

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
make install
5151
5252
- name: Lint
53+
if: matrix.python-version == 3.11
5354
run: make lint
5455

5556
- name: Test

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ repos:
77
exclude: .*/tests/.*
88

99
- repo: https://github.com/psf/black
10-
rev: 22.8.0 # last version to support py3.6 ref https://github.com/psf/black/issues/3169#issuecomment-1303315799
10+
rev: 22.10.0
1111
hooks:
1212
- id: black
1313

@@ -26,29 +26,29 @@ repos:
2626
pass_filenames: false
2727

2828
- repo: https://github.com/PyCQA/flake8
29-
rev: 4.0.1 # flake8-comprehensions 3.7.0 depends on flake8!=3.2.0, <5 and >=3.0
29+
rev: 5.0.4
3030
hooks:
3131
- id: flake8
3232
additional_dependencies: [
3333
'darglint~=1.8.1',
3434
'flake8-absolute-import~=1.0',
3535
'flake8-blind-except~=0.2.1',
36-
'flake8-builtins~=2.0', # last version to support py3.6
36+
'flake8-builtins~=2.0.1',
3737
'flake8-cognitive-complexity==0.1.0',
38-
'flake8-comprehensions~=3.7', # last version to support py3.6
38+
'flake8-comprehensions~=3.10.0',
3939
'flake8-docstrings~=1.6.0',
4040
'flake8-logging-format~=0.8.1',
4141
'flake8-mutable~=1.2.0',
42-
'flake8-print~=4.0', # last version to support py3.6
42+
'flake8-print~=5.0.0',
4343
'flake8-printf-formatting~=1.1.0',
4444
'flake8-pytest-style~=1.6.0',
4545
'flake8-quotes~=3.3.1',
4646
'flake8-tuple~=0.4.1',
47-
'pep8-naming~=0.13.1' # last version to support py3.6
47+
'pep8-naming~=0.13.2'
4848
]
4949

5050
- repo: https://github.com/pre-commit/pre-commit-hooks
51-
rev: v4.1.0 # last version to support py3.6
51+
rev: v4.3.0
5252
hooks:
5353
- id: mixed-line-ending
5454
args: ['--fix=lf']

0 commit comments

Comments
 (0)