Skip to content

Commit d76a110

Browse files
authored
Fix type checker (#50)
1 parent 44432be commit d76a110

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
py:
21-
- "3.12.0-beta.2"
21+
- "3.12.0-rc.1"
2222
- "3.11"
2323
- "3.10"
2424
- "3.9"
2525
- "3.8"
26-
- "3.7"
2726
os:
2827
- ubuntu-latest
2928

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ repos:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: "v0.0.285"
8+
rev: "v0.0.286"
99
hooks:
1010
- id: ruff
1111
args: [--fix, --exit-non-zero-on-fix]
@@ -19,10 +19,10 @@ repos:
1919
- id: tox-ini-fmt
2020
args: ["-p", "fix"]
2121
- repo: https://github.com/tox-dev/pyproject-fmt
22-
rev: "0.13.1"
22+
rev: "1.1.0"
2323
hooks:
2424
- id: pyproject-fmt
25-
additional_dependencies: ["tox>=4.6"]
25+
additional_dependencies: ["tox>=4.10"]
2626
- repo: https://github.com/pre-commit/mirrors-prettier
2727
rev: "v3.0.2"
2828
hooks:

pyproject.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
build-backend = "hatchling.build"
33
requires = [
44
"hatch-vcs>=0.3",
5-
"hatchling>=1.17.1",
5+
"hatchling>=1.18",
66
]
77

88
[project]
@@ -15,15 +15,14 @@ keywords = [
1515
]
1616
license.file = "LICENSE"
1717
maintainers = [{ name = "Bernát Gábor", email = "gaborjbernat@gmail.com" }]
18-
requires-python = ">=3.7"
18+
requires-python = ">=3.8"
1919
classifiers = [
2020
"Development Status :: 5 - Production/Stable",
2121
"Intended Audience :: Developers",
2222
"License :: OSI Approved :: MIT License",
2323
"Operating System :: OS Independent",
2424
"Programming Language :: Python",
2525
"Programming Language :: Python :: 3 :: Only",
26-
"Programming Language :: Python :: 3.7",
2726
"Programming Language :: Python :: 3.8",
2827
"Programming Language :: Python :: 3.9",
2928
"Programming Language :: Python :: 3.10",
@@ -36,11 +35,11 @@ dynamic = [
3635
"version",
3736
]
3837
dependencies = [
39-
"pytest>=7.3.1",
38+
"pytest>=7.4",
4039
]
4140
optional-dependencies.test = [
42-
"coverage>=7.2.7",
43-
"pytest-mock>=3.10",
41+
"coverage>=7.3",
42+
"pytest-mock>=3.11.1",
4443
]
4544
urls.Homepage = "https://github.com/pytest-dev/pytest-env"
4645
urls.Source = "https://github.com/pytest-dev/pytest-env"
@@ -58,7 +57,7 @@ line-length = 120
5857
[tool.ruff]
5958
select = ["ALL"]
6059
line-length = 120
61-
target-version = "py37"
60+
target-version = "py38"
6261
isort = {known-first-party = ["pytest_env"], required-imports = ["from __future__ import annotations"]}
6362
ignore = [
6463
"ANN101", # no type annotation for self

src/pytest_env/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def pytest_addoption(parser: pytest.Parser) -> None:
1212
parser.addini("env", type="linelist", help=help_msg, default=[])
1313

1414

15-
@pytest.hookimpl(tryfirst=True) # type: ignore[misc]
15+
@pytest.hookimpl(tryfirst=True)
1616
def pytest_load_initial_conftests(
1717
args: list[str], # noqa: ARG001
1818
early_config: pytest.Config,

tox.ini

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ env_list =
88
py310
99
py39
1010
py38
11-
py37
1211
type
1312
readme
1413
skip_missing_interpreters = true
@@ -44,7 +43,7 @@ commands =
4443
[testenv:type]
4544
description = run type check on code base
4645
deps =
47-
mypy==1.3
46+
mypy==1.5.1
4847
set_env =
4948
{tty:MYPY_FORCE_COLOR = 1}
5049
commands =
@@ -70,9 +69,3 @@ extras =
7069
commands =
7170
python -m pip list --format=columns
7271
python -c 'import sys; print(sys.executable)'
73-
74-
[flake8]
75-
max-complexity = 22
76-
max-line-length = 120
77-
noqa-require-code = true
78-
dictionaries = en_US,python,technical,django

0 commit comments

Comments
 (0)