-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpyproject.toml
93 lines (79 loc) · 2.1 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
[tool.poetry]
authors = ["Andrei.Aksionov"]
description = "Python implementaiton of algorithms presented on FrontendMasters.com by ThePrimeagen."
license = "MIT"
name = "thelastalgorithmscourseyouwillneed"
packages = [{include = "course"}]
readme = "README.md"
version = "0.1.0"
[tool.poetry.dependencies]
python = "^3.8"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
black = {version = "*", extras = ["jupyter"]}
darglint = "~1.8.1"
pre-commit = "~3.2.0"
ruff = "0.0.259"
# ---------------------------------------------- Tests -----------------------------------------------
[tool.poetry.group.test.dependencies]
pytest = "~7.2.2"
pytest-cov = "~4.0.0"
[tool.pytest.ini_options]
markers = [
"arrays",
"doubly_linked_list",
"graphs",
"heap",
"maps",
"quick_sort",
"recursion",
"search",
"sort",
"trees",
]
python_files = "*_test.py"
testpaths = ["tests"]
# -------------------------------------- Linting and Formatting --------------------------------------
[tool.ruff]
ignore = [
"B905", # zip() without an explicit strict= parameter
"N812", # Lowercase {name} imported as non-lowercase {asname}
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable
"PT023", # use @pytest.mark.asyncio() over @pytest.mark.asyncio
"SIM110", # Use `return any(item == needle for item in haystack)` instead of `for` loop
"W605", # invalid-escape-sequence
]
line-length = 120
select = [
"B",
"E",
"F",
"N",
"PLR",
"PT",
"SIM",
"W",
]
target-version = "py38"
[tool.ruff.pydocstyle]
convention = "pep257"
[tool.ruff.per-file-ignores]
# D102 - Missing docstring in public method
# S101 - Use of `assert` detected
"*_test.py" = ["D102", "S101"]
# D104 - missing docstring in public method
# F401 - imported but unused
"__init__.py" = [
"F401",
"D104",
]
[tool.isort]
profile = "black"
[tool.black]
line_length = 120
# -------------------------------------- Build --------------------------------------
[build-system]
build-backend = "poetry.core.masonry.api"
requires = ["poetry-core"]