-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
99 lines (90 loc) · 2.48 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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "hussh"
description = "SSH for Humans"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["ssh", "ssh2", "rust", "pyo3"]
authors = [
{name = "Jacob J Callahan", email = "[email protected]"}
]
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Shells",
"Topic :: System :: Networking",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = [
"docker",
"maturin",
"patchelf; sys_platform == 'linux'",
"pexpect",
"pre-commit",
"pytest",
"pytest-randomly",
"ruff",
]
[tool.maturin]
features = ["pyo3/extension-module"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-v", "-l", "--color=yes", "--code-highlight=yes"]
[tool.ruff]
line-length = 99
target-version = "py311"
[tool.ruff.lint]
fixable = ["ALL"]
select = [
"B", # bugbear
"C90", # mccabe
"E", # pycodestyle
"F", # flake8
"G", # flake8-logging-format
"I", # isort
"PERF", # Perflint rules
"PLC", # pylint
"PLE", # pylint
"PLR", # pylint
"PLW", # pylint
"PTH", # Use pathlib
"PT", # flake8-pytest
"RET", # flake8-return
"RUF", # Ruff-specific rules
"SIM", # flake8-simplify
"UP", # pyupgrade
"W", # pycodestyle
]
ignore = [
"B019", # lru_cache can lead to memory leaks - acceptable tradeoff
"PT004", # pytest underscrore prefix for non-return fixtures
"PT005", # pytest no underscrore prefix for return fixtures
]
[tool.ruff.lint.isort]
force-sort-within-sections = true
known-first-party = [
"hussh",
]
combine-as-imports = true
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[tool.ruff.lint.mccabe]
max-complexity = 20