mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-13 16:54:47 +03:00
Run pyproject-fmt
This commit is contained in:
parent
2c8d10da12
commit
3150ff1c27
112
pyproject.toml
112
pyproject.toml
|
@ -1,78 +1,76 @@
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["setuptools>=77.0.3"]
|
|
||||||
build-backend = "setuptools.build_meta"
|
build-backend = "setuptools.build_meta"
|
||||||
|
requires = [ "setuptools>=77.0.3" ]
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "djangorestframework"
|
name = "djangorestframework"
|
||||||
readme = "README.md"
|
|
||||||
authors = [{name = "Tom Christie", email = "tom@tomchristie.com"}]
|
|
||||||
license = "BSD-3-Clause"
|
|
||||||
description = "Web APIs for Django, made easy."
|
description = "Web APIs for Django, made easy."
|
||||||
classifiers = [
|
readme = "README.md"
|
||||||
"Development Status :: 5 - Production/Stable",
|
license = "BSD-3-Clause"
|
||||||
"Environment :: Web Environment",
|
authors = [ { name = "Tom Christie", email = "tom@tomchristie.com" } ]
|
||||||
"Framework :: Django",
|
|
||||||
"Framework :: Django :: 4.2",
|
|
||||||
"Framework :: Django :: 5.0",
|
|
||||||
"Framework :: Django :: 5.1",
|
|
||||||
"Framework :: Django :: 5.2",
|
|
||||||
"Intended Audience :: Developers",
|
|
||||||
"Operating System :: OS Independent",
|
|
||||||
"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",
|
|
||||||
"Programming Language :: Python :: 3 :: Only",
|
|
||||||
"Topic :: Internet :: WWW/HTTP",
|
|
||||||
]
|
|
||||||
requires-python = ">=3.9"
|
requires-python = ">=3.9"
|
||||||
dependencies = ["django>=4.2"]
|
classifiers = [
|
||||||
dynamic = ["version"]
|
"Development Status :: 5 - Production/Stable",
|
||||||
|
"Environment :: Web Environment",
|
||||||
|
"Framework :: Django",
|
||||||
|
"Framework :: Django :: 4.2",
|
||||||
|
"Framework :: Django :: 5.0",
|
||||||
|
"Framework :: Django :: 5.1",
|
||||||
|
"Framework :: Django :: 5.2",
|
||||||
|
"Intended Audience :: Developers",
|
||||||
|
"Operating System :: OS Independent",
|
||||||
|
"Programming Language :: Python",
|
||||||
|
"Programming Language :: Python :: 3 :: Only",
|
||||||
|
"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",
|
||||||
|
"Topic :: Internet :: WWW/HTTP",
|
||||||
|
]
|
||||||
|
dynamic = [ "version" ]
|
||||||
|
|
||||||
[tool.setuptools.dynamic]
|
dependencies = [ "django>=4.2" ]
|
||||||
version = {attr = "rest_framework.__version__"}
|
urls.Changelog = "https://www.django-rest-framework.org/community/release-notes/"
|
||||||
|
urls.Funding = "https://fund.django-rest-framework.org/topics/funding/"
|
||||||
[project.urls]
|
urls.Homepage = "https://www.django-rest-framework.org"
|
||||||
Homepage = "https://www.django-rest-framework.org"
|
urls.Source = "https://github.com/encode/django-rest-framework"
|
||||||
Funding = "https://fund.django-rest-framework.org/topics/funding/"
|
|
||||||
Source = "https://github.com/encode/django-rest-framework"
|
|
||||||
Changelog = "https://www.django-rest-framework.org/community/release-notes/"
|
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
|
|
||||||
[tool.setuptools.packages.find]
|
[tool.setuptools.dynamic]
|
||||||
include = ["rest_framework*"]
|
version = { attr = "rest_framework.__version__" }
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.setuptools.packages.find]
|
||||||
addopts = "--tb=short --strict-markers -ra"
|
include = [ "rest_framework*" ]
|
||||||
testpaths = ["tests"]
|
|
||||||
filterwarnings = ["ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning"]
|
|
||||||
|
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
skip = [".tox"]
|
skip = [ ".tox" ]
|
||||||
atomic = true
|
atomic = true
|
||||||
multi_line_output = 5
|
multi_line_output = 5
|
||||||
extra_standard_library = ["types"]
|
extra_standard_library = [ "types" ]
|
||||||
known_third_party = ["pytest", "_pytest", "django", "pytz", "uritemplate"]
|
known_third_party = [ "pytest", "_pytest", "django", "pytz", "uritemplate" ]
|
||||||
known_first_party = ["rest_framework", "tests"]
|
known_first_party = [ "rest_framework", "tests" ]
|
||||||
|
|
||||||
[tool.coverage.run]
|
|
||||||
# NOTE: source is ignored with pytest-cov (but uses the same).
|
|
||||||
source = ["."]
|
|
||||||
include = ["rest_framework/*", "tests/*"]
|
|
||||||
branch = true
|
|
||||||
|
|
||||||
[tool.coverage.report]
|
|
||||||
include = ["rest_framework/*", "tests/*"]
|
|
||||||
exclude_lines = [
|
|
||||||
"pragma: no cover",
|
|
||||||
"raise NotImplementedError",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.codespell]
|
[tool.codespell]
|
||||||
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
|
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
|
||||||
skip = "*/kickstarter-announcement.md,*.js,*.map,*.po"
|
skip = "*/kickstarter-announcement.md,*.js,*.map,*.po"
|
||||||
ignore-words-list = "fo,malcom,ser"
|
ignore-words-list = "fo,malcom,ser"
|
||||||
|
|
||||||
|
[tool.pytest.ini_options]
|
||||||
|
addopts = "--tb=short --strict-markers -ra"
|
||||||
|
testpaths = [ "tests" ]
|
||||||
|
filterwarnings = [ "ignore:CoreAPI compatibility is deprecated*:rest_framework.RemovedInDRF317Warning" ]
|
||||||
|
|
||||||
|
[tool.coverage.run]
|
||||||
|
# NOTE: source is ignored with pytest-cov (but uses the same).
|
||||||
|
source = [ "." ]
|
||||||
|
include = [ "rest_framework/*", "tests/*" ]
|
||||||
|
branch = true
|
||||||
|
|
||||||
|
[tool.coverage.report]
|
||||||
|
include = [ "rest_framework/*", "tests/*" ]
|
||||||
|
exclude_lines = [
|
||||||
|
"pragma: no cover",
|
||||||
|
"raise NotImplementedError",
|
||||||
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user