File tree Expand file tree Collapse file tree 4 files changed +17
-26
lines changed Expand file tree Collapse file tree 4 files changed +17
-26
lines changed Original file line number Diff line number Diff line change 24
24
- uses : actions/checkout@v4
25
25
with :
26
26
fetch-depth : 0
27
+ persist-credentials : false
27
28
28
29
- uses : hynek/build-and-inspect-python-package@v2
29
30
50
51
- name : Publish to Test PyPI
51
52
uses : pypa/gh-action-pypi-publish@release/v1
52
53
with :
53
- attestations : true
54
54
repository-url : https://test.pypi.org/legacy/
55
55
56
56
# Publish to PyPI on GitHub Releases.
75
75
76
76
- name : Publish to PyPI
77
77
uses : pypa/gh-action-pypi-publish@release/v1
78
- with :
79
- attestations : true
Original file line number Diff line number Diff line change @@ -14,16 +14,11 @@ jobs:
14
14
15
15
steps :
16
16
- uses : actions/checkout@v4
17
+ with :
18
+ persist-credentials : false
17
19
- uses : actions/setup-python@v5
18
20
with :
19
21
python-version : " 3.x"
20
- cache : pip
21
- cache-dependency-path : .github/workflows/lint.yml
22
- - uses : pre-commit/action@v3.0.1
23
- - name : Install dependencies
24
- run : |
25
- python -m pip install --upgrade pip wheel
26
- python -m pip install --upgrade safety
27
- python -m pip install --editable .
22
+ - uses : tox-dev/action-pre-commit-uv@v1
28
23
# Ignore 70612 / CVE-2019-8341, Jinja2 is a safety dep, not ours
29
- - run : safety check --ignore 70612
24
+ - run : uvx safety check --ignore 70612
Original file line number Diff line number Diff line change @@ -23,21 +23,19 @@ jobs:
23
23
# fetch all branches and tags
24
24
# ref actions/checkout#448
25
25
fetch-depth : 0
26
+ persist-credentials : false
26
27
27
28
- name : Set up Python ${{ matrix.python-version }}
28
29
uses : actions/setup-python@v5
29
30
with :
30
31
python-version : ${{ matrix.python-version }}
31
32
allow-prereleases : true
32
- cache : pip
33
- cache-dependency-path : pyproject.toml
34
33
35
- - name : Install tox
36
- run : |
37
- python -m pip install tox
34
+ - name : Install uv
35
+ uses : hynek/setup-cached-uv@v2
38
36
39
37
- name : Run tests
40
- run : tox -e py
38
+ run : uvx --with tox-uv tox -e py
41
39
42
40
- name : Upload coverage
43
41
uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : v0.6.8
3
+ rev : v0.7.4
4
4
hooks :
5
5
- id : ruff
6
6
args : [--exit-non-zero-on-fix]
7
7
8
8
- repo : https://github.com/psf/black-pre-commit-mirror
9
- rev : 24.8 .0
9
+ rev : 24.10 .0
10
10
hooks :
11
11
- id : black
12
12
13
13
- repo : https://github.com/pre-commit/pre-commit-hooks
14
- rev : v4.6 .0
14
+ rev : v5.0 .0
15
15
hooks :
16
16
- id : check-added-large-files
17
17
- id : check-case-conflict
@@ -25,18 +25,18 @@ repos:
25
25
- id : trailing-whitespace
26
26
27
27
- repo : https://github.com/python-jsonschema/check-jsonschema
28
- rev : 0.29.2
28
+ rev : 0.29.4
29
29
hooks :
30
30
- id : check-dependabot
31
31
- id : check-github-workflows
32
32
33
33
- repo : https://github.com/rhysd/actionlint
34
- rev : v1.7.2
34
+ rev : v1.7.4
35
35
hooks :
36
36
- id : actionlint
37
37
38
38
- repo : https://github.com/pre-commit/mirrors-mypy
39
- rev : v1.11.2
39
+ rev : v1.13.0
40
40
hooks :
41
41
- id : mypy
42
42
args :
@@ -50,12 +50,12 @@ repos:
50
50
additional_dependencies : ["types-requests"]
51
51
52
52
- repo : https://github.com/tox-dev/pyproject-fmt
53
- rev : 2.2.4
53
+ rev : v2.5.0
54
54
hooks :
55
55
- id : pyproject-fmt
56
56
57
57
- repo : https://github.com/abravalheri/validate-pyproject
58
- rev : v0.20.2
58
+ rev : v0.23
59
59
hooks :
60
60
- id : validate-pyproject
61
61
You can’t perform that action at this time.
0 commit comments