-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
117 lines (103 loc) · 2.26 KB
/
pyproject.toml
File metadata and controls
117 lines (103 loc) · 2.26 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
[project]
name = "splight-cli"
version = "5.6.2"
description = "Splight Command Line Interface"
readme = "README.md"
authors = [
]
requires-python = ">=3.11,<4.0.0"
dependencies = [
"case-converter==1.1.0",
"click==8.0.4",
"click-default-group==1.2.2",
"colorama==0.4.4",
"packaging==23.0",
"pathspec==0.11.1",
"py7zr==0.20.8",
"pyyaml==6.0.1",
"requests==2.32.2",
"rich==13.0.1",
"setuptools==80.7.1",
"splight-lib>=5.21.0",
"toposort>=1.10,<2.0",
"typer==0.15.1",
]
[dependency-groups]
dev = [
"black==24.3.0",
"coverage>=7.3.2",
"flake8>=6.1.0",
"ipdb>=0.13.13",
"ipython==8.12.2",
"isort==5.12.0",
"mock>=5.1.0",
"pre-commit==3.2.2",
"pytest>=7.4.3",
"ruff==0.9.1",
]
[project.scripts]
splight = "splight_cli.cli:app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.black]
line-length = 79
force-exclude = ".*/component/templates/.*py"
[tool.isort]
profile = "black"
line_length = 79
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::RuntimeWarning",
"ignore::UserWarning",
"ignore::pytest.PytestUnraisableExceptionWarning",
"ignore::pytest.PytestUnhandledThreadExceptionWarning",
"ignore::pytest.PytestAssertRewriteWarning",
]
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"*/component/templates/*",
]
# Same as Black.
line-length = 79
indent-width = 4
target-version = "py311"
lint.extend-select = ["F", "I"]
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"