-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
86 lines (77 loc) · 1.66 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
[tool.poetry]
name = "bsag"
version = "0.1.0"
description = "A Better Simple AutoGrader"
authors = ["CS 61B Staff <[email protected]>"]
readme = "README.md"
packages = [
{ include = "bsag" }
]
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^1.10.7"
pytz = "*"
PyYAML = "^6.0"
loguru = "^0.7.0"
devtools = "^0.11.0"
pluggy = "^1.0.0"
[tool.poetry.group.dev.dependencies]
black = "*"
pylint = "*"
mypy = "*"
types-PyYAML = "^6.0"
types-pytz = "*"
ruff = "^0.0"
pre-commit = "^3.1.1"
pyupgrade = "^3.2"
loguru-mypy = "^0.0.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
color = true
line-length = 120
target-version = ['py310']
preview = true
[tool.isort]
line_length = 120
known_first_party = 'bsag'
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
profile = "black"
[tool.mypy]
python_version = "3.10"
show_error_codes = true
strict = true
plugins = ["pydantic.mypy"]
# Pylance strict and mypy conflict throughought (error vs ignore) with partial unknowns
warn_unused_ignores = false
[tool.pylint.'MESSAGES CONTROL']
max-line-length = 120
good-names = "f,i,j,k,v"
extension-pkg-whitelist = ["pydantic", "loguru"]
disable = "C0114, C0115, C0116, C0103, R0903, R0913, R0914"
[tool.ruff]
fix = true
line-length = 120
extend-ignore = [
"PLR0913",
]
extend-select = [
"W",
"I", # isort
"UP", # pyupgrade
"A", # flake8-builtins
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"ISC", # flake8-implicit-string-concat
"EM", # flake8-errmsg
"PIE",
"Q", # flake8-quotes
"SIM", # flake8-simplify
"PTH", # flake8-pathlib
"PL",
"RUF",
]