Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3e81cef

Browse files
authored
Merge pull request#198 from hugovk/attest
2 parents7919df8 +7d634de commit3e81cef

File tree

3 files changed

+23
-25
lines changed

3 files changed

+23
-25
lines changed

‎.github/workflows/pypi-package.yml

Lines changed: 5 additions & 0 deletions
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:
@@ -45,3 +48,5 @@ jobs:
4548

4649
-name:Upload package to PyPI
4750
uses:pypa/gh-action-pypi-publish@release/v1
51+
with:
52+
attestations:true

‎.pre-commit-config.yaml

Lines changed: 6 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.4.0
3+
rev:v0.6.8
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.4.0
9+
rev:24.8.0
1010
hooks:
1111
-id:black
1212

@@ -22,24 +22,24 @@ repos:
2222
-id:trailing-whitespace
2323

2424
-repo:https://github.com/python-jsonschema/check-jsonschema
25-
rev:0.28.2
25+
rev:0.29.2
2626
hooks:
2727
-id:check-dependabot
2828
-id:check-github-workflows
2929

3030
-repo:https://github.com/rhysd/actionlint
31-
rev:v1.6.27
31+
rev:v1.7.2
3232
hooks:
3333
-id:actionlint
3434

3535
-repo:https://github.com/tox-dev/pyproject-fmt
36-
rev:1.8.0
36+
rev:2.2.4
3737
hooks:
3838
-id:pyproject-fmt
3939
args:[--max-supported-python=3.13]
4040

4141
-repo:https://github.com/abravalheri/validate-pyproject
42-
rev:v0.16
42+
rev:v0.20.2
4343
hooks:
4444
-id:validate-pyproject
4545

‎pyproject.toml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[build-system]
22
build-backend ="flit_core.buildapi"
33
requires = [
4-
"flit_core>=3.7",
4+
"flit-core>=3.7",
55
]
66

77
[project]
@@ -10,7 +10,7 @@ version = "2024.6"
1010
description ="The Sphinx theme for the CPython docs and related projects"
1111
readme ="README.md"
1212
license.file ="LICENSE"
13-
authors = [{name ="PyPA",email ="distutils-sig@python.org"}]
13+
authors = [ {name ="PyPA",email ="distutils-sig@python.org" }]
1414
requires-python =">=3.9"
1515
classifiers = [
1616
"Development Status :: 5 - Production/Stable",
@@ -32,22 +32,18 @@ urls.Code = "https://github.com/python/python-docs-theme"
3232
urls.Download ="https://pypi.org/project/python-docs-theme/"
3333
urls.Homepage ="https://github.com/python/python-docs-theme/"
3434
urls."Issue tracker" ="https://github.com/python/python-docs-theme/issues"
35-
[project.entry-points."sphinx.html_themes"]
36-
python_docs_theme ='python_docs_theme'
35+
entry-points."sphinx.html_themes".python_docs_theme ="python_docs_theme"
3736

3837
[tool.flit.module]
3938
name ="python_docs_theme"
4039

4140
[tool.flit.sdist]
42-
include = [
43-
"python_docs_theme/",
44-
]
41+
include = ["python_docs_theme/" ]
4542

4643
[tool.ruff]
4744
fix =true
4845

49-
[tool.ruff.lint]
50-
select = [
46+
lint.select = [
5147
"C4",# flake8-comprehensions
5248
"E",# pycodestyle errors
5349
"F",# pyflakes errors
@@ -56,19 +52,16 @@ select = [
5652
"LOG",# flake8-logging
5753
"PGH",# pygrep-hooks
5854
"PYI",# flake8-pyi
59-
"RUF100",# unused noqa (yesqa)
6055
"RUF022",# unsorted-dunder-all
56+
"RUF100",# unused noqa (yesqa)
6157
"UP",# pyupgrade
6258
"W",# pycodestyle warnings
6359
"YTT",# flake8-2020
6460
]
65-
ignore = [
66-
"E203",# Whitespace before ':'
67-
"E221",# Multiple spaces before operator
68-
"E226",# Missing whitespace around arithmetic operator
69-
"E241",# Multiple spaces after ','
61+
lint.ignore = [
62+
"E203",# Whitespace before ':'
63+
"E221",# Multiple spaces before operator
64+
"E226",# Missing whitespace around arithmetic operator
65+
"E241",# Multiple spaces after ','
7066
]
71-
72-
73-
[tool.ruff.lint.isort]
74-
required-imports = ["from __future__ import annotations"]
67+
lint.isort.required-imports = ["from __future__ import annotations" ]

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp