Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
84 lines (75 loc) · 1.96 KB
/
Copy pathpyproject.toml
File metadata and controls
84 lines (75 loc) · 1.96 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 = "fastid-client"
version = "0.1.0"
requires-python = ">=3.12"
dependencies = [
"httpx>=0.28.1",
"pydantic>=2.13.4",
]
[tool.ruff.lint]
select = [
"ALL"
]
ignore = [
"D", # docstrings
"DOC", # docstrings
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `var`
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"W191", # indentation contains tabs
"RUF012", # mutable class attributes should be annotated with `typing.ClassVar`
"S101", # use of assert detected
"TRY003", # avoid specifying long messages outside the exception class
"PLR6301", # method could be a function, class method, or static method
# Handled by formatter later
"ISC001", # single line implicit string concatenation
"COM812", # missing trailing comma
"E501", # line too long
"PLR0913"
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = [
"A002",
"ARG005",
"EM101",
"EM102",
"PLC0415",
"PLR2004",
"PT018",
"S105",
"S106",
"SLF001",
]
[tool.mypy]
strict = true
pretty = true
python_version = "3.12"
ignore_missing_imports = true
install_types = true
non_interactive = true
plugins = ["pydantic.mypy"]
# from https://blog.wolt.com/engineering/2021/09/30/professional-grade-mypy-configuration/
disallow_untyped_defs = true
no_implicit_optional = true
check_untyped_defs = true
warn_return_any = true
show_error_codes = true
warn_unused_ignores = true
disallow_incomplete_defs = true
disallow_untyped_decorators = true
disallow_any_unimported = false
[dependency-groups]
dev = [
"fastapi[all]>=0.137.2",
"mypy>=2.1.0",
"pydantic-settings>=2.14.2",
"pytest>=9.1.1",
"pytest-asyncio>=1.4.0",
"pytest-cov>=7.1.0",
"ruff>=0.15.18",
]
[tool.pytest.ini_options]
addopts = "--cov=fastid_client --cov-branch --cov-report=term-missing --cov-fail-under=100"
asyncio_mode = "auto"
pythonpath = ["."]
testpaths = ["tests"]