-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
114 lines (108 loc) · 2.69 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[tool.poetry]
name = "graph-theory"
version = "0.1.1"
description = ""
authors = ["Valdemar Emil Otte Petersen <[email protected]>"]
readme = "README.md"
packages = [{include = "graph_theory"}]
[tool.poetry.dependencies]
python = "^3.10"
black = "^23.10.1"
ruff = "^0.1.4"
mypy = "^1.6.1"
rich = "^13.6.0"
pytest = "^7.4.3"
networkx = "^3.2.1"
matplotlib = "^3.8.2"
numpy = "^2.1.2"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 100
[tool.ruff]
select = [
"C",
"E",
"F",
"W",
"B",
"I",
"C90",
"N",
"D",
"UP",
"YTT",
"ANN",
"S",
"BLE",
"FBT",
"A",
"COM",
"C4",
"DTZ",
"T10",
"ISC",
"ICN",
"INP",
"PIE",
"PT",
"RSE",
"RET",
"SLF",
"SIM",
"TID",
"ARG",
"PTH",
"PLE",
"PLR",
"PLW",
"TRY",
"RUF"
]
ignore = [
"E712", # comparison to True/False, we ignore because we use sqlalchemy
"ANN101", # missing type for self
"ANN102", # missing type for cls
"ANN201", # missing return type
"ANN202", # missing return type
"ANN206", # missing return type
"D100", # missing docstring
"D101", # missing docstring
"D102", # missing docstring
"D103", # missing docstring,
"D104", # missing docstring,
"D105", # missing docstring in magic method,
"D106", # missing docstring in nested class,
"D107", # missing docstring in __init__,
"D200", # one-line docstring should fit on one line
"D203", # 0 blank line required before class docstring,
"D204", # 1 blank line required after class docstring,
"D212", # multi-line docstring summary should start at the first line,
"D213", # multi-line docstring summary should start at the second line,
"D300", # use triple docstring
"D407", # missing dashed underline after section
"D401", # first line should be in imperative mood,
"D417", # missing argument descriptions in the docstring,
"N802", # function name "X" should be lowercase
"N803", # argument name "X" should be lowercase
"N806", # variable "X" in function should be lowercase
"S101", # use of assert,
"PLR2004", # magic value used in comparison
"PT012", # ptest.raises should contain a simple statement
"TRY201", # missing exception type
"TRY003", # Avoid specifying long messages outside the exception class,
"FBT002", # Boolean default value in function definition,
"FBT001", # Boolean positional arg in function definition
]
line-length = 100
exclude = [
".venv",
"env",
"venv",
".git",
"__pycache__",
".github",
".mypy_cache",
".pytest_cache",
]