Skip to content

Commit 832ff64

Browse files
authored
Generate digital attestations for PyPI (PEP 740) (#28)
2 parents 5f2eeba + 83199ea commit 832ff64

File tree

3 files changed

+25
-3
lines changed

3 files changed

+25
-3
lines changed

.github/workflows/release.yml

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
permissions:
1212
contents: read
1313

14+
env:
15+
FORCE_COLOR: 1
16+
1417
jobs:
1518
# Always build & lint package.
1619
build-package:
@@ -47,6 +50,7 @@ jobs:
4750
- name: Publish to Test PyPI
4851
uses: pypa/gh-action-pypi-publish@release/v1
4952
with:
53+
attestations: true
5054
repository-url: https://test.pypi.org/legacy/
5155

5256
# Publish to PyPI on GitHub Releases.
@@ -78,3 +82,5 @@ jobs:
7882

7983
- name: Publish to PyPI
8084
uses: pypa/gh-action-pypi-publish@release/v1
85+
with:
86+
attestations: true

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Test
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents: read
7+
58
env:
69
FORCE_COLOR: 1
710

.pre-commit-config.yaml

+16-3
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,39 @@ repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.6.0
44
hooks:
5+
- id: check-added-large-files
56
- id: check-case-conflict
67
- id: check-merge-conflict
78
- id: check-toml
89
- id: check-yaml
910
- id: debug-statements
1011
- id: end-of-file-fixer
12+
- id: forbid-submodules
1113
- id: trailing-whitespace
1214

15+
- repo: https://github.com/python-jsonschema/check-jsonschema
16+
rev: 0.29.2
17+
hooks:
18+
- id: check-dependabot
19+
- id: check-github-workflows
20+
21+
- repo: https://github.com/rhysd/actionlint
22+
rev: v1.7.2
23+
hooks:
24+
- id: actionlint
25+
1326
- repo: https://github.com/tox-dev/pyproject-fmt
14-
rev: 2.1.3
27+
rev: 2.2.4
1528
hooks:
1629
- id: pyproject-fmt
1730

1831
- repo: https://github.com/abravalheri/validate-pyproject
19-
rev: v0.18
32+
rev: v0.20.2
2033
hooks:
2134
- id: validate-pyproject
2235

2336
- repo: https://github.com/tox-dev/tox-ini-fmt
24-
rev: 1.3.1
37+
rev: 1.4.1
2538
hooks:
2639
- id: tox-ini-fmt
2740

0 commit comments

Comments
 (0)