-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
79 lines (70 loc) · 1.8 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
[build-system]
requires = ["maturin>=1.4.0"]
build-backend = "maturin"
[project]
name = "netifaces2"
description = "Portable network interface information"
version = "0.1.0"
requires-python = ">=3.7"
readme = "README.md"
license = { file = "LICENSE" }
dependencies = ['typing-extensions; python_version < "3.8"']
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Topic :: System :: Networking"
]
authors = [
{ name = "Samuel Yvon", email = "samuelyvon9@gmail.com" }
]
maintainers = [
{ name = "Samuel Yvon", email = "samuelyvon9@gmail.com" }
]
[project.urls]
Homepage = "https://github.com/SamuelYvon/netifaces-2"
Issues = "https://github.com/SamuelYvon/netifaces-2/issues"
[project.optional-dependencies]
dev = [
"mypy >= 0.991",
"black >= 23.1.0",
"ruff >= 0.0.240",
"pytest >= 7.1.1"
]
[tool.black]
target-version = ["py311", "py310", "py39", "py38", "py37"]
line-length = 120
[tool.maturin]
python-source = "python"
module-name = "netifaces"
bindings = "pyo3"
[tool.mypy]
python_version = "3.7"
exclude = ['venv/.*/*\.py$']
strict = true
[[tool.mypy.overrides]]
module = 'netifaces.netifaces'
ignore_missing_imports = true
[tool.ruff]
src = ["netifaces"]
target-version = "py37"
line-length = 120
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"W", # pycodestyle
"RUF", # ruff
"I", # isort
"PT", # flake8-pytest-style
]
ignore = [
"PT011" # pytest.Raises too broad
]
[tool.coverage.report]
omit = ["_test.py"]