Skip to content

Commit 9a14af1

Browse files
committed
Force Python version (3.12) for local linting
1) Force Python version (3.12) for local linting (GH CI already enforces Python >=3.10) This fixes "sourcefinder/config.py:96: error: invalid syntax [syntax] match get_origin(type_): ^ " locally, i.e. on my machine, which will pick Python 3.8.13. 2) PEP 8 compliance.
1 parent 0cbfaed commit 9a14af1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ extra-dependencies = [
7171

7272
[tool.hatch.envs.lint]
7373
detached = true
74+
python = "3.12"
7475
dependencies = [
7576
"black",
7677
"flake8",
@@ -80,7 +81,8 @@ dependencies = [
8081

8182
[tool.pytest.ini_options]
8283
testpaths = ["test"]
83-
addopts = ["--import-mode=importlib", "--cov=sourcefinder", "-q", "-ra", "-n=logical", "--dist=worksteal", "--cov-config=test/.coveragerc"]
84+
addopts = ["--import-mode=importlib", "--cov=sourcefinder", "-q", "-ra",
85+
"-n=logical", "--dist=worksteal", "--cov-config=test/.coveragerc"]
8486

8587
[tool.black]
8688
include = '\.pyi?$'

0 commit comments

Comments
 (0)