Skip to content

Commit cded6d2

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

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
* pytest-mypy-plugins-shim:
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.6"
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.6"
@@ -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,37 +5,55 @@ 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.10.0-alpha.7,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
1822
matrix:
1923
config:
20-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
24+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2125
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2226
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2327

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

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

3349
- name: Install dependencies 🔧
50+
if: steps.setup-python.outcome == 'success'
3451
run: |
3552
python -VV
3653
python -m site
3754
python -m pip install --upgrade pip setuptools wheel
3855
python -m pip install --upgrade tox virtualenv
3956
4057
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
41-
run: python -m tox -e "${{ matrix.config.testenvs }}"
58+
if: steps.setup-python.outcome == 'success'
59+
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,40 +5,58 @@ 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.10.0-alpha.7,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
1822
matrix:
1923
config:
20-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
24+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2125
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2226
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2327

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

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

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

4361

4462

.github/workflows/python_ci_macos.yml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,37 +5,55 @@ 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.10.0-alpha.7,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
1822
matrix:
1923
config:
20-
- {python-version: "3.10.0-alpha.7", testenvs: "py310-dev,build", experimental: True}
24+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2125
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2226
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2327

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

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

3349
- name: Install dependencies 🔧
50+
if: steps.setup-python.outcome == 'success'
3451
run: |
3552
python -VV
3653
python -m site
3754
python -m pip install --upgrade pip setuptools wheel
3855
python -m pip install --upgrade tox virtualenv
3956
4057
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
41-
run: python -m tox -e "${{ matrix.config.testenvs }}"
58+
if: steps.setup-python.outcome == 'success'
59+
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 = []
1111
dynamic = [ "requires-python", "classifiers", "dependencies",]
1212

1313
[[project.authors]]
14-
email = "dominic@davis-foster.co.uk"
1514
name = "Dominic Davis-Foster"
15+
email = "dominic@davis-foster.co.uk"
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)