Skip to content

Commit d34a76c

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

13 files changed

+62
-41
lines changed

.bumpversion.cfg

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

66
[bumpversion:file:pyproject.toml]
77

8-
[bumpversion:file:repo_helper.yml]
8+
search = version = "{current_version}"
9+
replace = version = "{new_version}"
910

10-
[bumpversion:file:__pkginfo__.py]
11+
[bumpversion:file:repo_helper.yml]
1112

1213
[bumpversion:file:README.rst]
1314

.github/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ 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
3434
markComment: >

.github/workflows/flake8.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: Flake8
44

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

812
permissions:
913
contents: read
@@ -24,7 +28,7 @@ jobs:
2428
list-files: "json"
2529
filters: |
2630
code:
27-
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
31+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
2832
2933
- name: Setup Python 🐍
3034
if: steps.changes.outputs.code == 'true'

.github/workflows/mypy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ name: mypy
44

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

812
permissions:
913
contents: read
@@ -29,7 +33,7 @@ jobs:
2933
list-files: "json"
3034
filters: |
3135
code:
32-
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
36+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
3337
3438
- name: Setup Python 🐍
3539
if: steps.changes.outputs.code == 'true'

.github/workflows/python_ci.yml

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

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

813
permissions:
914
actions: write
@@ -15,7 +20,7 @@ jobs:
1520
runs-on: "windows-2019"
1621
continue-on-error: ${{ matrix.config.experimental }}
1722
env:
18-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
23+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-rc.1'
1924

2025
strategy:
2126
fail-fast: False
@@ -24,7 +29,7 @@ jobs:
2429
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2530
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2631
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
27-
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
32+
- {python-version: "3.10.0-rc.1", testenvs: "py310-dev,build", experimental: True}
2833

2934
steps:
3035
- name: Checkout 🛎️
@@ -38,7 +43,7 @@ jobs:
3843
list-files: "json"
3944
filters: |
4045
code:
41-
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
46+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
4247
4348
- name: Setup Python 🐍
4449
id: setup-python

.github/workflows/python_ci_linux.yml

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

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

814
permissions:
915
actions: write
@@ -15,7 +21,7 @@ jobs:
1521
runs-on: "ubuntu-20.04"
1622
continue-on-error: ${{ matrix.config.experimental }}
1723
env:
18-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
24+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-rc.1'
1925

2026
strategy:
2127
fail-fast: False
@@ -24,7 +30,7 @@ jobs:
2430
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2531
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2632
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
27-
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
33+
- {python-version: "3.10.0-rc.1", testenvs: "py310-dev,build", experimental: True}
2834

2935
steps:
3036
- name: Checkout 🛎️
@@ -38,7 +44,7 @@ jobs:
3844
list-files: "json"
3945
filters: |
4046
code:
41-
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
47+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
4248
4349
- name: Setup Python 🐍
4450
id: setup-python

.github/workflows/python_ci_macos.yml

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

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

813
permissions:
914
actions: write
@@ -15,7 +20,7 @@ jobs:
1520
runs-on: "macos-latest"
1621
continue-on-error: ${{ matrix.config.experimental }}
1722
env:
18-
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-beta.1'
23+
USING_COVERAGE: '3.7,3.8,3.9,3.10.0-rc.1'
1924

2025
strategy:
2126
fail-fast: False
@@ -24,7 +29,7 @@ jobs:
2429
- {python-version: "3.7", testenvs: "py37,build", experimental: False}
2530
- {python-version: "3.8", testenvs: "py38,build", experimental: False}
2631
- {python-version: "3.9", testenvs: "py39,build", experimental: False}
27-
- {python-version: "3.10.0-beta.1", testenvs: "py310-dev,build", experimental: True}
32+
- {python-version: "3.10.0-rc.1", testenvs: "py310-dev,build", experimental: True}
2833

2934
steps:
3035
- name: Checkout 🛎️
@@ -38,7 +43,7 @@ jobs:
3843
list-files: "json"
3944
filters: |
4045
code:
41-
- '!(CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
46+
- '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
4247
4348
- name: Setup Python 🐍
4449
id: setup-python

.pre-commit-config.yaml

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

66
repos:
7+
- repo: https://github.com/repo-helper/pyproject-parser
8+
rev: v0.4.1
9+
hooks:
10+
- id: reformat-pyproject
11+
712
- repo: https://github.com/pre-commit/pre-commit-hooks
813
rev: v3.4.0
914
hooks:
@@ -41,7 +46,7 @@ repos:
4146
files: ^testing_tox/.*\.py$
4247

4348
- repo: https://github.com/domdfcoding/flake2lint
44-
rev: v0.4.0
49+
rev: v0.4.1
4550
hooks:
4651
- id: flake2lint
4752

@@ -68,7 +73,7 @@ repos:
6873
- id: forbid-crlf
6974

7075
- repo: https://github.com/repo-helper/formate
71-
rev: v0.4.4
76+
rev: v0.4.9
7277
hooks:
7378
- id: formate
7479
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ confidence=
6666
# no Warning level messages displayed, use"--disable=all --enable=classes
6767
# --disable=W"
6868
disable=all
69-
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,cyclic-import,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
69+
enable=assert-on-tuple,astroid-error,bad-except-order,bad-inline-option,bad-option-value,bad-reversed-sequence,bare-except,binary-op-exception,boolean-datetime,catching-non-exception,cell-var-from-loop,confusing-with-statement,consider-merging-isinstance,consider-using-enumerate,consider-using-ternary,continue-in-finally,deprecated-pragma,django-not-available,duplicate-except,duplicate-key,eval-used,exec-used,expression-not-assigned,fatal,file-ignored,fixme,global-at-module-level,global-statement,global-variable-not-assigned,global-variable-undefined,http-response-with-content-type-json,http-response-with-json-dumps,invalid-all-object,invalid-characters-in-docstring,len-as-condition,literal-comparison,locally-disabled,locally-enabled,lost-exception,lowercase-l-suffix,misplaced-bare-raise,missing-kwoa,mixed-line-endings,model-has-unicode,model-missing-unicode,model-no-explicit-unicode,model-unicode-not-callable,multiple-imports,new-db-field-with-default,non-ascii-bytes-literals,nonexistent-operator,not-in-loop,notimplemented-raised,overlapping-except,parse-error,pointless-statement,pointless-string-statement,raising-bad-type,raising-non-exception,raw-checker-failed,redefine-in-handler,redefined-argument-from-local,redefined-builtin,redundant-content-type-for-json-response,reimported,relative-import,return-outside-function,simplifiable-if-statement,singleton-comparison,syntax-error,trailing-comma-tuple,trailing-newlines,unbalanced-tuple-unpacking,undefined-all-variable,undefined-loop-variable,unexpected-line-ending-format,unidiomatic-typecheck,unnecessary-lambda,unnecessary-pass,unnecessary-semicolon,unneeded-not,unpacking-non-sequence,unreachable,unrecognized-inline-option,used-before-assignment,useless-else-on-loop,using-constant-test,wildcard-import,yield-outside-function,useless-return
7070

7171
[REPORTS]
7272

__pkginfo__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111
# This script based on https://github.com/rocky/python-uncompyle6/blob/master/__pkginfo__.py
1212
#
1313

14-
__all__ = [
15-
"__version__",
16-
"extras_require",
17-
]
14+
__all__ = ["extras_require"]
1815

19-
__version__ = "0.0.0"
2016
extras_require = {}

pyproject.toml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ Homepage = "https://github.com/python-coincidence/testing-tox"
2323
"Issue Tracker" = "https://github.com/python-coincidence/testing-tox/issues"
2424
"Source Code" = "https://github.com/python-coincidence/testing-tox"
2525

26-
[tool.mkrecipe]
27-
extras = "all"
28-
conda-channels = [ "python-coincidence",]
29-
3026
[tool.whey]
3127
base-classifiers = [
3228
"Development Status :: 4 - Beta",
@@ -45,3 +41,10 @@ package = "testing_tox"
4541

4642
[tool.importcheck]
4743
always = [ "testing_tox",]
44+
45+
[tool.mypy]
46+
python_version = "3.7"
47+
namespace_packages = true
48+
check_untyped_defs = true
49+
warn_unused_ignores = true
50+
no_implicit_optional = true

setup.cfg

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

tox.ini

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ deps =
5757
flake8-dunder-all>=0.1.1
5858
flake8-encodings>=0.1.0
5959
flake8-github-actions>=0.1.0
60+
flake8-noqa>=1.1.0
6061
flake8-pyi>=20.10.0
6162
flake8-pytest-style>=1.3.0
6263
flake8-slots>=0.1.0
@@ -68,13 +69,14 @@ deps =
6869
git+https://github.com/domdfcoding/flake8-rst-docstrings.git
6970
pydocstyle>=6.0.0
7071
pygments>=2.7.1
72+
importlib_metadata<4.5.0; python_version<'3.8'
7173
commands = python3 -m flake8_rst_docstrings_sphinx testing_tox --allow-toolbox {posargs}
7274

7375
[testenv:mypy]
7476
basepython = python3.7
7577
ignore_errors = True
7678
changedir = {toxinidir}
77-
deps = mypy==0.812
79+
deps = mypy==0.910
7880
commands = mypy testing_tox {posargs}
7981

8082
[testenv:pyup]
@@ -87,12 +89,15 @@ commands = pyup_dirs testing_tox --py36-plus --recursive
8789

8890
[flake8]
8991
max-line-length = 120
90-
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 ENC011 ENC012 ENC021 ENC022 ENC023 ENC024 ENC025 ENC026 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
92+
select = E111 E112 E113 E121 E122 E125 E127 E128 E129 E131 E133 E201 E202 E203 E211 E222 E223 E224 E225 E225 E226 E227 E228 E231 E241 E242 E251 E261 E262 E265 E271 E272 E303 E304 E306 E402 E502 E703 E711 E712 E713 E714 E721 W291 W292 W293 W391 W504 YTT101 YTT102 YTT103 YTT201 YTT202 YTT203 YTT204 YTT301 YTT302 YTT303 STRFTIME001 STRFTIME002 SXL001 PT001 PT002 PT003 PT006 PT007 PT008 PT009 PT010 PT011 PT012 PT013 PT014 PT015 PT016 PT017 PT018 PT019 PT020 PT021 RST201 RST202 RST203 RST204 RST205 RST206 RST207 RST208 RST210 RST211 RST212 RST213 RST214 RST215 RST216 RST217 RST218 RST219 RST299 RST301 RST302 RST303 RST304 RST305 RST306 RST399 RST401 RST499 RST900 RST901 RST902 RST903 Q001 Q002 Q003 A001 A002 A003 TYP001 TYP002 TYP003 TYP004 TYP005 TYP006 ENC001 ENC002 ENC003 ENC004 ENC011 ENC012 ENC021 ENC022 ENC023 ENC024 ENC025 ENC026 Y001,Y002 Y003 Y004 Y005 Y006 Y007 Y008 Y009 Y010 Y011 Y012 Y013 Y014 Y015 Y090 Y091 NQA001 NQA002 NQA003 NQA004 NQA005 NQA102 NQA103 E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
9193
extend-exclude = doc-source,old,build,dist,__pkginfo__.py,setup.py,venv
9294
rst-directives =
9395
TODO
9496
envvar
9597
extras-require
98+
license
99+
license-info
100+
rst-roles = choosealicense
96101
per-file-ignores =
97102
tests/*: D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002
98103
*/*.pyi: E301 E302 E305 D100 D101 D102 D103 D104 D106 D201 D204 D207 D208 D209 D210 D211 D212 D213 D214 D215 D300 D301 D400 D402 D403 D404 D415 D417 DALL000 SLOT000 SLOT001 SLOT002

0 commit comments

Comments
 (0)