8000 Updated files with 'repo_helper'. (#14) · python-formate/flake8-encodings@b98cdf4 · GitHub
[go: up one dir, main page]

Skip to content

Commit b98cdf4

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

22 files changed

+281
-170
lines changed

.bumpversion.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ search = : str = "{current_version}"
2020
replace = : str = "{new_version}"
2121

2222
[bumpversion:file:pyproject.toml]
23+
search = version = "{current_version}"
24+
replace = version = "{new_version}"

.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
* flake8-encodings:
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/actions_build_conda.sh

Expand all lines: .github/actions_build_conda.sh
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
set -e -x
55

6-
python -m repo_helper make-recipe || exit 1
6+
python -m mkrecipe --type wheel || exit 1
77

88
# Switch to miniconda
99
source "/home/runner/miniconda/etc/profile.d/conda.sh"

.github/workflows/conda_ci.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
tests:
1114
name: "Conda"

.github/workflows/docs_test_action.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,29 @@ name: "Docs Check"
44
on:
55
- push
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
docs:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout 🛎️
1215
uses: "actions/checkout@v1"
16+
17+
- name: Check for changed files
18+
uses: dorny/paths-filter@v2
19+
id: changes
20+
with:
21+
list-files: "json"
22+
filters: |
23+
code:
24+
- '!tests/**'
25+
1326
- name: Install and Build 🔧
14-
uses: ammaraskar/sphinx-action@master
27+
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
28+
if: steps.changes.outputs.code == 'true'
1529
with:
16-
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
30+
pre-build-command: python -m pip install tox
1731
docs-folder: "doc-source/"
1832
build-command: "tox -e docs -- -W "

.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+
- '!(doc-source/**|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+
- '!(doc-source/**|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: 22 additions & 4 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.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,32 +25,46 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

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

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
4158
python -m pip install --upgrade pip setuptools wheel
4259
python -m pip install --upgrade tox virtualenv
4360
4461
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
45-
run: python -m tox -e "${{ matrix.config.testenvs }}"
62+
if: steps.setup-python.outcome == 'success'
63+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
4664

4765
- name: "Upload Coverage 🚀"
4866
uses: actions/upload-artifact@v2
49-
if: ${{ always() }}
67+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5068
with:
5169
name: "coverage-${{ matrix.config.python-version }}"
5270
path: .coverage

.github/workflows/python_ci_linux.yml

Lines changed: 23 additions & 6 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.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,20 +25,33 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

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

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
@@ -43,11 +60,12 @@ jobs:
4360
python -m pip install --upgrade coverage_pyver_pragma
4461
4562
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
46-
run: python -m tox -e "${{ matrix.config.testenvs }}"
63+
if: steps.setup-python.outcome == 'success'
64+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
4765

4866
- name: "Upload Coverage 🚀"
4967
uses: actions/upload-artifact@v2
50-
if: ${{ always() }}
68+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5169
with:
5270
name: "coverage-${{ matrix.config.python-version }}"
5371
path: .coverage
@@ -132,7 +150,6 @@ jobs:
132150
skip_existing: true
133151

134152

135-
136153
Conda:
137154
needs: deploy
138155
runs-on: "ubuntu-20.04"
@@ -149,7 +166,7 @@ jobs:
149166
- name: Install dependencies 🔧
150167
run: |
151168
python -m pip install --upgrade pip setuptools wheel
152-
python -m pip install --upgrade repo_helper
169+
python -m pip install --upgrade mkrecipe
153170
154171
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
155172
bash miniconda.sh -b -p $HOME/miniconda

.github/workflows/python_ci_macos.yml

Lines changed: 22 additions & 4 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.6,3.7,3.8,3.9,3.10.0-alpha.6,pypy-3.6,pypy-3.7'
18+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10.0-beta.1,pypy-3.6,pypy-3.7'
1519

1620
strategy:
1721
fail-fast: False
@@ -21,32 +25,46 @@ jobs:
2125
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2226
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2327
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
24-
- {python-version: "3.10.0-alpha.6", testenvs: "py310-dev,build", experimental: True}
28+
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
2529
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
2630
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
2731

2832
steps:
2933
- name: Checkout 🛎️
3034
uses: "actions/checkout@v2"
3135

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

3753
- name: Install dependencies 🔧
54+
if: steps.setup-python.outcome == 'success'
3855
run: |
3956
python -VV
4057
python -m site
4158
python -m pip install --upgrade pip setuptools wheel
4259
python -m pip install --upgrade tox virtualenv
4360
4461
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
45-
run: python -m tox -e "${{ matrix.config.testenvs }}"
62+
if: steps.setup-python.outcome == 'success'
63+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
4664

4765
- name: "Upload Coverage 🚀"
4866
uses: actions/upload-artifact@v2
49-
if: ${{ always() }}
67+
if: ${{ always() && steps.setup-python.outcome == 'success' }}
5068
with:
5169
name: "coverage-${{ matrix.config.python-version }}"
5270
path: .coverage

0 commit comments

Comments
 (0)
0