Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
108 lines (96 loc) · 3.09 KB
/
Copy pathpyproject.toml
File metadata and controls
108 lines (96 loc) · 3.09 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
[build-system]
requires = ["setuptools>=68", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "linux-system-observatory"
version = "1.0.0"
description = "A comprehensive, private, modern system monitor for Linux desktops."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
keywords = ["system-monitor", "linux", "psutil", "qt", "pyside6", "hardware"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: X11 Applications :: Qt",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Monitoring",
"Topic :: System :: Systems Administration",
]
dependencies = [
"PySide6>=6.6",
"psutil>=5.9",
"pyqtgraph>=0.13",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0",
"pytest-cov>=5.0",
"ruff>=0.6",
"mypy>=1.11",
]
[project.scripts]
observatory = "app.main:main"
[project.gui-scripts]
linux-system-observatory = "app.main:main"
[tool.setuptools.packages.find]
include = ["app*"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-q --strict-markers"
filterwarnings = ["error::DeprecationWarning:app.*"]
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["app", "tests", "tools"]
[tool.ruff.lint]
select = [
"E", "W", # pycodestyle
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"B", # bugbear
"A", # builtins shadowing
"C4", # comprehensions
"SIM", # simplify
"RUF", # ruff-specific
]
ignore = [
"D107", # __init__ docstring: the class docstring covers it
"D203", # incompatible with D211
"D213", # incompatible with D212
"N818", # error suffix on exceptions
# Properties are conventionally documented descriptively ("True when the
# driver is loaded"), not imperatively. Forcing "Return true when..." onto
# every predicate reads worse, and this codebase has many of them.
"D401",
# Package __init__ modules here are namespace markers with no API to
# document; the modules inside them carry the documentation.
"D104",
# Qt override methods (__bool__, paintEvent and friends) are documented by
# the framework; repeating that here would be noise.
"D105",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D100", "D103", "SLF001"]
"app/ui/*" = ["N802"] # Qt requires camelCase event handler overrides
# Dev tools must insert the project root on sys.path before importing the
# application, so their imports legitimately follow executable statements.
"tools/*" = ["E402"]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
ignore_missing_imports = true
check_untyped_defs = true
exclude = ["tests/"]