Skip to content

Commit 97a54fa

Browse files
authored
Configuring for pure-python (#296)
1 parent f7b41a7 commit 97a54fa

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

.github/workflows/pre-commit.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,22 @@ env:
1515

1616
jobs:
1717
pre-commit:
18+
permissions:
19+
contents: read
20+
pull-requests: write
1821
name: linting
1922
runs-on: ubuntu-latest
2023
steps:
2124
- uses: actions/checkout@v4
2225
- uses: actions/setup-python@v5
2326
with:
2427
python-version: 3.x
25-
- uses: pre-commit/[email protected]
28+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd #v3.0.1
2629
with:
2730
extra_args: --all-files --show-diff-on-failure
2831
env:
2932
PRE_COMMIT_COLOR: always
30-
- uses: pre-commit-ci/lite-action@v1.0.2
33+
- uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 #v1.1.0
3134
if: always()
3235
with:
3336
msg: Apply pre-commit code formatting

.github/workflows/tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212

1313
jobs:
1414
build:
15+
permissions:
16+
contents: read
17+
pull-requests: write
1518
strategy:
1619
# We want to see all failures:
1720
fail-fast: false

.meta.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# https://github.com/zopefoundation/meta/tree/master/config/pure-python
33
[meta]
44
template = "pure-python"
5-
commit-id = "d1a00d25"
5+
commit-id = "0833c289"
66

77
[python]
88
with-pypy = false

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ repos:
77
hooks:
88
- id: isort
99
- repo: https://github.com/hhatto/autopep8
10-
rev: "v2.3.1"
10+
rev: "v2.3.2"
1111
hooks:
1212
- id: autopep8
1313
args: [--in-place, --aggressive, --aggressive]
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v3.19.0
15+
rev: v3.19.1
1616
hooks:
1717
- id: pyupgrade
1818
args: [--py39-plus]

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
Generated from:
33
https://github.com/zopefoundation/meta/tree/master/config/pure-python
4-
-->
4+
-->
55
# Contributing to zopefoundation projects
66

77
The projects under the zopefoundation GitHub organization are open source and

0 commit comments

Comments
 (0)