Skip to content

Commit 6e16948

Browse files
authored
Generate and upload attestations to PyPI (#85)
2 parents 96a2ce2 + 104b4fd commit 6e16948

File tree

4 files changed

+18
-18
lines changed

4 files changed

+18
-18
lines changed

.github/workflows/deploy.yml

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ jobs:
5959
- name: Upload package to Test PyPI
6060
uses: pypa/gh-action-pypi-publish@release/v1
6161
with:
62+
attestations: true
6263
repository-url: https://test.pypi.org/legacy/
6364

6465
# Upload to real PyPI on GitHub Releases.
@@ -88,3 +89,5 @@ jobs:
8889

8990
- name: Upload package to PyPI
9091
uses: pypa/gh-action-pypi-publish@release/v1
92+
with:
93+
attestations: true

.github/workflows/test.yml

+3-7
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ permissions:
77

88
env:
99
FORCE_COLOR: 1
10-
PIP_DISABLE_PIP_VERSION_CHECK: 1
1110

1211
jobs:
1312
test:
@@ -26,16 +25,13 @@ jobs:
2625
with:
2726
python-version: ${{ matrix.python-version }}
2827
allow-prereleases: true
29-
cache: pip
3028

31-
- name: Install dependencies
32-
run: |
33-
python -m pip install -U pip
34-
python -m pip install -U tox
29+
- name: Install uv
30+
uses: hynek/setup-cached-uv@v2
3531

3632
- name: Tox tests
3733
run: |
38-
tox -e py
34+
uvx --with tox-uv tox -e py
3935
4036
- name: Upload coverage
4137
uses: codecov/[email protected]

.pre-commit-config.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.6.5
3+
rev: v0.6.9
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
@@ -12,7 +12,7 @@ repos:
1212
exclude: ^html/
1313

1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.6.0
15+
rev: v5.0.0
1616
hooks:
1717
- id: check-added-large-files
1818
- id: check-case-conflict
@@ -26,28 +26,28 @@ repos:
2626
- id: trailing-whitespace
2727

2828
- repo: https://github.com/python-jsonschema/check-jsonschema
29-
rev: 0.29.2
29+
rev: 0.29.3
3030
hooks:
3131
- id: check-github-workflows
3232
- id: check-renovate
3333

3434
- repo: https://github.com/rhysd/actionlint
35-
rev: v1.7.1
35+
rev: v1.7.3
3636
hooks:
3737
- id: actionlint
3838

3939
- repo: https://github.com/tox-dev/pyproject-fmt
40-
rev: 2.2.3
40+
rev: 2.2.4
4141
hooks:
4242
- id: pyproject-fmt
4343

4444
- repo: https://github.com/abravalheri/validate-pyproject
45-
rev: v0.19
45+
rev: v0.20.2
4646
hooks:
4747
- id: validate-pyproject
4848

4949
- repo: https://github.com/tox-dev/tox-ini-fmt
50-
rev: 1.4.0
50+
rev: 1.4.1
5151
hooks:
5252
- id: tox-ini-fmt
5353

pyproject.toml

+5-4
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ lint.select = [
6868
"YTT", # flake8-2020
6969
]
7070
lint.ignore = [
71-
"E203", # Whitespace before ':'
72-
"E221", # Multiple spaces before operator
73-
"E226", # Missing whitespace around arithmetic operator
74-
"E241", # Multiple spaces after ','
71+
"E203", # Whitespace before ':'
72+
"E221", # Multiple spaces before operator
73+
"E226", # Missing whitespace around arithmetic operator
74+
"E241", # Multiple spaces after ','
75+
"UP038", # Makes code slower and more verbose
7576
]
7677
lint.flake8-import-conventions.aliases.datetime = "dt"
7778
lint.flake8-import-conventions.banned-from = [ "datetime" ]

0 commit comments

Comments
 (0)