Skip to content

Commit d926d55

Browse files
Updated files with 'repo_helper'.
1 parent bf8ea76 commit d926d55

File tree

16 files changed

+54
-69
lines changed

16 files changed

+54
-69
lines changed

.github/workflows/conda_ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,11 @@ on:
66
push:
77
branches: ["master"]
88

9-
permissions:
10-
contents: read
11-
129
jobs:
1310
tests:
1411
name: "Conda"
12+
permissions:
13+
contents: read
1514
runs-on: ubuntu-22.04
1615
defaults:
1716
run:

.github/workflows/docs_test_action.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ on:
99
- 'imgbot'
1010
pull_request:
1111

12-
permissions:
13-
contents: read
14-
1512
jobs:
1613
docs:
14+
permissions:
15+
contents: read
1716
runs-on: ubuntu-latest
1817
steps:
1918
- name: Checkout 🛎️

.github/workflows/flake8.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ on:
1010
- 'imgbot'
1111
pull_request:
1212

13-
permissions:
14-
contents: read
15-
1613
jobs:
1714
Run:
1815
name: "Flake8"
16+
permissions:
17+
contents: read
1918
runs-on: "ubuntu-22.04"
2019

2120
steps:

.github/workflows/mypy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ on:
1010
- 'imgbot'
1111
pull_request:
1212

13-
permissions:
14-
contents: read
15-
1613
jobs:
1714
Run:
15+
permissions:
16+
contents: read
1817
name: "mypy / ${{ matrix.os }}"
1918
runs-on: ${{ matrix.os }}
2019

.github/workflows/octocheese.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ on:
66
schedule:
77
- cron: 0 12 * * *
88

9-
permissions:
10-
contents: write
11-
129
jobs:
1310
Run:
11+
permissions:
12+
contents: write
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: domdfcoding/octocheese@master

.github/workflows/python_ci.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ on:
1111

1212
pull_request:
1313

14-
permissions:
15-
actions: write
16-
issues: write
17-
contents: read
18-
1914
jobs:
2015
tests:
16+
permissions:
17+
actions: write
18+
contents: read
2119
name: "windows-2022 / Python ${{ matrix.config.python-version }}"
2220
runs-on: "windows-2022"
2321
continue-on-error: ${{ matrix.config.experimental }}

.github/workflows/python_ci_linux.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ on:
1212
- '*'
1313
pull_request:
1414

15-
permissions:
16-
actions: write
17-
issues: write
18-
contents: read
19-
2015
jobs:
2116
tests:
17+
permissions:
18+
actions: write
19+
contents: read
2220
name: "ubuntu-22.04 / Python ${{ matrix.config.python-version }}"
2321
runs-on: "ubuntu-22.04"
2422
continue-on-error: ${{ matrix.config.experimental }}
@@ -87,6 +85,9 @@ jobs:
8785

8886
Coverage:
8987
needs: tests
88+
permissions:
89+
actions: write
90+
contents: read
9091
runs-on: "ubuntu-22.04"
9192
steps:
9293
- name: Checkout 🛎️
@@ -136,7 +137,10 @@ jobs:
136137
137138
Deploy:
138139
needs: tests
139-
140+
permissions:
141+
actions: write
142+
issues: write
143+
contents: read
140144
runs-on: "ubuntu-22.04"
141145
steps:
142146
- name: Checkout 🛎️
@@ -167,7 +171,7 @@ jobs:
167171
with:
168172
user: __token__
169173
password: ${{ secrets.PYPI_TOKEN }}
170-
skip_existing: true
174+
skip-existing: true
171175

172176
- name: Close milestone 🚪
173177
if: startsWith(github.ref, 'refs/tags/')
@@ -181,6 +185,8 @@ jobs:
181185

182186
Conda:
183187
needs: deploy
188+
permissions:
189+
contents: read
184190
runs-on: ubuntu-22.04
185191
if: startsWith(github.ref, 'refs/tags/') || (startsWith(github.event.head_commit.message, 'Bump version') != true)
186192
steps:

.github/workflows/python_ci_macos.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ on:
1111

1212
pull_request:
1313

14-
permissions:
15-
actions: write
16-
issues: write
17-
contents: read
18-
1914
jobs:
2015
tests:
16+
permissions:
17+
actions: write
18+
contents: read
2119
name: "macos-${{ matrix.config.os-ver }} / Python ${{ matrix.config.python-version }}"
2220
runs-on: "macos-${{ matrix.config.os-ver }}"
2321
continue-on-error: ${{ matrix.config.experimental }}

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ docs/_build/
4747
doc/build
4848
target/
4949
.ipynb_checkpoints
50-
.python-version
5150
celerybeat-schedule
5251
celerybeat.pid
5352
*.sage.py

.pre-commit-config.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ci:
88

99
repos:
1010
- repo: https://github.com/repo-helper/pyproject-parser
11-
rev: v0.13.0
11+
rev: v0.14.0
1212
hooks:
1313
- id: reformat-pyproject
1414

@@ -18,7 +18,6 @@ repos:
1818
- id: check-added-large-files
1919
- id: check-ast
2020
- id: fix-byte-order-marker
21-
- id: check-byte-order-marker
2221
- id: check-case-conflict
2322
- id: check-executables-have-shebangs
2423
- id: check-json
@@ -85,9 +84,11 @@ repos:
8584
hooks:
8685
- id: formate
8786
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
87+
additional_dependencies:
88+
- formate-trailing-commas>=0.1.0
8889

8990
- repo: https://github.com/python-coincidence/dep_checker
90-
rev: v0.8.0
91+
rev: v0.9.0
9192
hooks:
9293
- id: dep_checker
9394
args:

0 commit comments

Comments
 (0)