-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
136 lines (120 loc) · 2.95 KB
/
Copy pathpyproject.toml
File metadata and controls
136 lines (120 loc) · 2.95 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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[tool.poetry]
name = "load_forecasting"
version = "0.0.1"
description = "Submission for take-home assignment"
authors = ["Sankalp <sankalp.gilda@gmail.com>"]
readme = "README.md"
packages = [{include = "*.py"}]
[tool.poetry.dependencies]
python = "~3.10"
matplotlib = "~3.5"
pandas = "~2.0"
scikit_learn = "~1.3"
seaborn = "~0.12"
sktime = "~0.21"
statsmodels = "~0.14"
llvmlite = "~0.40"
shap = "~0.42"
xgboost = "~1.7"
optuna = "~3.0"
mlflow = "^2.6.0"
[tool.poetry.dev-dependencies]
# Add your dev dependencies here, e.g.
black = "~23.7"
ruff = "~0.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 79
target-version = ["py38", "py39", "py310", "py311"]
[tool.ruff]
target-version = 'py38'
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", # Error
"F", # pyflakes
"I", # isort
"ISC", # flake8-implicit-str-concat
"N", # pep8-naming
"PGH", # pygrep-hooks
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"S", # bandit
"SIM", # flake8-simplify
"TRY", # tryceratops
"UP", # pyupgrade
"W", # pycodestyle warnings
"YTT", # flake8-2020
]
exclude = [
"migrations",
"__pycache__",
"manage.py",
"settings.py",
"env",
".env",
"venv",
".venv",
]
ignore = [
"B905", # zip strict=true; remove once python <3.10 support is dropped.
"C901", # function is too complex; overly strict
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"D200",
"D401",
"E402",
"E501", # line length handled by black
"F401",
"N802", # Function name should be lowercase; overly strict
"N803", # Argument name should be lowercase; overly strict
"N806", # Variable in function should be lowercase; overly strict
"N816", # Variable in class scope should not be mixedCase; overly strict
"PGH003", # Use of "eval"; overly strict
"SIM115", # open-file-with-context-handler; overly strict
"TRY003", # Avoid specifying messages outside exception class; overly strict, especially for ValueError
]
line-length = 79 # Must agree with Black
[tool.ruff.isort]
order-by-type = true
relative-imports-order = "closest-to-furthest"
extra-standard-library = ["typing"]
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = []
[tool.ruff.flake8-bugbear]
extend-immutable-calls = [
"chr",
"typer.Argument",
"typer.Option",
]
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.ruff.per-file-ignores]
"tests/*.py" = [
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D106",
"D107",
"S101", # use of "assert"
"S102", # use of "exec"
"S106", # possible hardcoded password.
"PGH001", # use of "eval"
]
[tool.ruff.pep8-naming]
staticmethod-decorators = [
"pydantic.validator",
"pydantic.root_validator",
]