-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (121 loc) · 3.37 KB
/
Copy pathpyproject.toml
File metadata and controls
134 lines (121 loc) · 3.37 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "instagram-dl"
version = "0.1.8"
description = "Async Instagram downloader CLI — profiles, posts, reels, stories, highlights, hashtags, comments. Pluggable backends (HikerAPI / aiograpi)."
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.11"
authors = [{ name = "subzeroid" }]
keywords = [
"instagram",
"instagram-downloader",
"instagram-scraper",
"downloader",
"hikerapi",
"aiograpi",
"async",
"cli",
"osint",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet",
"Topic :: Multimedia :: Graphics",
"Topic :: Multimedia :: Video",
"Topic :: Utilities",
"Typing :: Typed",
]
dependencies = [
"hikerapi",
"argcomplete>=3",
"tqdm>=4.66",
]
[project.urls]
Homepage = "https://subzeroid.github.io/insta-dl/"
Documentation = "https://subzeroid.github.io/insta-dl/"
Repository = "https://github.com/subzeroid/insta-dl"
Issues = "https://github.com/subzeroid/insta-dl/issues"
Changelog = "https://github.com/subzeroid/insta-dl/blob/main/CHANGELOG.md"
[project.optional-dependencies]
aiograpi = [
"aiograpi>=0.1.1",
]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"pytest-cov>=5",
]
lint = [
"ruff>=0.6",
"mypy>=1.11",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"pymdown-extensions>=10",
]
[project.scripts]
insta-dl = "insta_dl.cli:main"
[tool.hatch.build.targets.wheel]
packages = ["insta_dl"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.coverage.run]
source = ["insta_dl"]
omit = ["insta_dl/backends/aiograpi_backend.py"]
[tool.coverage.report]
show_missing = true
skip_covered = false
[tool.ruff]
target-version = "py311"
line-length = 110
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"W", # pycodestyle warnings
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"RUF", # ruff-specific
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ARG", # flake8-unused-arguments
"RET", # flake8-return
"C4", # flake8-comprehensions
]
ignore = [
"E501", # line too long — handled by formatter
"B008", # do not perform function call in argument defaults
"SIM108", # ternary vs if/else — readability judgement call
"RET504", # unnecessary assignment before return — readability over terseness
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["B017", "ARG"] # pytest.raises patterns; unused fixture/args are common
[tool.mypy]
python_version = "3.11"
strict = true
ignore_missing_imports = true # hikerapi / aiograpi upstream has no stubs
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
check_untyped_defs = false
disallow_untyped_calls = false
disallow_incomplete_defs = false
warn_return_any = false