Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (121 loc) · 3.53 KB
/
Copy pathpyproject.toml
File metadata and controls
137 lines (121 loc) · 3.53 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "axon-os"
version = "1.2.1"
description = "Axon OS - A futuristic, AI-powered Linux desktop environment"
readme = "README.md"
license = {text = "MIT"}
authors = [
{name = "Project DEV", email = "projectdev.hq@gmail.com"}
]
keywords = ["linux", "desktop", "ai", "gnome", "gtk"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: X11 Applications :: GTK",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Desktop Environment",
]
requires-python = ">=3.10"
dependencies = [
"dbus-python>=1.3.2",
"PyGObject>=3.48.2",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"ruff>=0.1.0",
"mypy>=1.5.0",
"PyGObject-stubs>=2.10",
"black>=23.9.0",
"pre-commit>=3.3.0",
]
[project.urls]
Homepage = "https://github.com/ProjectDEV-git/Axon-OS"
Repository = "https://github.com/ProjectDEV-git/Axon-OS"
Documentation = "https://github.com/ProjectDEV-git/Axon-OS/blob/main/docs/"
Issues = "https://github.com/ProjectDEV-git/Axon-OS/issues"
[tool.setuptools]
packages = ["apps", "services", "installer"]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["E", "W", "F", "I", "UP", "B", "C4", "RUF", "D", "N", "PT", "SIM", "LOG"]
ignore = ["E501", "E402", "D100", "D104"]
[tool.ruff.lint.isort]
known-first-party = ["apps", "services", "installer"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]
exclude = '''
/(
\.git
| \.venv
| build
| dist
| \.eggs
| .*\.egg-info
)/
'''
[tool.mypy]
python_version = "3.10"
warn_return_any = true
warn_unused_configs = true
disallow_incomplete_defs = true
disallow_untyped_defs = false
check_untyped_defs = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
ignore_missing_imports = true
exclude = ["tests/", "build/", "dist/", "apps/axon-ai-panel/", "apps/axon-confirm/", "apps/axon-files/", "apps/axon-game-center/", "apps/axon-installer/", "apps/axon-settings/", "apps/axon-shortcuts/", "apps/axon-terminal/", "apps/axon-welcome/", "apps/intent-bar/"]
[[tool.mypy.overrides]]
module = ["gi.*", "dbus.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = "--verbose --strict-markers --timeout=30"
markers = [
"slow: marks tests as slow",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
[tool.bandit]
exclude_dirs = ["tests", "build", "dist", ".venv"]
skips = ["B101"] # allow assert in non-test code (used for D-Bus validation)
[tool.coverage.run]
source = ["apps", "services"]
omit = [
"tests/*",
"build/*",
"dist/*",
".venv/*",
"apps/*/ui/*",
"apps/*/main.py",
"apps/axon-terminal/terminal_widget.py",
"apps/axon-terminal/ai_helper.py",
"apps/axon-files/ui.py",
"apps/axon-files/file_indexer.py",
"apps/intent-bar/ui/*",
"apps/intent-bar/ollama_client.py",
"apps/intent-bar/spaces_manager.py",
"apps/intent-bar/main.py",
]
[tool.coverage.report]
fail_under = 40
show_missing = true