-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (57 loc) · 1.84 KB
/
pyproject.toml
File metadata and controls
68 lines (57 loc) · 1.84 KB
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
[project]
name = "flask-wiki"
version = "1.0.4"
description = "Simple file-based wiki for Flask"
readme = "README.md"
authors = [{name = "RERO+", email = "software@rero.ch"}]
license = "BSD-3-Clause"
license-files = ["LICENSE"]
requires-python = ">= 3.9.2, <3.13"
dependencies = [
"bootstrap-flask",
"Flask",
"flask-wtf",
"babel (>=2.9.1)",
"flask-babel (>=3.0.0)",
"wtforms",
"werkzeug (>=0.15)",
"markdown",
"beautifulsoup4",
"click",
"whoosh-reloaded (>=2.7.5)",
]
[dependency-groups]
dev = [
"ipython",
"pip-audit",
"poethepoet",
"pytest",
"ruff (>=0.12.3)",
]
[project.entry-points."flask.commands"]
flask_wiki = "flask_wiki.cli:flask_wiki"
[tool.pytest.ini_options]
addopts = "--color=yes --doctest-modules --ignore=flask_wiki/config.py"
testpaths = "tests flask_wiki"
[tool.ruff]
extend-exclude = ["config.py"]
line-length = 120
[tool.ruff.lint]
extend-select = ["A", "C4", "DTZ", "INT", "ISC", "T20", "PIE", "Q", "RET", "SIM", "I", "N", "PERF", "W", "D", "F", "UP", "RUF"]
[tool.ruff.lint.pydocstyle]
convention = "pep257"
[tool.poe.tasks]
compile_catalog = "pybabel compile -d flask_wiki/translations"
extract_messages = "pybabel extract --project Flask-Wiki -F babel.cfg -k gettext -k lazy_gettext -o flask_wiki/translations/messages.pot flask_wiki"
format = {cmd = "ruff format .", help = "Formats all files"}
init_catalog = "pybabel init -i flask_wiki/translations/messages.pot -d flask_wiki/translations -l"
lint = {cmd = "ruff check", help = "Checks linting"}
run_tests = {cmd = "./scripts/test", help = "Runs all tests"}
update_catalog = "pybabel update -i flask_wiki/translations/messages.pot -d flask_wiki/translations --no-fuzzy-matching --ignore-obsolete true"
[build-system]
requires = ["uv_build"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-root = "."
[tool.uv]
package = true