-
Notifications
You must be signed in to change notification settings - Fork 20
/
pyproject.toml
104 lines (92 loc) · 2.25 KB
/
pyproject.toml
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "dynamicprompts"
dynamic = ["version"]
description = "Dynamic prompts templating library for Stable Diffusion"
homepage = "https://github.com/adieyal/dynamicprompts"
authors = [
{ name = "Adi Eyal", email = "[email protected]" }
]
license = "MIT"
readme = "README.md"
keywords = ["stable diffusion", "prompt engineering", "automatic1111", "text2img"]
requires-python = ">=3.8"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Text Processing"
]
dependencies = [
"pyparsing~=3.0",
"jinja2~=3.1",
]
[project.optional-dependencies]
attentiongrabber = [] # empty list for backwards compatibility (no "no extra" warnings)
magicprompt = ["transformers[torch]<5"]
feelinglucky = ["requests<3"]
yaml = ["pyyaml<7"]
dev = [
"pytest-cov~=4.0",
"pytest-lazy-fixture~=0.6",
"pytest~=7.2",
]
[tool.hatch.version]
path = "src/dynamicprompts/__init__.py"
[tool.pytest.ini_options]
pythonpath = ["src"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
[tool.ruff]
target-version = "py38"
[tool.ruff.lint]
select = [
"B",
"C",
"COM",
"E",
"F",
"I",
"UP",
"TID252",
"T2",
]
ignore = [
"B007",
"B028", # explicit stacklevel
"B905",
"C901", # Complexity
"E501", # Line length
]
unfixable = [
"T2", # don't automatically remove prints
"F841", # don't remove seemingly unused locals
]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"
[tool.mypy]
exclude = "tests"
[[tool.mypy.overrides]]
module = "transformers"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "torch"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "spacy.*"
ignore_missing_imports = true
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"raise NotImplementedError",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
]