-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
120 lines (101 loc) · 2.31 KB
/
pyproject.toml
File metadata and controls
120 lines (101 loc) · 2.31 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
[project]
name = "qt-niu"
authors = [{name = "Adam Tyson", email= "code@adamltyson.com"}]
description = "Reusable Qt elements"
readme = "README.md"
requires-python = ">=3.11.0"
dynamic = ["version"]
dependencies = ["qtpy", "superqt", "pandas"]
license = {text = "MIT"}
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
]
[project.urls]
"Homepage" = "https://github.com/neuroinformatics-unit/qt-niu"
"Bug Tracker" = "https://github.com/neuroinformatics-unit/qt-niu/issues"
"Documentation" = "https://github.com/neuroinformatics-unit/qt-niu"
"Source Code" = "https://github.com/neuroinformatics-unit/qt-niu"
"User Support" = "https://github.com/neuroinformatics-unit/qt-niu/issues"
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-qt",
"coverage",
"tox",
"mypy",
"pre-commit",
"ruff",
"setuptools_scm",
"pyqt5"
]
[build-system]
requires = [
"setuptools>=45",
"wheel",
"setuptools_scm[toml]>=6.2",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["qt_niu*"]
exclude = ["tests*"]
[tool.pytest.ini_options]
addopts = "--cov=qt_niu"
filterwarnings = [
"error",
]
[tool.setuptools_scm]
[tool.check-manifest]
ignore = [
".yaml",
"tox.ini",
"tests/",
]
[tool.ruff]
line-length = 79
exclude = ["__init__.py", "build", ".eggs"]
lint.select = [
"E", # pycodestyle errors
"F", # Pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8 bugbear
"C90", # McCabe complexity
]
fix = true
[tool.ruff.format]
docstring-code-format = true # Also format code in docstrings (e.g. examples)
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{311,312,313}
isolated_build = True
[gh-actions]
python =
3.11: py311
3.12: py312
3.13: py313
[testenv]
extras =
dev
commands =
pytest -v --color=yes --cov=qt_niu --cov-report=xml
passenv =
CI
GITHUB_ACTIONS
DISPLAY
XAUTHORITY
PYVISTA_OFF_SCREEN
"""
[tool.codespell]
skip = '.git'
check-hidden = true