-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
91 lines (78 loc) · 2.07 KB
/
Copy pathpyproject.toml
File metadata and controls
91 lines (78 loc) · 2.07 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
85
86
87
88
89
90
91
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ryhti_client"
version = "0.1.0"
[tool.hatch.build.targets.wheel]
packages = ["database", "lambdas/ryhti_client/ryhti_client"]
[tool.pytest.ini_options]
pythonpath = [
"."
]
env_files = [
".env.test",
".env"
]
[tool.ruff]
target-version = "py313"
exclude = ["migrations"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"D10", # missing docstring
"D415", # missing period at end of docstring
"D205", # Don't require a single line summary
"FBT001", # boolean
"FBT002", # boolean
"FIX002", # allow TODO comments
"TD002", # TODO author not mandatory
"RET504", # Allow variable assignment before return
"ICN001", # Allow imports without alias even when unconventional
"W191", # Conflicts with formatter.
"E111", # Conflicts with formatter.
"E114", # Conflicts with formatter.
"E117", # Conflicts with formatter.
"D206", # Conflicts with formatter.
"D300", # Conflicts with formatter.
"Q000", # Conflicts with formatter.
"Q001", # Conflicts with formatter.
"Q002", # Conflicts with formatter.
"Q003", # Conflicts with formatter.
"COM812", # Conflicts with formatter. Let formatting add the trailing comma
"COM819",
"ISC002",
"TC003",
]
unfixable = [
"F401", # unused imports
"F841", # unused variables
"T201", # print statements
"EM101", # Strings in Exceptions
"EM102", # f-strings in Exceptions
"EM103", # .format in Exceptions
"PT018"
]
[tool.ruff.lint.isort]
known-first-party = ["database", "ryhti_client"]
combine-as-imports = true
split-on-trailing-comma = false
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"test/*" = [
"S101", # allow asserts in tests
"ARG001", # allow unused arguments(fixtures) in test functions
]
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.mypy]
mypy_path = "./,./lambdas/ryhti_client"
exclude = [
"migrations"
]
explicit_package_bases = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = ["pygml.*"]
follow_untyped_imports = true