-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
63 lines (55 loc) · 1.89 KB
/
pyproject.toml
File metadata and controls
63 lines (55 loc) · 1.89 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
[project]
name = "hn-python"
description = "My submissions to HN challenges"
authors = [
{name = "Damien Debin",email = "damien.debin@gmail.com"}
]
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
]
[dependency-groups]
dev = [
"black (>=25.9.0,<26.0.0)",
"pytest (>=8.4.2,<9.0.0)",
"ruff (>=0.13.3,<0.14.0)"
]
[build-system]
requires = ["poetry-core>=2.0.0,<3.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
package-mode = false
[tool.black]
line-length = 120
target-version = ['py313']
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"A001", # Variable `...` is shadowing a Python builtin
"BLE001", # Do not catch blind exception: `Exception`
"CPY001", # Missing copyright notice at top of file
"D1",
"D211", # `incorrect-blank-line-before-class` (D203) and `no-blank-line-before-class` (D211) are incompatible
"D212", # `multi-line-summary-first-line` (D212) and `multi-line-summary-second-line` (D213) are incompatible
"DOC201", # `return` is not documented in docstring
"D417", # Missing argument descriptions in the docstring for ...
"EM101", # Exception must not use a string literal, assign to variable first
"ERA001", # Found commented-out code
"FBT001", # Boolean-typed positional argument in function definition
"FBT003", # Boolean positional value in function call
"N8",
"PLW0603", # Using the global statement to update `...` is discouraged
"PLR2004", # Magic value used in comparison
"S101", # Use of `assert` detected
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"TRY002", # Create your own exception
"TRY003", # Avoid specifying long messages outside the exception class
"TRY301", # Abstract `raise` to an inner function
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.lint.pylint]
max-args = 8
max-locals = 20