Skip to content

Commit 995c93e

Browse files
authored
Bump deps and tools (#222)
1 parent abcc19f commit 995c93e

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,21 @@ repos:
2626
hooks:
2727
- id: isort
2828
- repo: https://github.com/psf/black
29-
rev: 23.1.0
29+
rev: 23.3.0
3030
hooks:
3131
- id: black
3232
args: [--safe]
3333
- repo: https://github.com/asottile/blacken-docs
3434
rev: 1.13.0
3535
hooks:
3636
- id: blacken-docs
37-
additional_dependencies: [black==23.1]
37+
additional_dependencies: [black==23.3]
3838
- repo: https://github.com/pre-commit/pygrep-hooks
3939
rev: v1.10.0
4040
hooks:
4141
- id: rst-backticks
4242
- repo: https://github.com/tox-dev/tox-ini-fmt
43-
rev: "0.6.1"
43+
rev: "1.0.0"
4444
hooks:
4545
- id: tox-ini-fmt
4646
args: ["-p", "fix"]
@@ -53,7 +53,7 @@ repos:
5353
hooks:
5454
- id: flake8
5555
additional_dependencies:
56-
- flake8-bugbear==23.3.12
56+
- flake8-bugbear==23.3.23
5757
- flake8-comprehensions==3.11.1
5858
- flake8-pytest-style==1.7.2
5959
- flake8-spellcheck==0.28

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dynamic = [
3535
"version",
3636
]
3737
optional-dependencies.docs = [
38-
"furo>=2022.12.7",
38+
"furo>=2023.3.27",
3939
"sphinx>=6.1.3",
4040
"sphinx-autodoc-typehints!=1.23.4,>=1.22",
4141
]

tox.ini

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
minversion = 4
23
envlist =
34
fix
45
py311
@@ -13,73 +14,72 @@ envlist =
1314
readme
1415
isolated_build = true
1516
skip_missing_interpreters = true
16-
minversion = 4
1717

1818
[testenv]
1919
description = run tests with {basepython}
20+
package = wheel
21+
wheel_build_env = .pkg
22+
extras =
23+
testing
2024
passenv =
2125
PYTEST_*
2226
setenv =
2327
COVERAGE_FILE = {toxworkdir}{/}.coverage.{envname}
24-
extras =
25-
testing
2628
commands =
2729
pytest {tty:--color=yes} {posargs: \
2830
--junitxml {toxworkdir}{/}junit.{envname}.xml --cov {envsitepackagesdir}{/}filelock --cov {toxinidir}{/}tests \
2931
--cov-config=pyproject.toml --no-cov-on-fail --cov-report term-missing:skip-covered --cov-context=test \
3032
--cov-report html:{envtmpdir}{/}htmlcov --cov-report xml:{toxworkdir}{/}coverage.{envname}.xml \
3133
tests}
3234
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}{/}coverage.{envname}.xml
33-
package = wheel
34-
wheel_build_env = .pkg
3535

3636
[testenv:fix]
3737
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
38-
passenv =
39-
*
4038
basepython = python3.10
4139
skip_install = true
4240
deps =
43-
pre-commit>=3.2
41+
pre-commit>=3.2.1
42+
passenv =
43+
*
4444
commands =
4545
pre-commit run --all-files --show-diff-on-failure
4646
python -c 'import pathlib; print("hint: run \{\} install to add checks as pre-commit hook".format(pathlib.Path(r"{envdir}") / "bin" / "pre-commit"))'
4747

4848
[testenv:type]
4949
description = run type check on code base
50-
setenv =
51-
{tty:MYPY_FORCE_COLOR = 1}
5250
deps =
5351
mypy==1.1.1
52+
setenv =
53+
{tty:MYPY_FORCE_COLOR = 1}
5454
commands =
5555
mypy --strict src/filelock
5656
mypy --strict tests
5757

5858
[testenv:coverage]
5959
description = combine coverage files and generate diff (against DIFF_AGAINST defaulting to origin/main)
60-
passenv =
61-
DIFF_AGAINST
62-
setenv =
63-
COVERAGE_FILE = {toxworkdir}/.coverage
6460
skip_install = true
6561
deps =
6662
covdefaults>=2.3
6763
coverage[toml]>=7.2.2
6864
diff-cover>=7.5
6965
extras =
7066
parallel_show_output = true
67+
passenv =
68+
DIFF_AGAINST
69+
setenv =
70+
COVERAGE_FILE = {toxworkdir}/.coverage
7171
commands =
7272
coverage combine
7373
coverage report --skip-covered --show-missing
7474
coverage xml -o {toxworkdir}/coverage.xml
7575
coverage html -d {toxworkdir}/htmlcov
7676
diff-cover --compare-branch {env:DIFF_AGAINST:origin/main} {toxworkdir}/coverage.xml
7777
depends =
78-
py311
7978
py310
80-
py39
81-
py38
79+
py311
8280
py37
81+
py38
82+
py39
8383
pypy3
8484

8585
[testenv:docs]

0 commit comments

Comments
 (0)