-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
93 lines (82 loc) · 2.09 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]
name = "aoc"
version = "1.2"
description = "Yearly AOC contest"
authors = ["Vasile-Hij <vasile.hijs@gmail.com>"]
license = "MIT"
readme = "README.md"
[tool.poetry.dependencies]
python = "^3.11"
ipython = "^8.18.1"
ipdb = {version="0.*", optional = true}
black = "^23.3.0"
setuptools = "^69.0.2"
poetry-plus = "^0.11.4"
ruff = "^0.1.4"
python-dateutil = "^2.8.2"
decorator = "^5.1.1"
twine = "^4.0"
pre-commit = "^3.1.0"
watchdog = {extras = ["watchmedo"], version = "^3.0.0"}
browser-cookie3 = "^0.19.1"
cssselect = "^1.2.0"
lxml = "^4.9.3"
termcolor = "^2.3"
[tool.black]
line-length = 100
target-version = ["py311"]
skip-string-normalization = true
[tool.ruff]
line-length = 100
extend-select = ['Q']
flake8-quotes = {inline-quotes = 'single', multiline-quotes = 'double'}
select = [
"E", # pycodestyle
"W", # pycodestyle
"F", # pyflakes
"C", # mccabe (complexity)
"PL", # pylint. Activating this activates everything: PLC PLE PLR etc
"YTT", # flake8-2020
"T10", # ipdb
"DJ", # flake8-django
"EXE", # flake8-executable
"ICN", # flake8-import-conventions
"PYI", # flake8-pyi
"TID", # flake8-tidy-imports
"INT", # flake8-gettext
"NPY", # NumPy-specific rules
"PGH", # pygrep-hooks
"PD", # pandas-vet
"RSE", # flake8-raise
"PIE", # flake8-pie - easy
"ISC", # flake8-implicit-str-concat - easy
"INP", # flake8-no-pep420
"C4", # flake8-comprehensions
"RUF", # ruff specific rules
"SIM", # flake8-simplify
"PTH", # flake8-pathlib
# "BLE", # flake8-blind-except - easy
"A", # flake8-builtin
]
ignore = [
"E501", # line too long
]
exclude = [
".venv",
"venv"
]
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 15
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[virtualenvs]
create = true
in-project = false
[tool.ipdb]
contenxt = 10
# [tool.poetry.extras] # extras - additional functions of your package during runtime.
# debug = ["ipdb"]
[tool.poetry.dev-dependencies] # during development
ipdb = {version="0.*", optional = true}