8000 Rollup autoupdates. · python-formate/contributing@8dae667 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dae667

Browse files
committed
Rollup autoupdates.
1 parent 7092bfb commit 8dae667

24 files changed

+248
-134
lines changed

.bumpversion.cfg

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ tag = True
55

66
[bumpversion:file:README.rst]
77

8-
[bumpversion:file:__pkginfo__.py]
9-
108
[bumpversion:file:contributing/__init__.py]
119
search = : str = "{current_version}"
1210
replace = : str = "{new_version}"
@@ -15,4 +13,7 @@ replace = : str = "{new_version}"
1513

1614
[bumpversion:file:pyproject.toml]
1715

16+
search = version = "{current_version}"
17+
replace = version = "{new_version}"
18+
1819
[bumpversion:file:repo_helper.yml]

.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
* contributing:
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/milestones.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env python
2+
3+
# stdlib
4+
import os
5+
import sys
6+
7+
# 3rd party
8+
from github3 import GitHub
9+
from github3.repos import Repository
10+
from packaging.version import InvalidVersion, Version
11+
12+
latest_tag = os.environ["GITHUB_REF_NAME"]
13+
14+
try:
15+
current_version = Version(latest_tag)
16+
except InvalidVersion:
17+
sys.exit()
18+
19+
gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"])
20+
repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1))
21+
22+
for milestone in repo.milestones(state="open"):
23+
try:
24+
milestone_version = Version(milestone.title)
25+
except InvalidVersion:
26+
continue
27+
if milestone_version == current_version:
28+
sys.exit(not milestone.update(state="closed"))

.github/stale.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ daysUntilStale: 180
77

88
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
99
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
10-
daysUntilClose: 180
10+
daysUntilClose: false
1111

1212
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
1313
onlyLabels: []
@@ -28,13 +28,13 @@ exemptMilestones: false
2828
exemptAssignees: false
2929

3030
# Label to use when marking as stale
31-
staleLabel: wontfix
31+
staleLabel: stale
3232

3333
# Comment to post when marking as stale. Set to `false` to disable
34-
markComment: >
35-
This issue has been automatically marked as stale because it has not had
36-
recent activity. It will be closed if no further activity occurs. Thank you
37-
for your contributions.
34+
markComment: false
35+
# This issue has been automatically marked as stale because it has not had
36+
# recent activity. It will be closed if no further activity occurs. Thank you
37+
# for your contributions.
3838

3939
# Comment to post when removing the stale label.
4040
# unmarkComment: >

.github/workflows/cleanup.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

.github/workflows/docs_test_action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
---
33
name: "Docs Check"
44
on:
5-
- push
5+
push:
6+
branches-ignore:
7+
- 'repo-helper-update'
8+
- 'pre-commit-ci-update-config'
9+
- 'imgbot'
10+
pull_request:
611

712
permissions:
813
contents: read
@@ -12,12 +17,12 @@ jobs:
1217
runs-on: ubuntu-latest
1318
steps:
1419
- name: Checkout 🛎️
15-
uses: "actions/checkout@v1"
20+
uses: "actions/checkout@v4"
1621

1722
- name: Install and Build 🔧
18-
uses: ammaraskar/sphinx-action@master
23+
uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1
1924

2025
with:
21-
pre-build-command: apt-get update && apt-get install gcc python3-dev git pandoc -y && python -m pip install tox
26+
pre-build-command: python -m pip install tox
2227
docs-folder: "doc-source/"
2328
build-command: "tox -e docs -- -W "

.github/workflows/flake8.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@ name: Flake8
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
712

813
permissions:
914
contents: read
1015

1116
jobs:
1217
Run:
1318
name: "Flake8"
14-
runs-on: "ubuntu-18.04"
19+
runs-on: "ubuntu-20.04"
1520

1621
steps:
1722
- name: Checkout 🛎️
18-
uses: "actions/checkout@v2"
23+
uses: "actions/checkout@v4"
1924

2025
- name: Check for changed files
2126
uses: dorny/paths-filter@v2
@@ -28,7 +33,7 @@ jobs:
2833
2934
- name: Setup Python 🐍
3035
if: steps.changes.outputs.code == 'true'
31-
uses: "actions/setup-python@v2"
36+
uses: "actions/setup-python@v5"
3237
with:
3338
python-version: "3.8"
3439

@@ -38,8 +43,8 @@ jobs:
3843
python -VV
3944
python -m site
4045
python -m pip install --upgrade pip setuptools wheel
41-
python -m pip install tox
46+
python -m pip install tox~=3.0
4247
4348
- name: "Run Flake8"
4449
if: steps.changes.outputs.code == 'true'
45-
run: "python -m tox -e lint -- --format github"
50+
run: "python -m tox -e lint -s false -- --format github"

.github/workflows/mypy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ name: mypy
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
pull_request:
712

813
permissions:
914
contents: read
@@ -20,7 +25,7 @@ jobs:
2025

2126
steps:
2227
- name: Checkout 🛎️
23-
uses: "actions/checkout@v2"
28+
uses: "actions/checkout@v4"
2429

2530
- name: Check for changed files
2631
uses: dorny/paths-filter@v2
@@ -33,7 +38,7 @@ jobs:
3338
3439
- name: Setup Python 🐍
3540
if: steps.changes.outputs.code == 'true'
36-
uses: "actions/setup-python@v2"
41+
uses: "actions/setup-python@v5"
3742
with:
3843
python-version: "3.8"
3944

@@ -42,8 +47,8 @@ jobs:
4247
python -VV
4348
python -m site
4449
python -m pip install --upgrade pip setuptools wheel
45-
python -m pip install --upgrade tox virtualenv
50+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
4651
4752
- name: "Run mypy"
4853
if: steps.changes.outputs.code == 'true'
49-
run: "python -m tox -e mypy"
54+
run: "python -m tox -e mypy -s false"

.github/workflows/python_ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ name: Windows
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
12+
pull_request:
713

814
permissions:
915
actions: write
16+
issues: write
1017
contents: read
1118

1219
jobs:
@@ -25,7 +32,7 @@ jobs:
2532

2633
steps:
2734
- name: Checkout 🛎️
28-
uses: "actions/checkout@v2"
35+
uses: "actions/checkout@v4"
2936

3037
- name: Check for changed files
3138
if: startsWith(github.ref, 'refs/tags/') != true
@@ -40,7 +47,7 @@ jobs:
4047
- name: Setup Python 🐍
4148
id: setup-python
4249
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
43-
uses: "actions/setup-python@v2"
50+
uses: "actions/setup-python@v5"
4451
with:
4552
python-version: "${{ matrix.config.python-version }}"
4653

@@ -50,8 +57,8 @@ jobs:
5057
python -VV
5158
python -m site
5259
python -m pip install --upgrade pip setuptools wheel
53-
python -m pip install --upgrade tox virtualenv
60+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
5461
5562
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
5663
if: steps.setup-python.outcome == 'success'
57-
run: python -m tox -e "${{ matrix.config.testenvs }}"
64+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

.github/workflows/python_ci_linux.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ name: Linux
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
tags:
12+
- '*'
13+
pull_request:
714

815
permissions:
916
actions: write
17+
issues: write
1018
contents: read
1119

1220
jobs:
@@ -25,7 +33,7 @@ jobs:
2533

2634
steps:
2735
- name: Checkout 🛎️
28-
uses: "actions/checkout@v2"
36+
uses: "actions/checkout@v4"
2937

3038
- name: Check for changed files
3139
if: startsWith(github.ref, 'refs/tags/') != true
@@ -40,7 +48,7 @@ jobs:
4048
- name: Setup Python 🐍
4149
id: setup-python
4250
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
43-
uses: "actions/setup-python@v2"
51+
uses: "actions/setup-python@v5"
4452
with:
4553
python-version: "${{ matrix.config.python-version }}"
4654

@@ -50,8 +58,8 @@ jobs:
5058
python -VV
5159
python -m site
5260
python -m pip install --upgrade pip setuptools wheel
53-
python -m pip install --upgrade tox virtualenv
61+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
5462
5563
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
5664
if: steps.setup-python.outcome == 'success'
57-
run: python -m tox -e "${{ matrix.config.testenvs }}"
65+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

.github/workflows/python_ci_macos.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ name: macOS
44

55
on:
66
push:
7+
branches-ignore:
8+
- 'repo-helper-update'
9+
- 'pre-commit-ci-update-config'
10+
- 'imgbot'
11+
12+
pull_request:
713

814
permissions:
915
actions: write
16+
issues: write
1017
contents: read
1118

1219
jobs:
@@ -25,7 +32,7 @@ jobs:
2532

2633
steps:
2734
- name: Checkout 🛎️
28-
uses: "actions/checkout@v2"
35+
uses: "actions/checkout@v4"
2936

3037
- name: Check for changed files
3138
if: startsWith(github.ref, 'refs/tags/') != true
@@ -40,7 +47,7 @@ jobs:
4047
- name: Setup Python 🐍
4148
id: setup-python
4249
if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
43-
uses: "actions/setup-python@v2"
50+
uses: "actions/setup-python@v5"
4451
with:
4552
python-version: "${{ matrix.config.python-version }}"
4653

@@ -50,8 +57,8 @@ jobs:
5057
python -VV
5158
python -m site
5259
python -m pip install --upgrade pip setuptools wheel
53-
python -m pip install --upgrade tox virtualenv
60+
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
5461
5562
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
5663
if: steps.setup-python.outcome == 'success'
57-
run: python -m tox -e "${{ matrix.config.testenvs }}"
64+
run: python -m tox -e "${{ matrix.config.testenvs }}" -s false

0 commit comments

Comments
 (0)
0