Skip to content

Commit 6bcbe12

Browse files
committed
chore: merged tox.ini into pyproject.toml
1 parent fc83dd6 commit 6bcbe12

File tree

12 files changed

+116
-75
lines changed

12 files changed

+116
-75
lines changed

pyproject.toml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ enable = true
2525
[tool.poetry-dynamic-versioning.substitution]
2626
files = ["src/igraph_ctypes/_version.py"]
2727

28+
[tool.pytest.ini_options]
29+
addopts = "--cov-config=.coveragerc"
30+
2831
[tool.ruff]
2932
ignore = ["F405"]
3033
line-length = 88
@@ -35,6 +38,24 @@ select = ["B", "C", "E", "F", "W"]
3538
"src/igraph_ctypes/_internal/functions.py" = ["E501"]
3639
"src/igraph_ctypes/_internal/lib.py" = ["E501"]
3740

41+
[tool.tox]
42+
legacy_tox_ini = """
43+
[tox]
44+
min_version = 4.0
45+
env_list = py311, py310
46+
47+
[gh-actions]
48+
python =
49+
3.10: py310
50+
3.11: py311
51+
52+
[testenv]
53+
deps =
54+
pytest
55+
pytest-cov
56+
commands = pytest tests
57+
"""
58+
3859
[build-system]
3960
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
4061
build-backend = "poetry_dynamic_versioning.backend"

src/codegen/internal_lib.py.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# fmt: off
88

9-
from ctypes import cdll, c_bool, c_char_p, c_double, c_int, c_void_p, POINTER
9+
from ctypes import cdll, c_char_p, c_double, c_int, c_void_p, POINTER
1010
from ctypes.util import find_library
1111

1212
from .attributes import (

0 commit comments

Comments
 (0)