-
Notifications
You must be signed in to change notification settings - Fork 310
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #576 from azmeuk/pyproject.toml
move from setup.cfg to pyproject.toml
- Loading branch information
Showing
5 changed files
with
106 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
[project] | ||
name = "Flask-WTF" | ||
description = "Form rendering, validation, and CSRF protection for Flask with WTForms." | ||
readme = "README.rst" | ||
license = {file = "LICENSE.rst"} | ||
maintainers = [{name = "WTForms"}] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Environment :: Web Environment", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Topic :: Internet :: WWW/HTTP :: Dynamic Content", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI", | ||
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application", | ||
"Topic :: Software Development :: Libraries :: Application Frameworks", | ||
] | ||
requires-python = ">=3.8" | ||
dependencies = [ | ||
"Flask", | ||
"WTForms", | ||
"itsdangerous", | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.urls] | ||
Documentation = "https://flask-wtf.readthedocs.io/" | ||
Changes = "https://flask-wtf.readthedocs.io/changes/" | ||
"Source Code" = "https://github.com/wtforms/flask-wtf/" | ||
"Issue Tracker" = "https://github.com/wtforms/flask-wtf/issues/" | ||
Chat = "https://discord.gg/pallets" | ||
|
||
[project.optional-dependencies] | ||
email = ["email_validator"] | ||
|
||
[build-system] | ||
requires = ["hatchling"] | ||
build-backend = "hatchling.build" | ||
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/flask_wtf"] | ||
|
||
[tool.hatch.version] | ||
path = "src/flask_wtf/__init__.py" | ||
|
||
[tool.hatch.build] | ||
include = [ | ||
"src/", | ||
"docs/", | ||
"tests/", | ||
"CHANGES.rst", | ||
"tox.ini", | ||
] | ||
exclude = [ | ||
"docs/_build/", | ||
] | ||
|
||
[tool.pytest.ini_options] | ||
testpaths = ["tests"] | ||
filterwarnings = [ | ||
"error", | ||
] | ||
|
||
[tool.coverage.run] | ||
branch = true | ||
source = ["flask_wtf", "tests"] | ||
|
||
[tool.coverage.paths] | ||
source = ["src", "*/site-packages"] | ||
|
||
[tool.coverage.report] | ||
exclude_lines = [ | ||
"pragma: no cover", | ||
"except ImportError:", | ||
] | ||
|
||
[tool.flake8] | ||
# B = bugbear | ||
# E = pycodestyle errors | ||
# F = flake8 pyflakes | ||
# W = pycodestyle warnings | ||
# B9 = bugbear opinions | ||
# ISC = implicit-str-concat | ||
select = ["B", "E", "F", "W", "B9", "ISC"] | ||
ignore = [ | ||
# slice notation whitespace, invalid | ||
"E203", | ||
# line length, handled by bugbear B950 | ||
"E501", | ||
# bare except, handled by bugbear B001 | ||
"E722", | ||
# bin op line break, invalid | ||
"W503", | ||
# requires 'strict' argument for 'zip' | ||
# that needs python >= 3.10 | ||
"B905", | ||
] | ||
# up to 88 allowed by bugbear B950 | ||
max-line-length = 80 | ||
per-file-ignores = [ | ||
# __init__ modules export names | ||
"**/__init__.py: F401, F403", | ||
] |