-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (108 loc) · 2.76 KB
/
pyproject.toml
File metadata and controls
133 lines (108 loc) · 2.76 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
[project]
name = "megatui"
version = "0.0.1"
description = "Terminal user interface application for MEGA"
license = { text = "GPLv3" }
authors = [{ name = "yaaama", email = "sau@yaaama.xyz" }]
readme = { file = "README.md", content-type = "text/markdown" }
keywords = [
"filemanager",
"cloud",
"MEGA",
"megacmd",
"python",
"textual",
"tui",
]
classifiers = [
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
"Development Status :: 3 - Alpha",
"Intended Audience :: End Users/Desktop",
"Topic :: Communications :: File Sharing",
"Topic :: Desktop Environment :: File Managers",
"Topic :: Internet",
"Topic :: Utilities",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]
requires-python = ">=3.13"
dependencies = ["textual>=3.5.0"]
[project.scripts]
megatui = "megatui.app:run_app"
[dependency-groups]
dev = [
"ruff>=0.12.1",
"textual-dev>=1.7.0, < 2.0.0",
"pytest>=8.3.5",
"pytest-asyncio>=1.3.0",
"pyinstrument>=5.1.1",
"prek>=0.3.0",
]
# Hatch
[tool.hatch.build.targets.wheel]
packages = ["src/megatui"]
[tool.hatch.build]
include = ["src/megatui"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Pytest
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --color=yes" # Example: report all, quiet, with color
# Specify where your tests are located
testpaths = [
"tests",
]
python_files = ["test_*.py", "*_test.py"]
# Enable Live Logging
log_cli = true
log_cli_level = "DEBUG" # Options: DEBUG, INFO, WARNING, ERROR
log_cli_format = "%(asctime)s (%(filename)s:%(lineno)s) [%(levelname)s] | %(message)s "
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
# For pytest-asyncio
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "module"
# You can add markers, filterwarnings, etc. here
markers = [
# "slow: marks tests as slow to run",
# "integration: marks integration tests",
"serial", # used to indicate tests must not run in parallel
]
[tool.pyright]
exclude = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
]
# ignore = ["src/oldstuff"]
# stubPath = "src/stubs"
defineConstant = { DEBUG = true }
reportMissingImports = "error"
reportMissingTypeStubs = false
reportUnusedCallResult = false
reportUnannotatedClassAttribute = false
reportUnreachable = false
reportExplicitAny = false
reportAny = false
reportUnnecessaryTypeIgnoreComment = false
reportImportCycles = false
pythonVersion = "3.13"
pythonPlatform = "Linux"
[tool.pyrefly]
project_excludes = [
"**/node_modules",
"**/__pycache__",
"src/experimental",
"src/typestubs",
]
python_platform = "linux"
python_version = "3.13.0"
[tool.pyrefly.errors]
import-error = true
# Local Variables:
# eval: (jinx-mode 0)
# End: