Set up the Python project
Apache-2.0, the same license as FanFicFare. uv manages the dependencies, and ruff and pytest run from pyproject.toml.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
[project]
|
||||
name = "cwa-bindery"
|
||||
version = "0.1.0"
|
||||
description = "CWA Bindery - keeps web fiction in Calibre-Web-Automated up to date with FanFicFare"
|
||||
license = "Apache-2.0"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"flask",
|
||||
"gunicorn",
|
||||
"fanficfare[image-processing]>=4.61.0",
|
||||
"beautifulsoup4",
|
||||
"html5lib",
|
||||
"requests",
|
||||
"defusedxml",
|
||||
"regex",
|
||||
]
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest",
|
||||
"ruff",
|
||||
]
|
||||
|
||||
[tool.uv]
|
||||
package = false
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
testpaths = ["tests"]
|
||||
pythonpath = [".", "tests"]
|
||||
addopts = ["--tb=short"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
target-version = "py312"
|
||||
|
||||
[tool.ruff.lint]
|
||||
select = ["E", "F", "W", "I", "B", "UP", "S"]
|
||||
ignore = [
|
||||
"S104", # the container binds to all interfaces
|
||||
"S108", # the default TMP_DIR is a container path
|
||||
]
|
||||
|
||||
[tool.ruff.lint.per-file-ignores]
|
||||
"tests/*" = ["S"]
|
||||
Reference in New Issue
Block a user