-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
96 lines (82 loc) · 2.51 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
94
95
96
[tool.poetry]
name = "codingcontest"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
gitpython = ">=3.1.29"
jupyterlab = ">=3.6.1"
loguru = ">=0.6.0"
matplotlib = ">=3.6.2"
numpy = ">=1.23.4"
pandas = ">=1.5.1"
python-dotenv = ">=0.21.0"
requests = ">=2.28.1"
scikit-learn = ">=1.1.3"
seaborn = ">=0.12.1"
tqdm = ">=4.64.1"
typer = ">=0.7.0"
xgboost = ">=1.7.4"
[tool.poetry.group.dev.dependencies]
black = ">=22.10.0"
mypy = ">=0.982"
pdbpp = ">=0.10.3"
ruff = ">=0.0.259"
types-requests = ">=2.28.11.16"
types-tqdm = ">=4.65.0.1"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
next-level = 'codingcontest.next_level:run'
submit-solutions = 'codingcontest.submit_solutions:run'
[tool.black]
line-length = 99
[tool.mypy]
files = ["codingcontest"]
python_version = "3.10"
warn_unreachable = true
warn_return_any = true
disallow_untyped_defs = true
show_error_codes = true
ignore_missing_imports = false
exclude = [".git/", ".venv/", "__pycache__"]
follow_imports = "normal"
pretty = true
warn_incomplete_stub = true
[tool.ruff]
line-length = 99
target-version = "py311"
select = ["ALL"]
ignore = [
"ANN101", # dont require self typing
"ANN102", # dont require cls typing
"COM812", # dont add trailing commas always
"D100", # dont force docstring presence
"D101", # dont force docstring presence
"D102", # dont force docstring presence
"D103", # dont force docstring presence
"D104", # dont force docstring presence
"D105", # dont force docstring presence
"D106", # dont force docstring presence
"D203", # conflict with other rule, this silences the warning
"D213", # conflict with other rule, this silences the warning
"ERA", # commenting out code is ok
"G004", # allow f-string in logging
"S101", # allow asserts
"TRY400", # logger.error is not critical with loguru
]
unfixable = [
"ARG", # Don't fix any "unused arguments" errors
"B007", # Don't automatically prefix loop control variable with "_" if unused
"ERA", # Don't delete commented code
"F401", # Don't remove unused imports
"F504", # Don't remove unused % format arguments
"F522", # Don't remove unused .format arguments
"F841", # Don't remove unused variables automatically
]
[tool.ruff.per-file-ignores]
"codingcontest/level*/*.py" = ["ANN", "D", "E501", "PGH003", "PLR"]
[tool.ruff.isort]
known-first-party = ["codingcontest"]