-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
74 lines (67 loc) · 1.36 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
[tool.poetry]
name = "pygnucash"
version = "0.1.0"
description = "Python library to read GnuCash SQL files"
authors = ["Matthias Braun <[email protected]>"]
license = "BSD-1-Clause"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = "^3.12"
[tool.poetry.group.dev.dependencies]
ruff = "^0.9.5"
mypy = "^1.15.0"
types-requests = "^2.32.0.20241016"
[tool.poetry.group.examples.dependencies]
requests = "^2.32.3"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.ruff]
line-length = 88
[tool.ruff.lint]
preview = true
select = [
"ANN",
"ARG",
"ARG",
"B",
"C4",
"DTZ",
"E",
"EXE",
"F",
"FA",
"FLY",
"FURB",
"I",
"N",
"PIE",
"PLW1514",
"PYI",
"RET",
"RUF",
"S",
"SIM",
"SLOT",
"UP",
"W",
"YTT",
]
ignore = [
"ANN401", # any-type
"ARG002", # unused-method-argument
"FURB101", # read-whole-file
"FURB103", # write-whole-file
"FURB113", # repeated-append
"RET504", # unnecessary-assign
"S101", # assert
"S110", # try-except-pass
"S404", # suspicious-subprocess-import
"S603", # subprocess-without-shell-equals-true
"SIM105", # suppressible-exception
"SIM108", # if-else-block-instead-of-if-exp
"SIM113", # enumerate-for-loop
]
[tool.mypy]
strict = true