-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
70 lines (64 loc) · 1.77 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
[project]
name = "hype"
version = "0.0.1"
description = ""
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"pydantic>=2.0",
"docstring-parser>=0.16",
"fastapi>=0.100.0",
"httpx>=0.27.2",
"python-multipart",
"click>=8.0.0",
"uvicorn>=0.27.0",
]
[project.scripts]
hype = "hype.cli:cli"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.uv]
dev-dependencies = [
"pytest-mock>=3.14.0",
"pytest>=8.3.3",
"ruff>=0.7.0",
]
[tool.pylint.main]
disable = [
"C0114", # Missing module docstring
"C0115", # Missing class docstring
"C0116", # Missing function or method docstring
"C0301", # Line too long
"C0413", # Import should be placed at the top of the module
"R0903", # Too few public methods
"W0622", # Redefining built-in
]
good-names = ["id", "input"]
[tool.ruff]
src = ["src", "tests"]
lint.select = [
"E", # pycodestyle error
"F", # Pyflakes
"I", # isort
"W", # pycodestyle warning
"UP", # pyupgrade
"S", # flake8-bandit
"B", # flake8-bugbear
"ANN", # flake8-annotations
]
lint.ignore = [
"E501", # Line too long
"S101", # Use of `assert` detected"
"S113", # Probable use of requests call without timeout
"B008", # Do not perform function call in argument defaults
"ANN001", # Missing type annotation for function argument
"ANN002", # Missing type annotation for `*args`
"ANN003", # Missing type annotation for `**kwargs`
"ANN101", # Missing type annotation for self in method
"ANN102", # Missing type annotation for cls in classmethod
"ANN401", # Dynamically typed expressions are disallowed
"UP037", # Remove quotes from type annotation
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ANN"]