Skip to content

Commit daabfb6

Browse files
Updated files with 'repo_helper'.
1 parent 841b941 commit daabfb6

File tree

12 files changed

+40
-58
lines changed

12 files changed

+40
-58
lines changed

.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: 10 additions & 6 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 }}
@@ -85,6 +83,9 @@ jobs:
8583

8684
Coverage:
8785
needs: tests
86+
permissions:
87+
actions: write
88+
contents: read
8889
runs-on: "ubuntu-22.04"
8990
steps:
9091
- name: Checkout 🛎️
@@ -134,7 +135,10 @@ jobs:
134135
135136
Deploy:
136137
needs: tests
137-
138+
permissions:
139+
actions: write
140+
issues: write
141+
contents: read
138142
runs-on: "ubuntu-22.04"
139143
steps:
140144
- name: Checkout 🛎️

.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 }}

.pre-commit-config.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -33,7 +32,7 @@ repos:
3332
- id: end-of-file-fixer
3433

3534
- repo: https://github.com/domdfcoding/pre-commit-hooks
36-
rev: v0.4.0
35+
rev: v0.5.0
3736
hooks:
3837
- id: requirements-txt-sorter
3938
args:
@@ -66,7 +65,7 @@ repos:
6665
hooks:
6766
- id: pyupgrade
6867
args:
69-
- --py37-plus
68+
- --py36-plus
7069
- --keep-runtime-typing
7170

7271
- repo: https://github.com/Lucas-C/pre-commit-hooks
@@ -81,13 +80,15 @@ repos:
8180
- id: snippet-fmt
8281

8382
- repo: https://github.com/python-formate/formate
84-
rev: v0.8.0
83+
rev: v1.1.2
8584
hooks:
8685
- id: formate
8786
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
87+
additional_dependencies:
88+
- formate-trailing-commas>=0.1.1
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:

.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
@@ -89,11 +89,11 @@ flake8-github-actions
8989
:target: https://github.com/python-formate/flake8-github-actions/commit/master
9090
:alt: GitHub last commit
9191

92-
.. |maintained| image:: https://img.shields.io/maintenance/yes/2025
92+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2026
9393
:alt: Maintenance
9494

9595
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/flake8-github-actions
96-
:target: https://pypi.org/project/flake8-github-actions/
96+
:target: https://pypistats.org/packages/flake8-github-actions
9797
:alt: PyPI - Downloads
9898

9999
.. end shields

formate.toml

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,20 @@ reformat-generics = 40
55
noqa-reformat = 60
66
ellipsis-reformat = 70
77
squish_stubs = 80
8+
newline_after_equals = 90
89

910
[hooks.yapf]
1011
priority = 30
1112

1213
[hooks.yapf.kwargs]
1314
yapf_style = ".style.yapf"
1415

16+
[hooks.trailing_commas]
17+
priority = 21
18+
19+
[hooks.trailing_commas.kwargs]
20+
format_ImportFrom = false
21+
1522
[hooks.isort]
1623
priority = 50
1724

@@ -27,29 +34,6 @@ lines_between_types = 0
2734
use_parentheses = true
2835
remove_redundant_aliases = true
2936
default_section = "THIRDPARTY"
30-
known_third_party = [
31-
"apeye",
32-
"attrs",
33-
"click",
34-
"coincidence",
35-
"consolekit",
36-
"coverage",
37-
"coverage_pyver_pragma",
38-
"domdf_python_tools",
39-
"dulwich",
40-
"flake8",
41-
"flake8_json",
42-
"flake8_prettycount",
43-
"github",
44-
"github3_py",
45-
"importlib_metadata",
46-
"pytest",
47-
"pytest_cov",
48-
"pytest_randomly",
49-
"pytest_timeout",
50-
"requests",
51-
"typing_extensions",
52-
]
5337
known_first_party = [ "flake8_github_actions",]
5438

5539
[config]

0 commit comments

Comments
 (0)