-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathpyproject.toml
More file actions
118 lines (102 loc) · 4.04 KB
/
pyproject.toml
File metadata and controls
118 lines (102 loc) · 4.04 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
# guidata setup configuration file
# Important note:
# Requirements are parsed by utils\genreqs.py to generate documentation
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "guidata"
authors = [{ name = "Codra", email = "p.raybaut@codra.fr" }]
description = "Automatic GUI generation for easy dataset editing and display"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows :: Windows 7",
"Operating System :: Microsoft :: Windows :: Windows 8",
"Operating System :: Microsoft :: Windows :: Windows 10",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: User Interfaces",
"Topic :: Software Development :: Widget Sets",
"Topic :: Utilities",
]
requires-python = ">=3.9, <4"
dependencies = ["h5py >= 3.6", "NumPy >= 1.22", "QtPy >= 1.9", "requests", "tomli; python_version < '3.11'"]
dynamic = ["version"]
[project.gui-scripts]
guidata-tests = "guidata.tests:run"
giconbrowser = "guidata.widgets.iconbrowser:main"
[project.scripts]
gtrans = "guidata.utils.translations:main"
greqs = "guidata.utils.genreqs:main"
gbuild = "guidata.utils.securebuild:main"
gclean = "guidata.utils.cleanup:main"
[project.optional-dependencies]
qt = ["PyQt5 > 5.15.5"]
dev = ["build", "babel", "Coverage", "pylint", "ruff", "pre-commit"]
doc = [
"PyQt5 > 5.15.5",
"pillow",
"pandas",
"sphinx",
"myst_parser",
"sphinx-copybutton",
"sphinx_qt_documentation",
"python-docs-theme",
]
test = ["pytest", "pytest-xvfb"]
[project.urls]
Homepage = "https://github.com/PlotPyStack/guidata/"
Documentation = "https://guidata.readthedocs.io/en/latest/"
[tool.setuptools.packages.find]
include = ["guidata*"]
[tool.setuptools.package-data]
"*" = ["*.png", "*.svg", "*.mo", "*.cfg", "*.toml"]
[tool.setuptools.dynamic]
version = { attr = "guidata.__version__" }
[tool.pytest.ini_options]
addopts = "guidata --import-mode=importlib"
# addopts = "guidata --import-mode=importlib --show-windows" # Disable offscreen mode
[tool.ruff]
exclude = [".git", ".vscode", "build", "dist", "guidata/external","venv*",".venv*"]
line-length = 88 # Same as Black.
indent-width = 4 # Same as Black.
target-version = "py39" # Assume Python 3.9.
[tool.ruff.lint]
# all rules can be found here: https://beta.ruff.rs/docs/rules/
select = [
"D202", # No blank lines allowed after function docstring.
"D403", # First word of docstring should be properly capitalized.
"E", # Pycodestyle error
"F", # Pyflakes
"I", # Isort
"NPY201", # Numpy-specific checks
"RUF022", # Unsorted __all__
"W" # Pycodestyle warning
]
ignore = [
"E203", # space before : (needed for how black formats slicing)
]
[tool.ruff.format]
quote-style = "double" # Like Black, use double quotes for strings.
indent-style = "space" # Like Black, indent with spaces, rather than tabs.
skip-magic-trailing-comma = false # Like Black, respect magic trailing commas.
line-ending = "auto" # Like Black, automatically detect the appropriate line ending.
[tool.ruff.lint.per-file-ignores]
"doc/*" = ["E402"]
[tool.ruff.lint.pydocstyle]
convention = "google"