-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (64 loc) · 1.87 KB
/
pyproject.toml
File metadata and controls
84 lines (64 loc) · 1.87 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
[project]
name = "roughly"
version = "0.1.0"
description = "A Roughtime client library for Python"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["cryptography>=46.0.3"]
[project.optional-dependencies]
cli = ["click>=8.3.1"]
[project.scripts]
roughly = "roughly.cli:cli"
[dependency-groups]
dev = [
"pytest>=9.0.2",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.0.0",
"ruff>=0.14.10",
]
[tool.ruff]
include = ["roughly/*"]
line-length = 100
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001", # variable shadowing a built-in
"A002", # argument shadowing a built-in
"ANN401", # no Any
"ASYNC109", # async function with timeout parameter
"TC006", # runtime-cast-value, i think it looks bad
"TRY003", # error messages in exceptions
"TD002",
"TD003",
"FIX002",
# these are disabled because i can't configure what 'public' means
"D100", # missing docstring in public module
"D101", # missing docstring in public class
"D102", # missing docstring in public method
"D103", # missing docstring in public function
"D105", # missing docstring in magic method
"D107", # missing docstring in __init__
# disabled because of `ruff format`
"COM812",
"ISC001",
"EM101", # use of string literals in exceptions
"EM102", # use of f-string literals in exceptions
"SLF001", # private member access
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*" = [
"INP001", # implicit namespace packeges are "ok"
"S101", # allow asserts
]
[tool.ruff.lint.pydocstyle]
convention = "google" # Accepts: "google", "numpy", or "pep257".
[tool.uv.build-backend]
module-root = ""
[tool.coverage.report]
exclude_also = ["pragma: no cover", "if TYPE_CHECKING:"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "DEBUG"
[build-system]
requires = ["uv_build>=0.9.27,<0.10.0"]
build-backend = "uv_build"