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 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187
|
[build-system]
build-backend = "flit_core.buildapi"
requires = ["flit_core >=3.4,<4"]
[dependency-groups]
dev = [
"tox-uv>=1.22.1"
]
lint = [
"pre-commit",
"ruff>=0.9.5"
]
test = [
"aiohttp <4",
"coverage>=7.6.10",
"pyright",
"pytest>=8.3.4",
"pytest-asyncio ==0.18.*",
"pytest-vcr ==1.*",
"urllib3 ==1.*",
"vcrpy ==4.2.1"
]
type = [
"aiohttp <4",
"pyright>=1.1.393",
"pytest>=8.3.4",
"pytest-asyncio ==0.18.*"
]
[project]
authors = [{name = "Joel Payne", email = "lilspazjoekp@gmail.com"}]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13"
]
dependencies = [
"aiohttp <4",
"yarl"
]
dynamic = ["version", "description"]
keywords = ["praw", "reddit", "api", "async", "asynchronous", "asyncpraw"]
license = {file = "LICENSE.txt"}
maintainers = [
{name = "Joel Payne", email = "lilspazjoekp@gmail.com"}
]
name = "asyncprawcore"
readme = "README.rst"
requires-python = ">=3.9"
[project.urls]
"Issue Tracker" = "https://github.com/praw-dev/asyncprawcore/issues"
"Source Code" = "https://github.com/praw-dev/asyncprawcore"
[tool.pytest.ini_options]
asyncio_mode = "auto"
filterwarnings = "ignore::DeprecationWarning"
testpaths = "tests"
[tool.ruff]
include = [
"examples/*.py",
"asyncprawcore/*.py",
"tests/*.py"
]
line-length = 120
[tool.ruff.lint]
ignore = [
"A002", # shadowing built-in
"ANN202", # missing return type for private method
"ASYNC109", # Async function definition with a `timeout` parameter
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"E501", # line-length
"PLR0913" # too many arguments
]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"ARG", # flake8-unused-arguments
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"D", # pydocstyle
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # flake8-executable
"F", # pyflakes
"FA", # flake8-future-annotations
"FIX", # flake8-fix me
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"INP", # flake8-no-pep420
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PIE", # flake8-pie
"PGH", # pygrep-hooks
"PL", # Pylint
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"PYI", # flake8-pyi
"Q", # flake8-quotes
"RET", # flake8-return
"RSE", # flake8-raise
"S", # bandit
"SIM", # flake8-simplify
"T10", # flake8-debugger
"T20", # flake8-print
"TCH", # flake8-type-checking
"TD", # flake8-todos
"W", # pycodestyle warnings
"UP" # pyupgrade
]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true
suppress-dummy-args = true
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"examples/*.py" = ["ANN", "PLR2004", "T201"]
"tests/**.py" = ["ANN", "D", "PLR2004", "S101", "S105", "S106", "S301"]
[tool.tox]
envlist = ["py39", "py310", "py311", "py312", "py313", "pre-commit", "style", "type"]
minversion = "4.22"
[tool.tox.env.pre-commit]
commands = [
["pre-commit", "run", "--all-files"]
]
description = "run pre-commit on code base"
dependency_groups = ["lint"]
runner = "uv-venv-lock-runner"
[tool.tox.env.style]
commands = [
["ruff", "check"],
["ruff", "format", "--diff", "--target-version", "py39"]
]
description = "run lint check on code base"
dependency_groups = ["lint"]
runner = "uv-venv-lock-runner"
[tool.tox.env.stylefix]
commands = [
["ruff", "check", "--fix"],
["ruff", "format", "--target-version", "py39"]
]
description = "run lint check on code base"
dependency_groups = ["lint"]
runner = "uv-venv-lock-runner"
[tool.tox.env.type]
commands = [["pyright", "asyncprawcore"]]
dependency_groups = ["type"]
description = "run type check on code base"
runner = "uv-venv-lock-runner"
[tool.tox.env_run_base]
commands = [
["coverage", "run", "-m", "pytest", "{posargs}"],
["coverage", "report", "-m", "--fail-under=100"]
]
description = "Run test under {base_python}"
dependency_groups = ["test"]
runner = "uv-venv-lock-runner"
[tool.tox.env_run_py39]
base_python = "py39"
dependencies = [
"setuptools"
]
|