-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
65 lines (57 loc) · 1.48 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
[tool.poetry]
name = "leetcode-py"
version = "0.1.0"
description = "LeetCode with Python"
authors = ["Flynn <[email protected]>"]
package-mode = false
[tool.poetry.dependencies]
python = "~3.11"
[tool.poetry.group.dev.dependencies]
black = "==24.4.2"
pytest = "^7.4.0"
pre-commit = "^3.7.1"
ruff = "==0.4.9"
mypy = "^1.10.0"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.black]
include = '\.pyi?$'
line-length = 120
skip-string-normalization = true
target-version = ['py311']
preview = true
extend-exclude = ".*_pb2.*\\.py"
[tool.ruff]
line-length = 120
indent-width = 4
target-version = "py311"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
"UP", # pyupgrade
"PL", # pylint
]
ignore = [
"E501", # line too long, handled by black
"E711", # Comparison to None should be cond is None
"E712", # Comparison to True should be cond is True or if cond:
"E741", # ambiguous variable name
"B008", # do not perform function calls in argument defaults
"C901", # too complex
"PLR0913", # too many arguments to function call
"B028", # no-explicit-stacklevel
]
[tool.ruff.lint.per-file-ignores]
"**/test_solution.py" = [
"PLR2004", # Magic value used in comparision
]
[tool.ruff.format]
quote-style = "single"
indent-style = "space"
line-ending = "auto"