-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
77 lines (68 loc) · 2.05 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
[project]
name = "shellrunner"
version = "0.4.2"
description = "Write safe shell scripts in Python."
authors = [
{name = "adamhl8", email = "[email protected]"},
]
dependencies = [
"psutil>=5.9.8",
]
requires-python = ">=3.10"
readme = "README.md"
license = {text = "MIT"}
classifiers = [
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX",
"Operating System :: Unix",
"Programming Language :: Unix Shell",
"Topic :: System :: Shells",
"Topic :: System :: System Shells",
]
keywords = ["shell", "scripting", "bash", "zsh", "fish"]
[project.urls]
"Homepage" = "https://github.com/adamhl8/shellrunner"
"Source" = "https://github.com/adamhl8/shellrunner"
"Bug Tracker" = "https://github.com/adamhl8/shellrunner/issues"
[tool.rye]
managed = true
dev-dependencies = [
"ruff>=0.3.0",
"pytest>=8.0.2",
"pyroma>=4.2",
"types-psutil>=5.9.5.20240205",
]
[tool.rye.scripts]
test = "pytest shellrunner"
"lint:pyright" = "pyright ."
"lint:ruff" = "ruff check ."
"lint:ruff:format" = "ruff format --check ."
"lint:pyroma" = "pyroma -n 10 ."
lint = { chain = ["lint:pyright", "lint:ruff", "lint:ruff:format", "lint:pyroma"] }
format = "ruff format ."
[tool.pyright]
typeCheckingMode = "strict"
[tool.ruff]
line-length = 120
output-format = "grouped"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN101", # missing-type-self: Missing type annotation for {name} in method
# ruff conflicts
"D203", # one-blank-line-before-class: 1 blank line required before class docstring
"D213", # multi-line-summary-second-line: Multi-line docstring summary should start at the second line
# ruff format conflicts
"COM812", # missing-trailing-comma: Trailing comma missing
"ISC001", # single-line-implicit-string-concatenation: Implicitly concatenated string literals on one line
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build]
packages = ["shellrunner"]
exclude = ["test*.py"]
[tool.hatch.metadata]
allow-direct-references = true