Skip to content

Commit 8d8f6c5

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

File tree

9 files changed

+54
-20
lines changed

9 files changed

+54
-20
lines changed

.github/stale.yml

Lines changed: 5 additions & 5 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: []
@@ -31,10 +31,10 @@ exemptAssignees: false
3131
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/python_ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "windows-2019"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.6", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3838
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3939
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: "ubuntu-20.04"
2424
continue-on-error: ${{ matrix.config.experimental }}
2525
env:
26-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.6,pypy-3.6,pypy-3.7,pypy-3.8'
26+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.6,pypy-3.7,pypy-3.8'
2727

2828
strategy:
2929
fail-fast: False
@@ -34,7 +34,7 @@ jobs:
3434
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3535
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3636
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
37-
- {python-version: "3.11.0-alpha.6", testenvs: "py311-dev,build", experimental: True}
37+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3838
- {python-version: "pypy-3.6", testenvs: "pypy36,build", experimental: False}
3939
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
4040
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}

.github/workflows/python_ci_macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: "macos-latest"
2323
continue-on-error: ${{ matrix.config.experimental }}
2424
env:
25-
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-alpha.6,pypy-3.7,pypy-3.8'
25+
USING_COVERAGE: '3.6,3.7,3.8,3.9,3.10,3.11.0-beta.3,pypy-3.7,pypy-3.8'
2626

2727
strategy:
2828
fail-fast: False
@@ -33,7 +33,7 @@ jobs:
3333
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
3434
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
3535
- {python-version: "3.10", testenvs: "py310,build", experimental: False}
36-
- {python-version: "3.11.0-alpha.6", testenvs: "py311-dev,build", experimental: True}
36+
- {python-version: "3.11.0-beta.3", testenvs: "py311-dev,build", experimental: True}
3737
- {python-version: "pypy-3.7", testenvs: "pypy37,build", experimental: True}
3838
- {python-version: "pypy-3.8", testenvs: "pypy38,build", experimental: True}
3939

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: ^$
55

66
repos:
77
- repo: https://github.com/repo-helper/pyproject-parser
8-
rev: v0.4.2
8+
rev: v0.7.0
99
hooks:
1010
- id: reformat-pyproject
1111

@@ -30,7 +30,7 @@ repos:
3030
- id: end-of-file-fixer
3131

3232
- repo: https://github.com/domdfcoding/pre-commit-hooks
33-
rev: v0.3.0
33+
rev: v0.4.0
3434
hooks:
3535
- id: requirements-txt-sorter
3636
args:
@@ -40,7 +40,7 @@ repos:
4040
- id: bind-requirements
4141

4242
- repo: https://github.com/domdfcoding/flake8-dunder-all
43-
rev: v0.1.8
43+
rev: v0.2.1
4444
hooks:
4545
- id: ensure-dunder-all
4646
files: ^seed_intersphinx_mapping/.*\.py$
@@ -67,7 +67,7 @@ repos:
6767
- --keep-runtime-typing
6868

6969
- repo: https://github.com/Lucas-C/pre-commit-hooks
70-
rev: v1.1.11
70+
rev: v1.2.0
7171
hooks:
7272
- id: remove-crlf
7373
- id: forbid-crlf
@@ -78,13 +78,13 @@ repos:
7878
- id: snippet-fmt
7979

8080
- repo: https://github.com/python-formate/formate
81-
rev: v0.4.9
81+
rev: v0.4.10
8282
hooks:
8383
- id: formate
8484
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
8585

8686
- repo: https://github.com/domdfcoding/dep_checker
87-
rev: v0.6.2
87+
rev: v0.7.0
8888
hooks:
8989
- id: dep_checker
9090
args:

doc-source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@
2727
slug = re.sub(r'\W+', '-', project.lower())
2828
release = version = config.version
2929

30-
todo_include_todos = bool(os.environ.get("SHOW_TODOS", 0))
30+
sphinx_builder = os.environ.get("SPHINX_BUILDER", "html").lower()
31+
todo_include_todos = int(os.environ.get("SHOW_TODOS", 0)) and sphinx_builder != "latex"
3132

3233
intersphinx_mapping = {
3334
"python": ("https://docs.python.org/3/", None),

justfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
default: lint
2+
3+
pdf-docs: latex-docs
4+
make -C doc-source/build/latex/
5+
6+
latex-docs:
7+
SPHINX_BUILDER=latex tox -e docs
8+
9+
unused-imports:
10+
tox -e lint -- --select F401
11+
12+
incomplete-defs:
13+
tox -e lint -- --select MAN
14+
15+
vdiff:
16+
git diff $(repo-helper show version -q)..HEAD
17+
18+
bare-ignore:
19+
greppy '# type:? *ignore(?!\[|\w)' -s
20+
21+
lint: unused-imports incomplete-defs bare-ignore
22+
tox -n qa

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extensions = [
5858
"sphinx_toolbox.more_autosummary",
5959
"sphinx_toolbox.documentation_summary",
6060
"sphinx_toolbox.tweaks.param_dash",
61+
"sphinxcontrib.toctree_plus",
6162
"sphinx_toolbox.tweaks.latex_layout",
6263
"sphinx_toolbox.tweaks.latex_toc",
6364
"sphinx.ext.intersphinx",
@@ -68,7 +69,6 @@ extensions = [
6869
"notfound.extension",
6970
"sphinx_copybutton",
7071
"sphinxcontrib.default_values",
71-
"sphinxcontrib.toctree_plus",
7272
"sphinx_debuginfo",
7373
"sphinx_licenseinfo",
7474
"seed_intersphinx_mapping",

tox.ini

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# * testenv:docs
66
# * testenv:build
77
# * testenv:lint
8+
# * testenv:perflint
89
# * testenv:mypy
910
# * testenv:pyup
1011
# * testenv:coverage
@@ -40,6 +41,7 @@ cov = py36, coverage
4041

4142
[testenv:docs]
4243
setenv = SHOW_TODOS = 1
44+
passenv = SPHINX_BUILDER
4345
basepython = python3.8
4446
changedir = {toxinidir}/doc-source
4547
deps = -r{toxinidir}/doc-source/requirements.txt
@@ -70,7 +72,7 @@ deps =
7072
flake8-dunder-all>=0.1.1
7173
flake8-encodings>=0.1.0
7274
flake8-github-actions>=0.1.0
73-
flake8-noqa>=1.1.0
75+
flake8-noqa>=1.1.0,<=1.2.2
7476
flake8-pyi>=20.10.0
7577
flake8-pytest-style>=1.3.0
7678
flake8-quotes>=3.3.0
@@ -81,11 +83,20 @@ deps =
8183
git+https://github.com/domdfcoding/flake8-rst-docstrings-sphinx.git
8284
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
8385
git+https://github.com/python-formate/flake8-unused-arguments.git@magic-methods
86+
git+https://github.com/python-formate/flake8-missing-annotations.git
8487
pydocstyle>=6.0.0
8588
pygments>=2.7.1
8689
importlib_metadata<4.5.0; python_version<'3.8'
8790
commands = python3 -m flake8_rst_docstrings_sphinx seed_intersphinx_mapping tests --allow-toolbox {posargs}
8891

92+
[testenv:perflint]
93+
basepython = python3.6
94+
changedir = {toxinidir}
95+
ignore_errors = True
96+
skip_install = True
97+
deps = perflint
98+
commands = python3 -m perflint seed_intersphinx_mapping {posargs}
99+
89100
[testenv:mypy]
90101
basepython = python3.6
91102
ignore_errors = True

0 commit comments

Comments
 (0)