Skip to content

Commit a97c865

Browse files
authored
Remove GitHub attestation and update config/linting/spelling (#474)
2 parents 5563e56 + 792ead0 commit a97c865

File tree

14 files changed

+49
-37
lines changed

14 files changed

+49
-37
lines changed

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
# Regexes for lines to exclude from consideration
55
exclude_also =
66
# Don't complain if non-runnable code isn't run:
7-
if __name__ == .__main__.:
87
def main
8+
if __name__ == .__main__.:
9+
if TYPE_CHECKING:
910

1011
[run]
1112
omit =

.github/renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:base"],
3+
"extends": ["config:base", ":semanticCommitsDisabled"],
44
"labels": ["changelog: skip", "dependencies"],
55
"packageRules": [
66
{

.github/workflows/deploy.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
needs: build-package
4242

4343
permissions:
44-
attestations: write
4544
id-token: write
4645

4746
steps:
@@ -51,11 +50,6 @@ jobs:
5150
name: Packages
5251
path: dist
5352

54-
- name: Attest build provenance
55-
uses: actions/attest-build-provenance@v2
56-
with:
57-
subject-path: "dist/*"
58-
5953
- name: Upload package to Test PyPI
6054
uses: pypa/gh-action-pypi-publish@release/v1
6155
with:
@@ -71,7 +65,6 @@ jobs:
7165
needs: build-package
7266

7367
permissions:
74-
attestations: write
7568
id-token: write
7669

7770
steps:
@@ -81,10 +74,5 @@ jobs:
8174
name: Packages
8275
path: dist
8376

84-
- name: Attest build provenance
85-
uses: actions/attest-build-provenance@v2
86-
with:
87-
subject-path: "dist/*"
88-
8977
- name: Upload package to PyPI
9078
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: Lint
22

33
on: [push, pull_request, workflow_dispatch]
44

5+
permissions: {}
6+
57
env:
68
FORCE_COLOR: 1
7-
8-
permissions: {}
9+
RUFF_OUTPUT_FORMAT: github
910

1011
jobs:
1112
lint:

.github/workflows/require-pr-label.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
with:
1818
mode: minimum
1919
count: 1
20-
labels:
21-
"changelog: Added, changelog: Changed, changelog: Deprecated, changelog:
22-
Fixed, changelog: Removed, changelog: Security, changelog: skip"
20+
labels: |
21+
changelog: Added
22+
changelog: Changed
23+
changelog: Deprecated
24+
changelog: Fixed
25+
changelog: Removed
26+
changelog: Security
27+
changelog: skip

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
python-version: ["pypy3.10", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
16+
python-version: ["pypy3.11", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
1717
os: [windows-latest, macos-latest, ubuntu-latest]
1818

1919
steps:

.pre-commit-config.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.9.2
3+
rev: v0.9.6
44
hooks:
55
- id: ruff
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 24.10.0
9+
rev: 25.1.0
1010
hooks:
1111
- id: black
1212

@@ -16,6 +16,7 @@ repos:
1616
- id: check-added-large-files
1717
- id: check-case-conflict
1818
- id: check-merge-conflict
19+
- id: check-shebang-scripts-are-executable
1920
- id: check-json
2021
- id: check-toml
2122
- id: check-yaml
@@ -27,7 +28,7 @@ repos:
2728
exclude: tests/data/expected_tabulated.py
2829

2930
- repo: https://github.com/python-jsonschema/check-jsonschema
30-
rev: 0.31.0
31+
rev: 0.31.2
3132
hooks:
3233
- id: check-github-workflows
3334
- id: check-renovate
@@ -38,7 +39,7 @@ repos:
3839
- id: actionlint
3940

4041
- repo: https://github.com/woodruffw/zizmor-pre-commit
41-
rev: v1.2.2
42+
rev: v1.3.1
4243
hooks:
4344
- id: zizmor
4445

@@ -53,15 +54,21 @@ repos:
5354
- id: validate-pyproject
5455

5556
- repo: https://github.com/tox-dev/tox-ini-fmt
56-
rev: 1.4.1
57+
rev: 1.5.0
5758
hooks:
5859
- id: tox-ini-fmt
5960

61+
- repo: https://github.com/google/yamlfmt
62+
rev: v0.16.0
63+
hooks:
64+
- id: yamlfmt
65+
6066
- repo: https://github.com/rbubley/mirrors-prettier
61-
rev: v3.4.2
67+
rev: v3.5.1
6268
hooks:
6369
- id: prettier
6470
args: [--prose-wrap=always, --print-width=88]
71+
exclude_types: [yaml]
6572

6673
- repo: meta
6774
hooks:

.yamlfmt.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
formatter:
2+
retain_line_breaks_single: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![PyPI downloads](https://img.shields.io/pypi/dm/pypistats.svg)](https://pypistats.org/packages/pypistats)
66
[![Azure Pipelines status](https://dev.azure.com/hugovk/hugovk/_apis/build/status/hugovk.pypistats?branchName=main)](https://dev.azure.com/hugovk/hugovk/_build?definitionId=1)
77
[![GitHub Actions status](https://github.com/hugovk/pypistats/workflows/Test/badge.svg)](https://github.com/hugovk/pypistats/actions)
8-
[![codecov](https://codecov.io/gh/hugovk/pypistats/branch/main/graph/badge.svg)](https://codecov.io/gh/hugovk/pypistats)
8+
[![Codecov](https://codecov.io/gh/hugovk/pypistats/branch/main/graph/badge.svg)](https://codecov.io/gh/hugovk/pypistats)
99
[![Licence](https://img.shields.io/github/license/hugovk/pypistats.svg)](LICENSE.txt)
1010
[![DOI](https://zenodo.org/badge/149862343.svg)](https://zenodo.org/badge/latestdoi/149862343)
1111
[![Code style: Black](https://img.shields.io/badge/code%20style-Black-000000.svg)](https://github.com/psf/black)

RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Release Checklist
1+
# Release checklist
22

33
- [ ] Get `main` to the appropriate code release state.
44
[GitHub Actions](https://github.com/hugovk/pypistats/actions) should be running

0 commit comments

Comments
 (0)