Skip to content
Myr

pyproject.toml

This file

Path

pyproject.toml

115 lines · 2.5 KiB · TOML

Last changed by

address mypy strict findingsDavid Lordbefore adoption6000e80

History of this file

Take it

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 1–2why, one step back
1[project]
2name = "Flask"

start version 3.0.1David Lordbefore adoption66743d4

line 3why, one step back
3version = "3.0.1.dev"

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 4–5why, one step back
4description = "A simple framework for building complex web applications."
5readme = "README.rst"

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

line 6why, one step back
6license = {file = "LICENSE.rst"}

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 7–20why, one step back
7maintainers = [{name = "Pallets", email = "contact@palletsprojects.com"}]
8classifiers = [9 "Development Status :: 5 - Production/Stable",10 "Environment :: Web Environment",11 "Framework :: Flask",12 "Intended Audience :: Developers",13 "License :: OSI Approved :: BSD License",14 "Operating System :: OS Independent",15 "Programming Language :: Python",16 "Topic :: Internet :: WWW/HTTP :: Dynamic Content",17 "Topic :: Internet :: WWW/HTTP :: WSGI",18 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",19 "Topic :: Software Development :: Libraries :: Application Frameworks",20]

Merge pull request #5072 from pallets/drop-py37David Lordbefore adoptionb4345cb

line 21why, one step back
21requires-python = ">=3.8"

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

line 22why, one step back
22dependencies = [

Bump Werkzeug 3.0.0pgjonesbefore adoption3252f2b

line 23why, one step back
23 "Werkzeug>=3.0.0",

Merge pull request #5082 from pallets/minimum-requirementsDavid Lordbefore adoptioneb33b8c

lines 24–26why, one step back
24 "Jinja2>=3.1.2",
25 "itsdangerous>=2.1.2",26 "click>=8.1.3",

Merge pull request #5058 from pallets/require-blinkerDavid Lordbefore adoptiona05c0c6

line 27why, one step back
27 "blinker>=1.6.2",

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 28–46why, one step back
28 "importlib-metadata>=3.6.0; python_version < '3.10'",
29]3031[project.urls]32Donate = "https://palletsprojects.com/donate"33Documentation = "https://flask.palletsprojects.com/"34Changes = "https://flask.palletsprojects.com/changes/"35"Source Code" = "https://github.com/pallets/flask/"36"Issue Tracker" = "https://github.com/pallets/flask/issues/"37Chat = "https://discord.gg/pallets"3839[project.optional-dependencies]40async = ["asgiref>=3.2"]41dotenv = ["python-dotenv"]4243[project.scripts]44flask = "flask.cli:main"4546[build-system]

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

lines 47–48why, one step back
47requires = ["flit_core<4"]
48build-backend = "flit_core.buildapi"

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

line 49why, one step back
49

Merge branch '2.3.x'David Lordbefore adoption15a0d4a

lines 50–65why, one step back
50[tool.flit.module]
51name = "flask"5253[tool.flit.sdist]54include = [55 "docs/",56 "examples/",57 "requirements/",58 "tests/",59 "CHANGES.rst",60 "CONTRIBUTING.rst",61 "tox.ini",62]63exclude = [64 "docs/_build/",65]

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 66–68why, one step back
66
67[tool.pytest.ini_options]68testpaths = ["tests"]

ignore warning from pytest due to change in Python 3.12 alphaDavid Lordbefore adoption67c4c7b

lines 69–71why, one step back
69filterwarnings = [
70 "error",71]

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 72–80why, one step back
72
73[tool.coverage.run]74branch = true75source = ["flask", "tests"]7677[tool.coverage.paths]78source = ["src", "*/site-packages"]7980[tool.mypy]

Merge pull request #5072 from pallets/drop-py37David Lordbefore adoptionb4345cb

line 81why, one step back
81python_version = "3.8"

run typing testsDavid Lordbefore adoptionc275573

line 82why, one step back
82files = ["src/flask", "tests/typing"]

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 83–84why, one step back
83show_error_codes = true
84pretty = true

address mypy strict findingsDavid Lordbefore adoption6000e80

line 85why, one step back
85strict = true

Merge pull request #4947 from pallets/pyprojectDavid Lordbefore adoption78b42b9

lines 86–94why, one step back
86
87[[tool.mypy.overrides]]88module = [89 "asgiref.*",90 "dotenv.*",91 "cryptography.*",92 "importlib_metadata",93]94ignore_missing_imports = true

use ruff linter and formatterDavid Lordbefore adoption54e05a2

lines 95–115why, one step back
95
96[tool.ruff]97src = ["src"]98fix = true99show-fixes = true100show-source = true101102[tool.ruff.lint]103select = [104 "B", # flake8-bugbear105 "E", # pycodestyle error106 "F", # pyflakes107 "I", # isort108 "UP", # pyupgrade109 "W", # pycodestyle warning110]111ignore-init-module-imports = true112113[tool.ruff.lint.isort]114force-single-line = true115order-by-type = false