-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
155 lines (143 loc) · 4.26 KB
/
pyproject.toml
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
[build-system]
requires = ["setuptools>=65.6.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "bdfrx"
description = "Downloads and archives content from reddit"
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
keywords = ["reddit", "download", "archive",]
authors = [{name = "OMEGARAZER", email = "bdfrx.python@gmail.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"appdirs>=1.4.4",
"beautifulsoup4>=4.10.0",
"cachetools>=5.3.0",
"click>=8.0.0",
"praw>=7.2.0",
"pyyaml>=5.4.1",
"requests>=2.31.0",
"yt-dlp>=2023.6.22",
]
dynamic = ["version"]
[tool.setuptools]
dynamic = {"version" = {attr = "bdfrx.__version__"}}
packages = ["bdfrx", "bdfrx.site_downloaders", "bdfrx.site_downloaders.fallback_downloaders",]
package-data = {"bdfrx" = ["default_config.cfg", "bdfrx.db",]}
[project.optional-dependencies]
dev = [
"black>=23.3.0",
"pre-commit>=3.3.1",
"pytest>=7.3.1",
"ruff>=0.0.275",
]
[project.urls]
"Homepage" = "https://omegarazer.github.io/bulk-downloader-for-reddit-x"
"Source" = "https://github.com/OMEGARAZER/bulk-downloader-for-reddit-x"
"Bug Reports" = "https://github.com/OMEGARAZER/bulk-downloader-for-reddit-x/issues"
[project.scripts]
bdfrx = "bdfrx.__main__:cli"
bdfrx-download = "bdfrx.__main__:cli_download"
[tool.black]
preview = true
line-length = 120
[tool.flake8]
exclude = ["scripts/tests"]
max-line-length = 120
show-source = true
statistics = true
[tool.isort]
profile = "black"
py_version = 39
multi_line_output = 3
line_length = 120
indent = 4
[tool.mypy]
python_version = "3.9"
show_column_numbers = true
show_error_context = true
[tool.pytest.ini_options]
minversion = "7.1"
addopts = "--strict-markers"
testpaths = "tests"
markers = [
"online: tests require a connection to the internet",
"reddit: tests require a connection to Reddit",
"slow: test is slow to run",
"authenticated: test requires an authenticated Reddit instance",
]
[tool.refurb]
python_version = "3.9"
[tool.ruff]
extend-exclude = ["scripts/tests"]
external = ["FURB123"]
flake8-annotations = {"allow-star-arg-any" = true, "suppress-dummy-args" = true}
flake8-pytest-style = {"parametrize-values-type" = "tuple", "mark-parentheses" = false}
pylint = {"allow-magic-value-types" = ["bytes", "int", "str"], "max-args" = 7}
format = "grouped"
ignore = [
"ANN101", # missing-type-self
"B904", # raise-without-from-inside-except
"N818", # error-suffix-on-exception-name
]
line-length = 120
per-file-ignores = {"tests/*" = ["ANN", "FBT", "S101", "S105", "S106", "SLF"], "scripts/*" = ["INP", "S105", "S106"]}
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"COM", # flake8-commas
"E", # Pycodestyle
"ERA", # eradicate
"EXE", # flake8-executable
"F", # Pyflakes
"FBT", # flake8-boolean-trap
"FIX", # flake8-fixme
"FLY", # flynt
"I", # Isort
"ICN", # flake8-import-conventions
"INP", # flake8-no-pep420
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PERF", # Perflint
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PLC", # Pylint Convention
"PLE", # Pylint Error
"PLR", # Pylint Refactor
"PLW", # Pylint Warning
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"RUF", # Ruff
"S", # flake8-bandit
"SIM", # flake8-simplify
"SLF", # flake8-self
"T10", # flake8-debugger
"TCH", # flake8-type-checking
"TD", # flake8-todos
"TID", # flake8-tidy-imports
"UP", # pyupgrade
"W", # Pycodestyle
"YTT", # flake8-2020
]
show-fixes = true
show-source = true
target-version = "py39"
task-tags = ["TODO","TOFIX"]