pyproject.toml
This file
Path
pyproject.toml
125 lines · 3.3 KiB · TOML
Last changed by
Disable commonly ignored Pyright linting rules (#7497)Joren Hammudoglubefore adoption661970d
History of this fileTake it
The walk stopped after 200 commits: lines older than 8812812 point at it.
Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 1–16why, one step back1[build-system]2requires = ["setuptools>=61.0"]3build-backend = "setuptools.build_meta"45[project]6name = "requests"7description = "Python HTTP for Humans."8readme = "README.md"9license = {text = "Apache-2.0"}10authors = [11 { name = "Kenneth Reitz", email = "me@kennethreitz.org" },12]13maintainers = [14 {name = "Ian Stapleton Cordasco", email="graffatcolmingov@gmail.com"},15 {name = "Nate Prewitt", email="nate.prewitt@gmail.com"}16]Drop support for Python 3.9 (#7196)Nate Prewittbefore adoption0c2bbe7
line 17why, one step back17requires-python = ">=3.10"Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 18–20why, one step back18dependencies = [19 "charset_normalizer>=2,<4",20 "idna>=2.5,<4",Update floors for certifi and urllib3 (#7189)Nate Prewittbefore adoption733b201
lines 21–22why, one step back21 "urllib3>=1.26,<3",22 "certifi>=2023.5.7"Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 23–39why, one step back23]24dynamic = ["version"]2526classifiers = [27 "Development Status :: 5 - Production/Stable",28 "Environment :: Web Environment",29 "Intended Audience :: Developers",30 "License :: OSI Approved :: Apache Software License",31 "Natural Language :: English",32 "Operating System :: OS Independent",33 "Programming Language :: Python",34 "Programming Language :: Python :: 3",35 "Programming Language :: Python :: 3.10",36 "Programming Language :: Python :: 3.11",37 "Programming Language :: Python :: 3.12",38 "Programming Language :: Python :: 3.13",39 "Programming Language :: Python :: 3.14",Formalize 3.15 support (#7422)Nate Prewittbefore adoptiondc9dbdf
line 40why, one step back40 "Programming Language :: Python :: 3.15",Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 41–43why, one step back41 "Programming Language :: Python :: 3 :: Only",42 "Programming Language :: Python :: Implementation :: CPython",43 "Programming Language :: Python :: Implementation :: PyPy",Add 3.14t support to CI (#7419)Nate Prewittbefore adoptioneb173bc
line 44why, one step back44 "Programming Language :: Python :: Free Threading :: 2 - Beta",Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 45–55why, one step back45 "Topic :: Internet :: WWW/HTTP",46 "Topic :: Software Development :: Libraries"47]4849[project.urls]50Documentation = "https://requests.readthedocs.io"51Source = "https://github.com/psf/requests"5253[project.optional-dependencies]54security = []55socks = ["PySocks>=1.5.6, !=1.5.7"]Increase chardet upper limit to 8Dan Blanchardbefore adoptionb2a1d33
line 56why, one step back56use_chardet_on_py3 = ["chardet>=3.0.2,<8"]Fix unintended test extra (#7306)Nate Prewittbefore adoption4443b1a
lines 57–58why, one step back5758[dependency-groups]Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
line 59why, one step back59test = [Packaging: DRY out extras definition (#7277)Frank Danabefore adoption7407309
line 60why, one step back60 "requests[socks]",Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
line 61why, one step back61 "pytest-httpbin==2.1.0",Fix unintended test extra (#7306)Nate Prewittbefore adoption4443b1a
line 62why, one step back62 "httpbin~=0.10.0",Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 63–65why, one step back63 "pytest-cov",64 "pytest-mock",65 "pytest-xdist",Fix unintended test extra (#7306)Nate Prewittbefore adoption4443b1a
lines 66–67why, one step back66 "pytest>=3",67 "trustme",Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
line 68why, one step back68]Add inline types to Requests (#7272)Nate Prewittbefore adoption561e4b6
lines 69–71why, one step back69typecheck = [70 "pyright",71 "typing_extensions",Improve static typing of 3rd party imports (#7496)Joren Hammudoglubefore adoptione50e594
lines 72–74why, one step back72 "chardet",73 "cryptography",74 "PyOpenSSL",Add inline types to Requests (#7272)Nate Prewittbefore adoption561e4b6
line 75why, one step back75]Migrate build system to PEP 517 (#7012)Nate Prewittbefore adoptioncb2c800
lines 76–85why, one step back7677[tool.setuptools]78license-files = ["LICENSE", "NOTICE"]7980[tool.setuptools.dynamic]81version = {attr = "requests.__version__.__version__"}8283[tool.setuptools.packages.find]84where = ["src"]85Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f
lines 86–99why, one step back86[tool.ruff]87target-version = "py310"88src = ["src/requests", "tests"]89exclude = ["docs/", "ext/"]9091[tool.ruff.lint]92select = [93 "E", # pycodestyle errors94 "W", # pycodestyle warnings95 "F", # pyflakes96 "I", # isort97 "UP", # pyupgrade98 "T10", # flake8-debugger (replaces debug-statements hook)99]Ruff rule UP038 has been removed (#7393)Dimitri Papadopoulos Orfanosbefore adoption6ec76b4
line 100why, one step back100ignore = ["E203", "E501", "UP031"]Fix CI and build failures (#7190)Nate Prewittbefore adoptionf8bec2f
lines 101–109why, one step back101per-file-ignores = {"src/requests/__init__.py" = ["E402", "F401"], "src/requests/compat.py" = ["E402", "F401"], "tests/compat.py" = ["F401"]}102103[tool.ruff.lint.isort]104known-first-party = ["requests"]105106[tool.ruff.format]107# Use black-compatible formatting108quote-style = "double"109indent-style = "space"Merge pull request #6519 from psf/dependabot/github_actions/actions/checkout-4.0.0Ian Stapleton Cordascobefore adoption8812812
lines 110–115why, one step back110111[tool.pytest.ini_options]112addopts = "--doctest-modules"113doctest_optionflags = "NORMALIZE_WHITESPACE ELLIPSIS"114minversion = "6.2"115testpaths = ["tests"]Add inline types to Requests (#7272)Nate Prewittbefore adoption561e4b6
lines 116–120why, one step back116117118[tool.pyright]119include = ["src/requests"]120typeCheckingMode = "strict"Disable commonly ignored Pyright linting rules (#7497)Joren Hammudoglubefore adoption661970d
lines 121–125why, one step back121# linting rules unrelated to type checking122reportPrivateUsage = false123reportPrivateImportUsage = false124reportUnnecessaryIsInstance = false125reportUnusedImport = false # duplicate of Ruff's F401 rule