forked from p9ablo/mega.py
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
130 lines (117 loc) · 3.07 KB
/
Copy pathpyproject.toml
File metadata and controls
130 lines (117 loc) · 3.07 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
[project]
name = "async-mega.py"
authors = [{name = "NTFSvolume", email = "NTFSvolume@proton.me"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python"
]
dependencies = [
"aiohttp>=3.11.18",
"aiolimiter>=1.2.1",
"pycryptodome>=3.20.0"
]
description = "Python library for the Mega.nz and Transfer.it API"
keywords = [
"api",
"downloader",
"mega",
"mega.nz",
"transfer.it"
]
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = "README.md"
requires-python = ">=3.11"
version = "2.4.1"
[project.optional-dependencies]
cli = [
"cyclopts>=4.10.1",
"python-dotenv>=1.2.1"
]
[project.scripts]
async-mega-py = "mega.__main__:app.meta"
mega-py = "mega.__main__:app.meta"
[project.urls]
Homepage = "https://github.com/NTFSvolume/mega.py"
[tool.coverage.run]
omit = [
"tests/*"
]
[tool.pytest.ini_options]
addopts = "-s -v"
asyncio_default_fixture_loop_scope = "function"
asyncio_mode = "auto"
minversion = "8.3"
norecursedirs = [".git"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"COM8", # flake8-commas linter
"E", # pycodestyle errors
"F", # pyflakes
"FA102", # future annotations
"FURB188", # slice-to-remove-prefix-or-suffix
"I", # isort
"N", # PEP8 naming conventions
"PLR1716", # boolean chained comparison
"Q", # flake8-quotes
"RUF", # RUF specific fixes
"T20", # flake8-print
"TC", # flake8-type-checking
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W" # pycodestyle warnings
]
extend-safe-fixes = [
"TC" # move import from and to TYPE_CHECKING blocks
]
ignore = [
"COM812", # missing-trailing-comma
"E501", # suppress line-too-long, let formatter decide
"N806" # uppercase variables in functions
]
unfixable = [
"ERA" # do not autoremove commented out code
]
[tool.ruff.lint.per-file-ignores]
"**/{tests,docs}/*" = [
"E402", # imports not at the top of the file.
"T20" # flake8-print
]
"__init__.py" = ["E402"] # imports not at the top of the file.
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.tomlsort]
all = true
ignore_case = true
in_place = true
sort_first = ["name", "project", "select", "tool"]
spaces_before_inline_comment = 2
spaces_indent_inline_array = 4
[tool.uv.build-backend]
module-name = "mega"
[build-system]
build-backend = "uv_build"
requires = ["uv_build<=0.10.11"]
[dependency-groups]
dev = [
"prek>=0.4.0",
"pytest-asyncio>=0.25.0",
"pytest>=8.3.5",
"ruff==0.15.6"
]