diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd3d78c..52fe8aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.4.0 hooks: - id: check-ast - id: check-builtin-literals @@ -12,42 +12,42 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade - rev: v3.0.0 + rev: v3.3.1 hooks: - id: pyupgrade args: [ "--py37-plus" ] - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 5.12.0 hooks: - id: isort - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.1.0 hooks: - id: black args: [ --safe ] - repo: https://github.com/asottile/blacken-docs - rev: v1.12.1 + rev: 1.13.0 hooks: - id: blacken-docs - additional_dependencies: [ black==22.10 ] + additional_dependencies: [ black==23.1 ] - repo: https://github.com/pre-commit/pygrep-hooks - rev: v1.9.0 + rev: v1.10.0 hooks: - id: rst-backticks - repo: https://github.com/tox-dev/tox-ini-fmt - rev: "0.5.2" + rev: "0.6.1" hooks: - id: tox-ini-fmt args: [ "-p", "fix" ] - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 6.0.0 hooks: - id: flake8 additional_dependencies: - - flake8-bugbear==22.10.27 + - 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-noqa==1.2.9 - - pep8-naming==0.13.2 + - flake8-unused-arguments==0.0.13 + - flake8-noqa==1.3 + - pep8-naming==0.13.3 diff --git a/pyproject.toml b/pyproject.toml index 1b7be27..3b82081 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [build-system] build-backend = "hatchling.build" -requires = ["hatchling>=1.11.1", "hatch-vcs>=0.2"] +requires = ["hatchling>=1.12.2", "hatch-vcs>=0.3"] [project] name = "pytest-env" @@ -12,8 +12,8 @@ urls.Homepage = "https://github.com/pytest-dev/pytest-env" urls.Source = "https://github.com/pytest-dev/pytest-env" urls.Tracker = "https://github.com/pytest-dev/pytest-env/issues" requires-python = ">=3.7" -dependencies = ["pytest>=7.2"] -optional-dependencies.test = ["coverage>=6.5", "pytest-mock>=3.10"] +dependencies = ["pytest>=7.2.1"] +optional-dependencies.test = ["coverage>=7.1", "pytest-mock>=3.10"] keywords = ["pytest", "env"] classifiers = [ "Development Status :: 5 - Production/Stable", diff --git a/src/pytest_env/plugin.py b/src/pytest_env/plugin.py index 5065057..4f4e3ca 100644 --- a/src/pytest_env/plugin.py +++ b/src/pytest_env/plugin.py @@ -18,7 +18,6 @@ def pytest_load_initial_conftests( ) -> None: """Load environment variables from configuration files.""" for line in early_config.getini("env"): - # INI lines e.g. D:R:NAME=VAL has two flags (R and D), NAME key, and VAL value parts = line.partition("=") ini_key_parts = parts[0].split(":") diff --git a/tox.ini b/tox.ini index 7e7cfc2..189cede 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,7 @@ passenv = PROGRAMDATA skip_install = true deps = - pre-commit>=2.20 + pre-commit>=3.0.4 commands = pre-commit run --all-files --show-diff-on-failure @@ -45,7 +45,7 @@ description = run type check on code base setenv = {tty:MYPY_FORCE_COLOR = 1} deps = - mypy==0.982 + mypy==0.991 commands = mypy --strict src mypy --strict tests @@ -54,8 +54,8 @@ commands = description = check that the long description is valid skip_install = true deps = - build[virtualenv]>=0.9 - twine>=4.0.1 + build[virtualenv]>=0.10 + twine>=4.0.2 changedir = {toxinidir} commands = python -m build -o {envtmpdir} .