Skip to content

Commit

Permalink
Bump deps and tools
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Feb 5, 2023
1 parent b7fec1e commit 85bf3d5
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ repos:
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 23.1.0
hooks:
- id: black
args: [--safe]
- repo: https://github.com/asottile/blacken-docs
rev: 1.13.0
hooks:
- id: blacken-docs
additional_dependencies: [black==22.12]
additional_dependencies: [black==23.1]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
Expand All @@ -52,16 +52,16 @@ repos:
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear==22.12.6
- flake8-bugbear==23.1.20
- flake8-comprehensions==3.10.1
- flake8-pytest-style==1.6
- flake8-spellcheck==0.28
- flake8-unused-arguments==0.0.12
- flake8-unused-arguments==0.0.13
- flake8-noqa==1.3
- pep8-naming==0.13.3
- flake8-pyproject==1.2.2
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.0-alpha.4"
rev: "v2.7.1"
hooks:
- id: prettier
additional_dependencies:
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ maintainers = [
]
requires-python = ">=3.7"
dependencies = [
"cachetools>=5.2.1",
"cachetools>=5.3",
"chardet>=5.1",
"colorama>=0.4.6",
"packaging>=23",
Expand All @@ -40,23 +40,23 @@ optional-dependencies.docs = [
"furo>=2022.12.7",
"sphinx>=6.1.3",
"sphinx-argparse-cli>=1.11",
"sphinx-autodoc-typehints>=1.20.1",
"sphinx-autodoc-typehints>=1.23.4",
"sphinx-copybutton>=0.5.1",
"sphinx-inline-tabs>=2022.1.2b11",
"sphinxcontrib-towncrier>=0.2.1a0",
"towncrier>=22.12",
]
optional-dependencies.testing = [
"build[virtualenv]>=0.9",
"build[virtualenv]>=0.10",
"covdefaults>=2.2.2",
"devpi-process>=0.3",
"diff-cover>=7.3",
"diff-cover>=7.4",
"distlib>=0.3.6",
"flaky>=3.7",
"hatch-vcs>=0.3",
"hatchling>=1.12.2",
"psutil>=5.9.4",
"pytest>=7.2",
"pytest>=7.2.1",
"pytest-cov>=4",
"pytest-mock>=3.10",
"pytest-xdist>=3.1",
Expand Down
1 change: 0 additions & 1 deletion src/tox/config/cli/ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self) -> None:
if self.has_config_file:
self.config_file = self.config_file.absolute()
try:

parser = ConfigParser(interpolation=None)
with self.config_file.open() as file_handler:
parser.read_file(file_handler)
Expand Down
8 changes: 4 additions & 4 deletions src/tox/config/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@ def add_command(
self.handlers[cmd] = content
for alias in aliases:
self.handlers[alias] = content
for (args, of_type, kwargs) in self._arguments:
for args, of_type, kwargs in self._arguments:
sub_parser.add_argument(*args, of_type=of_type, **kwargs)
for (args, kwargs, excl) in self._groups:
for args, kwargs, excl in self._groups:
group = sub_parser.add_argument_group(*args, **kwargs)
for (e_kwargs, arguments) in excl:
for e_kwargs, arguments in excl:
excl_group = group.add_mutually_exclusive_group(**e_kwargs)
for (a_args, _, a_kwargs) in arguments:
for a_args, _, a_kwargs in arguments:
excl_group.add_argument(*a_args, **a_kwargs)
return sub_parser

Expand Down
1 change: 0 additions & 1 deletion src/tox/session/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from .env_select import EnvSelector

if TYPE_CHECKING:

from tox.config.cli.parse import Options
from tox.config.cli.parser import ToxParser

Expand Down
1 change: 0 additions & 1 deletion tests/config/test_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ def test_config_dynamic_not_equal(conf_builder: ConfBuilder) -> None:

def test_define_custom_set(tox_project: ToxProjectCreator) -> None:
class MagicConfigSet(ConfigSet):

SECTION = Section(None, "magic")

def register_config(self) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ def test_pyproject_deps_static_with_dynamic(
dynamic: str,
deps: list[str],
) -> None:

monkeypatch.setenv("METADATA_EXTRA", metadata)
toml = f"{(demo_pkg_inline / 'pyproject.toml').read_text()}[project]\ndynamic={dynamic}"
ini = "[testenv]\nextras=alpha\n[testenv:.pkg]\npass_env=METADATA_EXTRA"
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ commands =
description = run type check on code base
deps =
mypy==0.991
types-cachetools>=5.2.1
types-cachetools>=5.3
types-chardet>=5.0.4.1
commands =
mypy src/tox
Expand All @@ -70,7 +70,7 @@ commands =
description = check that the long description is valid
skip_install = true
deps =
build[virtualenv]>=0.9
build[virtualenv]>=0.10
check-wheel-contents>=0.4
twine>=4.0.2
commands =
Expand Down

0 comments on commit 85bf3d5

Please sign in to comment.