File tree 6 files changed +46
-37
lines changed
6 files changed +46
-37
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 25
25
with :
26
26
fetch-depth : 0
27
27
28
- - uses : hynek/build-and-inspect-python-package@v1
28
+ - uses : hynek/build-and-inspect-python-package@v2
29
29
30
30
# Upload to Test PyPI on every commit on main.
31
31
release-test-pypi :
42
42
43
43
steps :
44
44
- name : Download packages built by build-and-inspect-python-package
45
- uses : actions/download-artifact@v3
45
+ uses : actions/download-artifact@v4
46
46
with :
47
47
name : Packages
48
48
path : dist
66
66
67
67
steps :
68
68
- name : Download packages built by build-and-inspect-python-package
69
- uses : actions/download-artifact@v3
69
+ uses : actions/download-artifact@v4
70
70
with :
71
71
name : Packages
72
72
path : dist
Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ name: Lint
2
2
3
3
on : [push, pull_request, workflow_dispatch]
4
4
5
+ env :
6
+ FORCE_COLOR : 1
7
+
5
8
permissions :
6
9
contents : read
7
10
14
17
- uses : actions/setup-python@v5
15
18
with :
16
19
python-version : " 3.x"
17
- -
uses :
pre-commit/[email protected]
20
+ cache : pip
21
+ -
uses :
pre-commit/[email protected]
Original file line number Diff line number Diff line change 34
34
tox -e py
35
35
36
36
- name : Upload output images
37
- uses : actions/upload-artifact@v3
37
+ uses : actions/upload-artifact@v4
38
38
with :
39
- name : images
39
+ name : images-${{ matrix.os }}-${{ matrix.python-version }}
40
40
path : " *.png"
Original file line number Diff line number Diff line change 1
1
repos :
2
- - repo : https://github.com/asottile/pyupgrade
3
- rev : v3.15.0
2
+ - repo : https://github.com/astral-sh/ruff-pre-commit
3
+ rev : v0.2.1
4
4
hooks :
5
- - id : pyupgrade
6
- args : [--py38-plus ]
5
+ - id : ruff
6
+ args : [--exit-non-zero-on-fix ]
7
7
8
8
- repo : https://github.com/psf/black-pre-commit-mirror
9
- rev : 23.12 .1
9
+ rev : 24.1 .1
10
10
hooks :
11
11
- id : black
12
12
13
- - repo : https://github.com/PyCQA/isort
14
- rev : 5.13.2
15
- hooks :
16
- - id : isort
17
-
18
- - repo : https://github.com/PyCQA/flake8
19
- rev : 6.1.0
20
- hooks :
21
- - id : flake8
22
- additional_dependencies :
23
- [flake8-2020, flake8-errmsg, flake8-implicit-str-concat]
24
-
25
- - repo : https://github.com/pre-commit/pygrep-hooks
26
- rev : v1.10.0
27
- hooks :
28
- - id : python-check-blanket-noqa
29
- - id : python-no-log-warn
30
-
31
13
- repo : https://github.com/pre-commit/pre-commit-hooks
32
14
rev : v4.5.0
33
15
hooks :
@@ -40,12 +22,12 @@ repos:
40
22
- id : trailing-whitespace
41
23
42
24
- repo : https://github.com/tox-dev/pyproject-fmt
43
- rev : 1.5.3
25
+ rev : 1.7.0
44
26
hooks :
45
27
- id : pyproject-fmt
46
28
47
29
- repo : https://github.com/abravalheri/validate-pyproject
48
- rev : v0.15
30
+ rev : v0.16
49
31
hooks :
50
32
- id : validate-pyproject
51
33
55
37
- id : tox-ini-fmt
56
38
57
39
- repo : https://github.com/pre-commit/mirrors-prettier
58
- rev : v3.1.0
40
+ rev : v4.0.0-alpha.8
59
41
hooks :
60
42
- id : prettier
61
43
args : [--prose-wrap=always, --print-width=88]
Original file line number Diff line number Diff line change @@ -60,6 +60,31 @@ version.source = "vcs"
60
60
[tool .hatch .version .raw-options ]
61
61
local_scheme = " no-local-version"
62
62
63
- [tool .isort ]
64
- add_imports = " from __future__ import annotations"
65
- profile = " black"
63
+ [tool .ruff ]
64
+ fix = true
65
+
66
+ [tool .ruff .lint ]
67
+ select = [
68
+ " C4" , # flake8-comprehensions
69
+ " E" , # pycodestyle errors
70
+ " EM" , # flake8-errmsg
71
+ " F" , # pyflakes errors
72
+ " I" , # isort
73
+ " ISC" , # flake8-implicit-str-concat
74
+ " LOG" , # flake8-logging
75
+ " PGH" , # pygrep-hooks
76
+ " RUF100" , # unused noqa (yesqa)
77
+ " UP" , # pyupgrade
78
+ " W" , # pycodestyle warnings
79
+ " YTT" , # flake8-2020
80
+ ]
81
+ extend-ignore = [
82
+ " E203" , # Whitespace before ':'
83
+ " E221" , # Multiple spaces before operator
84
+ " E226" , # Missing whitespace around arithmetic operator
85
+ " E241" , # Multiple spaces after ','
86
+ ]
87
+
88
+ [tool .ruff .lint .isort ]
89
+ known-first-party = [" stravavis" ]
90
+ required-imports = [" from __future__ import annotations" ]
You can’t perform that action at this time.
0 commit comments