Skip to content

Commit c01e98b

Browse files
authored
start migrating to pyproject.toml (#298)
1 parent 1714645 commit c01e98b

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

tox.ini renamed to pyproject.toml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
[build-system]
2+
requires = [ "setuptools >= 35.0.2", "wheel >= 0.29.0"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.pytest.ini_options]
6+
addopts = " --ignore django_prometheus/tests/end2end"
7+
8+
[tool.isort]
9+
multi_line_output = 3
10+
line_length = 88
11+
force_grid_wrap = 0
12+
include_trailing_comma = true
13+
14+
15+
[tool.tox]
16+
legacy_tox_ini = """
117
[tox]
218
envlist = {py36,py37,py38,py39}-django{220,300,310,320}-{end2end,unittests},py38-lint
319
@@ -42,11 +58,4 @@ commands =
4258
flake8 django_prometheus
4359
isort --check-only django_prometheus/
4460
45-
[flake8]
46-
ignore = E501,W503
47-
48-
[isort]
49-
multi_line_output=3
50-
line_length=88
51-
force_grid_wrap=0
52-
include_trailing_comma=True
61+
"""

setup.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[aliases]
22
test=pytest
33

4-
[tool:pytest]
5-
addopts = --ignore django_prometheus/tests/end2end
6-
74
[pycodestyle]
85
max-line-length = 110
6+
7+
[flake8]
8+
ignore = E501,W503

0 commit comments

Comments
 (0)