-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
128 lines (114 loc) · 2.5 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "valohai-cli"
dynamic = ["version"]
description = "Command line client for Valohai"
readme = "README.md"
license = "MIT"
requires-python = ">=3.8"
authors = [
{ name = "Valohai", email = "[email protected]" },
]
dependencies = [
"click>=8.0",
"gitignorant>=0.4.0",
"requests-toolbelt>=0.7.1",
"requests>=2.0.0",
"valohai-utils>=0.5.0",
"valohai-yaml>=0.43.0",
]
[project.optional-dependencies]
test = [
"pytest-cov~=4.0",
"pytest~=7.0",
"requests-mock~=1.10",
]
[project.scripts]
vh = "valohai_cli.cli:cli"
[project.urls]
Homepage = "https://github.com/valohai/valohai-cli"
[tool.hatch.version]
path = "valohai_cli/__init__.py"
[tool.hatch.build.targets.sdist]
include = [
"/valohai_cli",
]
[tool.mypy]
exclude = ".*test.*"
[[tool.mypy.overrides]]
module = "valohai.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "requests_toolbelt.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "requests_mock.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
norecursedirs = [".git", ".tox"]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]
[tool.ruff]
target-version = "py38"
line-length = 110
preview = true
[tool.ruff.format]
quote-style = "preserve"
[tool.ruff.lint]
ignore = [
"E501",
"B904",
"B905",
"ANN101", # Missing type annotation for `self` in method
"ANN102", # Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed
"RET504", # Unnecessary variable assignment before `return` statement
"SIM105", # Use `contextlib.suppress(TypeError)` instead of try-except-pass
]
select = [
"ARG",
"ANN", # annotations
"B", # bugbear
"C", # complexity & comprehensions
"COM812", # trailing comma
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"SIM", # simplify
"UP", # pyupgrade
"W", # pycodestyle
# A bunch of NURSERY-level (as of Ruff 287) stylistic codes we need to explicitly enable
"E111",
"E112",
"E113",
"E114",
"E115",
"E116",
"E117",
"E201",
"E202",
"E203",
"E211",
"E221",
"E222",
"E223",
"E224",
"E225",
"E226",
"E227",
"E228",
"E231",
"E251",
"E252",
"E261",
"E262",
"E266",
"E271",
"E272",
"E273",
"E274",
"E275",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "ANN"]