Skip to content

Commit 08c0468

Browse files
authored
Bump dependencies and build tools (#54)
1 parent 1ee5bd1 commit 08c0468

File tree

6 files changed

+20
-31
lines changed

6 files changed

+20
-31
lines changed

.github/workflows/check.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
py:
20+
- "3.11.0-beta.5"
2021
- "3.10"
2122
- 3.9
2223
- 3.8
@@ -33,12 +34,13 @@ jobs:
3334
uses: actions/setup-python@v4
3435
with:
3536
python-version: ${{ matrix.py }}
36-
- name: pick environment to run
37+
- name: Pick environment to run
3738
run: |
38-
import subprocess; import json; import os
39-
major, minor, impl = json.loads(subprocess.check_output(["python", "-c", "import json; import sys; import platform; print(json.dumps([sys.version_info[0], sys.version_info[1], platform.python_implementation()]));"], universal_newlines=True))
40-
with open(os.environ['GITHUB_ENV'], 'a') as file_handler:
41-
file_handler.write('TOXENV=' + ("py" if impl == "CPython" else "pypy") + ("{}{}".format(major, minor) if impl == "CPython" else ("3" if major == 3 else "")) + "\n")
39+
import codecs; import os; import sys
40+
env = f"TOXENV=py3{sys.version_info[0]}\n"
41+
print("Picked:\n{env}for{sys.version}")
42+
with codecs.open(os.environ["GITHUB_ENV"], "a", "utf-8") as file_handler:
43+
file_handler.write(env)
4244
shell: python
4345
- name: setup test suite
4446
run: tox -vv --notest
@@ -87,7 +89,7 @@ jobs:
8789
- name: build package
8890
run: python -m build --sdist --wheel . -o dist
8991
- name: publish to PyPI
90-
uses: pypa/gh-action-pypi-publish@master
92+
uses: pypa/gh-action-pypi-publish@v1.5.1
9193
with:
9294
skip_existing: true
9395
user: __token__

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
rev: v2.37.3
1616
hooks:
1717
- id: pyupgrade
18-
args: [ "--py36-plus" ]
18+
args: [ "--py37-plus" ]
1919
- repo: https://github.com/PyCQA/isort
2020
rev: 5.10.1
2121
hooks:
@@ -43,9 +43,8 @@ repos:
4343
rev: v2.0.0
4444
hooks:
4545
- id: setup-cfg-fmt
46-
args: [ --min-py3-version, "3.7", "--max-py-version", "3.10" ]
4746
- repo: https://github.com/PyCQA/flake8
48-
rev: 5.0.3
47+
rev: 5.0.4
4948
hooks:
5049
- id: flake8
5150
additional_dependencies:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=63.4", "wheel>=0.37.1", "setuptools_scm[toml]>=7.0.5"]
2+
requires = ["setuptools>=63.4.1", "setuptools-scm>=7.0.5"]
33
build-backend = "setuptools.build_meta"
44

55
[tool.black]

setup.cfg

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,6 @@ test =
5151
[options.package_data]
5252
sphinx_argparse_cli = py.typed
5353

54-
[flake8]
55-
max-complexity = 22
56-
max-line-length = 120
57-
unused-arguments-ignore-abstract-functions = true
58-
noqa-require-code = true
59-
dictionaries = en_US,python,technical
60-
ignore =
61-
E203 # whitespace before :
62-
W503 # line break before binary operator
63-
6454
[coverage:report]
6555
show_missing = True
6656
exclude_lines =

tox.ini

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,12 @@ commands =
7878

7979
[pytest]
8080
junit_family = xunit2
81+
82+
[flake8]
83+
max-complexity = 22
84+
max-line-length = 120
85+
noqa-require-code = true
86+
dictionaries = en_US,python,technical,django
87+
ignore =
88+
E203 # whitespace before :
89+
W503 # line break before binary operator

whitelist.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,17 @@ addinivalue
22
anonlabels
33
autosectionlabel
44
buildername
5-
cmd
65
confdir
7-
desc
8-
dest
96
doc2path
107
docname
118
docutils
12-
formatter
139
fromlist
1410
grp
15-
lineno
16-
linesep
17-
metavar
1811
nitpicky
1912
outdir
20-
parsers
21-
prog
2213
refid
2314
reftitle
2415
rst
2516
statemachine
2617
subparsers
27-
subtype
2818
testroot
29-
util

0 commit comments

Comments
 (0)