cista-storage/pyproject.toml

105 lines
1.7 KiB
TOML
Raw Normal View History

2023-10-15 09:00:29 +01:00
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
name = "cista"
dynamic = ["version"]
description = "Dropbox-like file server with modern web interface"
readme = "README.md"
authors = [
{ name = "Vasanko" },
2023-10-15 09:00:29 +01:00
]
classifiers = [
]
requires-python = ">=3.11"
2023-10-15 09:00:29 +01:00
dependencies = [
"argon2-cffi",
"blake3",
"brotli",
"docopt",
"inotify",
2023-10-15 09:00:29 +01:00
"msgspec",
"natsort",
2023-10-15 09:00:29 +01:00
"pathvalidate",
"pyjwt",
2023-10-15 09:00:29 +01:00
"sanic",
"stream-zip",
"tomli_w",
2023-10-15 09:00:29 +01:00
]
requires-python = ">=3.10"
2023-10-15 09:00:29 +01:00
[project.urls]
Homepage = ""
[project.scripts]
cista = "cista.__main__:main"
[project.optional-dependencies]
dev = [
"pytest",
"ruff",
]
2023-10-21 20:30:47 +01:00
[tool.hatchling]
# Build frontend
pre_build = "npm run build --prefix cista-front"
[tool.hatch.version]
source = "vcs"
2023-10-15 09:00:29 +01:00
[tool.hatch.build]
hooks.vcs.version-file = "cista/_version.py"
hooks.vcs.template = """
# This file is automatically generated by hatch build.
2023-10-21 20:30:47 +01:00
__version__ = {version!r}
2023-10-15 09:00:29 +01:00
"""
2023-10-21 20:30:47 +01:00
2023-10-15 09:00:29 +01:00
targets.sdist.include = [
"/cista",
]
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--verbosity=-1",
"-p no:warnings",
]
testpaths = [
"tests",
]
[tool.ruff]
select = ["ALL"]
ignore = [
"A0",
"ARG001",
"ANN",
"B018",
"BLE001",
"C901",
"COM812", # conflicts with ruff format
"D",
"E501",
"EM1",
"FIX002",
"ISC001", # conflicts with ruff format
"PGH003",
"PLR0912",
"PLR2004",
"PLW0603",
"S101",
"SLF001",
"T201",
"TD0",
"TRY",
]
show-source = true
show-fixes = true
[tool.ruff.isort]
known-first-party = ["cista"]
[tool.ruff.per-file-ignores]
"tests/*" = ["S", "ANN", "D", "INP"]