File tree 3 files changed +12
-26
lines changed 3 files changed +12
-26
lines changed Original file line number Diff line number Diff line change @@ -43,31 +43,17 @@ jobs:
43
43
44
44
linters :
45
45
runs-on : ubuntu-latest
46
-
47
46
steps :
48
47
- uses : actions/checkout@v4
49
- - name : Set up Python ${{ matrix.python-version }} with uv
48
+ - name : Set up Python 3.10 with uv
50
49
uses :
drivendataorg/[email protected]
51
50
with :
52
- python-version : ${{ matrix.python-version }}
51
+ python-version : " 3.10 "
53
52
cache : ' packages'
54
53
55
54
- name : Install dependencies
56
55
run : |
57
56
uv sync
58
- - name : Install linter deps
57
+ - name : Run pre-commit checks
59
58
run : |
60
- uv pip install -r tests/requirements-linters.txt
61
- - name : Run isort
62
- run : |
63
- uv run isort --version
64
- uv run isort -c .
65
- - name : Run flake8
66
- if : failure() || success()
67
- run : |
68
- uv run flake8 --version
69
- uv run flake8
70
- - uses : psf/black@stable
71
- with :
72
- version : " 22.3.0"
73
- if : failure() || success()
59
+ uv run pre-commit run --all --all-files
Original file line number Diff line number Diff line change 8
8
rev : 3.8.4
9
9
hooks :
10
10
- id : flake8
11
- language_version : python3.9
11
+ language_version : python3.10
12
12
- repo : https://github.com/pre-commit/mirrors-isort
13
13
rev : v5.6.4
14
14
hooks :
15
15
- id : isort
16
- language_version : python3.9
16
+ language_version : python3.10
17
17
- repo : https://github.com/ikamensh/flynt/
18
18
rev : ' 0.69'
19
19
hooks :
20
20
- id : flynt
21
- language_version : python3.9
21
+ language_version : python3.10
22
22
- repo : https://github.com/asottile/pyupgrade
23
23
rev : v2.26.0
24
24
hooks :
25
25
- id : pyupgrade
26
26
entry : pyupgrade --py3-plus --py36-plus --py37-plus --keep-runtime-typing
27
- language_version : python3.9
27
+ language_version : python3.10
28
28
- repo : https://github.com/myint/autoflake
29
29
rev : ' v1.4'
30
30
hooks :
31
31
- id : autoflake
32
32
args : ['--remove-all-unused-imports', '-i']
33
- language_version : python3.9
33
+ language_version : python3.10
34
34
- repo : https://github.com/pre-commit/mirrors-autopep8
35
35
rev : ' v1.5.7'
36
36
hooks :
37
37
- id : autopep8
38
- language_version : python3.9
38
+ language_version : python3.10
39
39
- repo : https://github.com/psf/black
40
40
rev : 22.3.0
41
41
hooks :
42
42
- id : black
43
- language_version : python3
44
- language_version : python3.9
43
+ language_version : python3.10
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ dev = [
48
48
" tox-uv>=1.20.1" ,
49
49
" tox>=4.24.1" ,
50
50
" pytest-cov>=6.0.0" ,
51
+ " pre-commit-uv>=4.1.4" ,
51
52
]
52
53
53
54
[tool .setuptools ]
You can’t perform that action at this time.
0 commit comments