-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
87 lines (76 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
87 lines (76 loc) · 2.21 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
[project]
name = "pyobs-gui"
version = "2.0.0.dev13"
description = "A remote GUI for pyobs"
authors = [{ name = "Tim-Oliver Husser", email = "thusser@uni-goettingen.de" }]
requires-python = ">=3.11,<3.14"
license = "MIT"
dependencies = [
"colour>=0.1.5,<0.2",
"matplotlib>=3.10.1,<4",
"qasync>=0.27.1,<0.29",
"sunpy[all]>=7.0.1",
"QtAwesome>=1.4.0,<2",
"qfitswidget>=0.13.1",
"pyobs-core>=2.0.0.dev50,<3",
"pyside6>=6.10.1",
"astroplan>=0.10.1",
"astropy>=7.0.1,<8",
"keyring>=25.7.0,<26",
"secretstorage>=3.5.0,<4",
]
[project.scripts]
pyobs-gui = "pyobs_gui.__main__:main"
[dependency-groups]
dev = [
"black>=25.1.0,<27",
"ruff>=0.11.0",
"matplotlib-stubs>=0.1.0",
"pyrefly>=0.17.0",
"pandas-stubs>=2.3.0.250703",
"pre-commit>=4.2.0,<5",
"pyside6-stubs>=6.7.3.0",
"sphinx-rtd-theme>=3.0.2,<4",
"Sphinx>=8.2.3,<9",
"types-defusedxml>=0.7.0.20250708",
"types-python-dateutil>=2.9.0.20250708",
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-mock>=3.15.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 120
target-version = ['py311']
[tool.ruff]
line-length = 120
exclude = [".git", ".venv", "__pycache__", "docs", "build", "dist", "pyobs_gui/qt/"]
[tool.ruff.lint]
select = ["B", "C90", "E", "F", "W", "TCH"]
ignore = ["E203", "E266", "E501", "F403", "E722"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
# The astropy/Nuitka patch must run before any other pyobs_gui import (see its own docstring).
"pyobs_gui/__init__.py" = ["E402"]
# _build_generic_grammar_namespace is a verbatim transcription of astropy's own PLY grammar,
# deliberately mirroring astropy's structure for easy diffing -- splitting it up to satisfy
# mccabe would work against that goal.
"pyobs_gui/_nuitka_astropy_patch.py" = ["C901"]
[tool.ruff.lint.mccabe]
max-complexity = 30
[tool.pytest.ini_options]
asyncio_mode = "strict"
[tool.pyrefly]
project-includes = ["pyobs_gui", "tests"]
project-excludes = ["**/docs/", "**/qt/"]
python-version = "3.11.0"
preset = "legacy"
ignore-missing-imports = [
"astropy.*",
"astroplan.*",
"qasync.*",
]
[tool.pyrefly.errors]
redundant-cast = "warn"