Skip to content

Commit 4c5f597

Browse files
Updated files with 'repo_helper'.
1 parent 7fb2c14 commit 4c5f597

12 files changed

Lines changed: 38 additions & 47 deletions

File tree

.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: 11 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 }}
@@ -82,6 +80,9 @@ jobs:
8280

8381
Coverage:
8482
needs: tests
83+
permissions:
84+
actions: write
85+
contents: read
8586
runs-on: "ubuntu-22.04"
8687
steps:
8788
- name: Checkout 🛎️
@@ -131,7 +132,10 @@ jobs:
131132
132133
Deploy:
133134
needs: tests
134-
135+
permissions:
136+
actions: write
137+
issues: write
138+
contents: read
135139
runs-on: "ubuntu-22.04"
136140
steps:
137141
- name: Checkout 🛎️
@@ -162,7 +166,7 @@ jobs:
162166
with:
163167
user: __token__
164168
password: ${{ secrets.PYPI_TOKEN }}
165-
skip_existing: true
169+
skip-existing: true
166170

167171
- name: Close milestone 🚪
168172
if: startsWith(github.ref, 'refs/tags/')

.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

.style.yapf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ split_before_dict_set_generator=True
312312
#
313313
# foo = ('This is a really long string: {}, {}, {}, {}'
314314
# .format(a, b, c, d))
315-
split_before_dot=False
315+
split_before_dot=True
316316

317317
# Split after the opening paren which surrounds an expression if it doesn't
318318
# fit on a single line.

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,11 @@ The pertinent changes from Python 3.6 to Python 3.9 are:
102102
:target: https://github.com/domdfcoding/pprint36/commit/master
103103
:alt: GitHub last commit
104104

105-
.. |maintained| image:: https://img.shields.io/maintenance/yes/2025
105+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2026
106106
:alt: Maintenance
107107

108108
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/pprint36
109-
:target: https://pypi.org/project/pprint36/
109+
:target: https://pypistats.org/packages/pprint36
110110
:alt: PyPI - Downloads
111111

112112
.. end shields

formate.toml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ priority = 30
1212
[hooks.yapf.kwargs]
1313
yapf_style = ".style.yapf"
1414

15+
[hooks.trailing_commas]
16+
priority = 21
17+
18+
[hooks.trailing_commas.kwargs]
19+
format_ImportFrom = false
20+
1521
[hooks.isort]
1622
priority = 50
1723

@@ -27,20 +33,6 @@ lines_between_types = 0
2733
use_parentheses = true
2834
remove_redundant_aliases = true
2935
default_section = "THIRDPARTY"
30-
known_third_party = [
31-
"coincidence",
32-
"coverage",
33-
"coverage_pyver_pragma",
34-
"domdf_python_tools",
35-
"github",
36-
"importlib_metadata",
37-
"pytest",
38-
"pytest_cov",
39-
"pytest_randomly",
40-
"pytest_rerunfailures",
41-
"pytest_timeout",
42-
"requests",
43-
]
4436
known_first_party = [ "pprint36",]
4537

4638
[config]

0 commit comments

Comments
 (0)