Skip to content

Commit a907627

Browse files
committed
Seperate dev deps into lint and test
This is to avoid issue with pypy37 where black needs the typed-ast module which won't build. We don't actually use black in the pypy37 test environment so lets split things up
1 parent e72324e commit a907627

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ classifiers = [
4141
GitHub = "https://github.com/nhairs/python-json-logger"
4242

4343
[project.optional-dependencies]
44-
dev = [
45-
## Formatting / Linting
44+
lint = [
4645
"validate-pyproject[all]",
4746
"black",
4847
"pylint",
4948
"mypy",
50-
## Testing
49+
]
50+
51+
test = [
5152
"pytest",
5253
]
5354

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ python =
1717

1818
[testenv]
1919
description = run unit tests
20-
extras = dev
20+
extras = test
2121
commands =
2222
pytest tests
2323
# python -m unittest discover
2424

2525
[testenv:format]
2626
description = run formatters
27-
extras = dev
27+
extras = lint
2828
commands =
2929
black src tests
3030

3131
[testenv:lint]
3232
description = run linters
33-
extras = dev
33+
extras = lint
3434
commands =
3535
validate-pyproject pyproject.toml
3636
black --check --diff src tests

0 commit comments

Comments
 (0)