Skip to content

Commit be35749

Browse files
setup hatch test envs
1 parent e967384 commit be35749

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

hatch.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
[envs.test]
2+
extras = ["test", "dev"]
3+
4+
[envs.test.scripts]
5+
all = "pytest {args}"
6+
7+
[[env.test.matrix]]
8+
python = ["3.8", "3.9", "3.10", "3.11"]
9+
10+
111
[envs.docs]
212
python = "3.11"
313
extras = ["docs"]

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ max-complexity = 10
77
max-line-length = 88
88
ignore=E203,W503
99

10-
1110
[testenv]
1211
usedevelop=True
1312
deps=
@@ -16,7 +15,7 @@ deps=
1615
virtualenv>20
1716
rich
1817
commands=
19-
pytest []
18+
pytest {posargs}
2019

2120

2221

0 commit comments

Comments
 (0)