-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (109 loc) · 2.36 KB
/
pyproject.toml
File metadata and controls
124 lines (109 loc) · 2.36 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[project]
name = "snap-html"
version = "0.6.0"
description = "a robust, modern and high performance Python library for generating image from a html string/html file/url build on top of `playwright`"
authors = [{ name = "codustry", email = "hello@codustry.com" }]
requires-python = "~=3.8"
readme = "README.md"
license = "MIT"
keywords = []
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"typer[all]>=0.3.2",
"rich>=9.8.2",
"playwright",
"furl>=2.1.0",
"pint>=0.21.1",
"pytest>=6.2.5",
"pydantic>=2.10.6",
]
[project.urls]
Homepage = "https://github.com/codustry/snap-html"
Repository = "https://github.com/codustry/snap-html"
[project.scripts]
snap-html = "snap_html.__main__:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = ["pytest>=6.2.1", "pytest-asyncio>=0.20.3", "pytest-cov>=4.1.0"]
[tool.ruff]
# Enable pycodestyle (E), Pyflakes (F), isort (I), and more
line-length = 88
target-version = "py38"
select = [
"E",
"F",
"I",
"W",
"N",
"B",
"D",
"UP",
"S",
"BLE",
"A",
"C4",
"T20",
"PT",
"RET",
"SIM",
]
ignore = []
# Allow autofix for all enabled rules that support it
fix = true
unsafe-fixes = false
# Exclude a variety of commonly ignored directories
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{tests,docs,tools}/*" = ["S101"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "auto"
skip-magic-trailing-comma = false
[tool.ruff.isort]
known-first-party = ["snap_html"]
section-order = [
"future",
"standard-library",
"third-party",
"first-party",
"local-folder",
]
combine-as-imports = true
[tool.ruff.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
markers = ["asyncio: mark test as async test"]
addopts = "-v"
testpaths = ["tests"]
python_files = ["test_*.py"]