-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (82 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (82 loc) · 2.68 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[build-system]
requires = ["uv_build>=0.12.5,<0.13"]
build-backend = "uv_build"
[project]
name = "sharepack"
description = "Turn a local Python web app into a single HTML file anyone can open. No server, no tunnel, no install."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11"
version = "0.1.0"
authors = [{ name = "Gaurav Sood" }]
keywords = ["django", "flask", "fastapi", "pyodide", "wasm", "demo", "share", "single-file"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Framework :: Django",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Build Tools",
]
[project.urls]
Homepage = "https://github.com/gojiplus/sharepack"
Repository = "https://github.com/gojiplus/sharepack"
Documentation = "https://gojiplus.github.io/sharepack/"
[project.scripts]
sharepack = "sharepack.cli:main"
[tool.ruff]
line-length = 88
target-version = "py311"
extend-exclude = ["tests/fixtures_*"]
[tool.ruff.lint]
external = ["DOC"]
select = [
"E", "W", "F", "I", "B", "C4", "UP", "N", "D", "S", "SIM", "T20", "PT", "RUF",
"PTH", "RET", "PIE", "FURB", "PERF", "DTZ", "LOG", "G", "TC", "FLY",
"RSE", "SLOT", "FA", "A", "EXE", "ICN", "PGH", "PLE", "ARG", "SLF",
]
# D203/D213: the google convention the fleet standard picks. W191/D206/D300:
# ruff's own docs list these as always incompatible with `ruff format`, which
# the standard also runs.
ignore = ["D203", "D213", "W191", "D206", "D300"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "D", "ARG", "SLF"]
# detect() is a uniform adapter interface; each adapter ignores the
# parameters it does not need, and callers pass them by keyword.
"src/sharepack/adapters/*.py" = ["ARG003"]
"docs/**" = ["D"]
"src/sharepack/cli.py" = ["T201"]
[tool.pyright]
include = ["src"]
typeCheckingMode = "standard"
[tool.pydoclint]
style = "google"
arg-type-hints-in-docstring = false
check-return-types = false
check-class-attributes = false
allow-init-docstring = true
exclude = '\.venv|tests|docs'
[tool.pytest.ini_options]
testpaths = ["tests"]
minversion = "6"
log_level = "INFO"
xfail_strict = true
filterwarnings = ["error"]
addopts = ["--strict-config", "--strict-markers", "-ra"]
[tool.coverage.run]
source = ["src"]
[tool.uv.build-backend]
module-name = "sharepack"
[dependency-groups]
docs = ["sphinx>=8", "furo", "myst-parser", "sphinx-copybutton", "py-canon @ git+https://github.com/gojiplus/py-canon@v1"]
dev = [
"ruff>=0.16.2",
"pyright>=1.1.390",
"pydoclint>=0.5",
"pre-commit>=4",
{ include-group = "test" },
]
test = ["pytest>=8", "pytest-cov>=6"]