Skip to content

Commit a5935fe

Browse files
Updated files with 'repo_helper'. (#9)
Co-authored-by: repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>
1 parent 28e4168 commit a5935fe

File tree

9 files changed

+101
-18
lines changed

9 files changed

+101
-18
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If possible, please include a small, self-contained reproduction.
4444
* testing-tox:
4545

4646
## Installation source
47-
<!-- e.g. Github repository, Github Releases, PyPI/pip, Anaconda/conda -->
47+
<!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda -->
4848

4949

5050
## Other Additional Information:

.github/workflows/flake8.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: Flake8
55
on:
66
push:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
Run:
1013
name: "Flake8"
@@ -14,17 +17,29 @@ jobs:
1417
- name: Checkout 🛎️
1518
uses: "actions/checkout@v2"
1619

20+
- name: Check for changed files
21+
uses: dorny/paths-filter@v2
22+
id: changes
23+
with:
24+
list-files: "json"
25+
filters: |
26+
code:
27+
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
28+
1729
- name: Setup Python 🐍
30+
if: steps.changes.outputs.code == 'true'
1831
uses: "actions/setup-python@v2"
1932
with:
20-
python-version: "3.8"
33+
python-version: "3.7"
2134

2235
- name: Install dependencies 🔧
36+
if: steps.changes.outputs.code == 'true'
2337
run: |
2438
python -VV
2539
python -m site
2640
python -m pip install --upgrade pip setuptools wheel
2741
python -m pip install tox
2842
2943
- name: "Run Flake8"
30-
run: "python -m tox -e lint -- --format github"
44+
if: steps.changes.outputs.code == 'true'
45+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ name: mypy
55
on:
66
push:
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
Run:
1013
name: "mypy / ${{ matrix.os }}"
@@ -19,7 +22,17 @@ jobs:
1922
- name: Checkout 🛎️
2023
uses: "actions/checkout@v2"
2124

25+
- name: Check for changed files
26+
uses: dorny/paths-filter@v2
27+
id: changes
28+
with:
29+
list-files: "json"
30+
filters: |
31+
code:
32+
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
33+
2234
- name: Setup Python 🐍
35+
if: steps.changes.outputs.code == 'true'
2336
uses: "actions/setup-python@v2"
2437
with:
2538
python-version: "3.7"
@@ -32,4 +45,5 @@ jobs:
3245
python -m pip install --upgrade tox virtualenv
3346
3447
- name: "Run mypy"
35-
run: "python -m tox -e mypy"
48+
if: steps.changes.outputs.code == 'true'
49+
run: "python -m tox -e mypy -s false"

.github/workflows/python_ci.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: Windows
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "windows-2019 / Python ${{ matrix.config.python-version }}"
1115
runs-on: "windows-2019"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-alpha.7'
18+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
1519

1620
strategy:
1721
fail-fast: False
@@ -20,23 +24,37 @@ jobs:
2024
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2125
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2226
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
23-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
27+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2428

2529
steps:
2630
- name: Checkout 🛎️
2731
uses: "actions/checkout@v2"
2832

33+
- name: Check for changed files
34+
if: startsWith(github.ref, 'refs/tags/') != true
35+
uses: dorny/paths-filter@v2
36+
id: changes
37+
with:
38+
list-files: "json"
39+
filters: |
40+
code:
41+
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
42+
2943
- name: Setup Python 🐍
44+
id: setup-python
45+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3046
uses: "actions/setup-python@v2"
3147
with:
3248
python-version: "${{ matrix.config.python-version }}"
3349

3450
- name: Install dependencies 🔧
51+
if: steps.setup-python.outcome == 'success'
3552
run: |
3653
python -VV
3754
python -m site
3855
python -m pip install --upgrade pip setuptools wheel
3956
python -m pip install --upgrade tox virtualenv
4057
4158
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
42-
run: python -m tox -e "${{ matrix.config.testenvs }}"
59+
if: steps.setup-python.outcome == 'success'
60+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

.github/workflows/python_ci_linux.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: Linux
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "ubuntu-20.04 / Python ${{ matrix.config.python-version }}"
1115
runs-on: "ubuntu-20.04"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-alpha.7'
18+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
1519

1620
strategy:
1721
fail-fast: False
@@ -20,23 +24,37 @@ jobs:
2024
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2125
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2226
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
23-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
27+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2428

2529
steps:
2630
- name: Checkout 🛎️
2731
uses: "actions/checkout@v2"
2832

33+
- name: Check for changed files
34+
if: startsWith(github.ref, 'refs/tags/') != true
35+
uses: dorny/paths-filter@v2
36+
id: changes
37+
with:
38+
list-files: "json"
39+
filters: |
40+
code:
41+
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
42+
2943
- name: Setup Python 🐍
44+
id: setup-python
45+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3046
uses: "actions/setup-python@v2"
3147
with:
3248
python-version: "${{ matrix.config.python-version }}"
3349

3450
- name: Install dependencies 🔧
51+
if: steps.setup-python.outcome == 'success'
3552
run: |
3653
python -VV
3754
python -m site
3855
python -m pip install --upgrade pip setuptools wheel
3956
python -m pip install --upgrade tox virtualenv
4057
4158
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
42-
run: python -m tox -e "${{ matrix.config.testenvs }}"
59+
if: steps.setup-python.outcome == 'success'
60+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

.github/workflows/python_ci_macos.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ name: macOS
55
on:
66
push:
77

8+
permissions:
9+
actions: write
10+
contents: read
11+
812
jobs:
913
tests:
1014
name: "macos-latest / Python ${{ matrix.config.python-version }}"
1115
runs-on: "macos-latest"
1216
continue-on-error: ${{ matrix.config.experimental }}
1317
env:
14-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-alpha.7'
18+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
1519

1620
strategy:
1721
fail-fast: False
@@ -20,23 +24,37 @@ jobs:
2024
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2125
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2226
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
23-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
27+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2428

2529
steps:
2630
- name: Checkout 🛎️
2731
uses: "actions/checkout@v2"
2832

33+
- name: Check for changed files
34+
if: startsWith(github.ref, 'refs/tags/') != true
35+
uses: dorny/paths-filter@v2
36+
id: changes
37+
with:
38+
list-files: "json"
39+
filters: |
40+
code:
41+
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
42+
2943
- name: Setup Python 🐍
44+
id: setup-python
45+
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
3046
uses: "actions/setup-python@v2"
3147
with:
3248
python-version: "${{ matrix.config.python-version }}"
3349

3450
- name: Install dependencies 🔧
51+
if: steps.setup-python.outcome == 'success'
3552
run: |
3653
python -VV
3754
python -m site
3855
python -m pip install --upgrade pip setuptools wheel
3956
python -m pip install --upgrade tox virtualenv
4057
4158
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
42-
run: python -m tox -e "${{ matrix.config.testenvs }}"
59+
if: steps.setup-python.outcome == 'success'
60+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,13 @@ repos:
6262
- --keep-runtime-typing
6363

6464
- repo: https://github.com/Lucas-C/pre-commit-hooks
65-
rev: v1.1.9
65+
rev: v1.1.10
6666
hooks:
6767
- id: remove-crlf
6868
- id: forbid-crlf
6969

7070
- repo: https://github.com/repo-helper/formate
71-
rev: v0.4.3
71+
rev: v0.4.4
7272
hooks:
7373
- id: formate
7474
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ keywords = [ "tox",]
1111
dynamic = [ "requires-python", "classifiers", "dependencies",]
1212

1313
[[project.authors]]
14-
1514
name = "Dominic Davis-Foster"
15+
1616

1717

1818
[project.license]

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ changedir = {toxinidir}
5050
ignore_errors = True
5151
skip_install = True
5252
deps =
53-
flake8 >=3.8.2
54-
flake8-2020 >= 1.6.0
53+
flake8>=3.8.2
54+
flake8-2020>=1.6.0
5555
flake8-builtins>=1.5.3
5656
flake8-docstrings>=1.5.0
5757
flake8-dunder-all>=0.1.1

0 commit comments

Comments
 (0)