-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
159 lines (144 loc) · 3.41 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
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
[build-system]
requires = ["setuptools>=62.6"]
build-backend = "setuptools.build_meta"
[project]
name = "morai"
description = "A mortality viewer"
dynamic = ["version"]
authors = [{ name = "John Koestner", email = "[email protected]" }]
readme = 'README.md'
license = { file = 'LICENSE.md' }
requires-python = '>=3.9'
dependencies = [
"arrow>=1.3.0",
"colorama>=0.4.6",
"dash-ag-grid>=31.0.1", # only for dash
"dash-bootstrap-components>=1.5.0", # only for dash
"dash-extensions>=1.0.14", # only for dash
"graphviz>=0.20.1", # only for lightgbm
"gunicorn>=21.2.0", # only for dash
"jupyterlab>=4.0.10",
"lightgbm>=4.3.0", # only for lightgbm
"numpy>=1.24.4",
"pandas>=2.0.3",
"plotly>=5.19.0",
"polars>=0.20.9",
"pyarrow>=14.0.2",
"pymort>=2.0.1",
"scikit-learn>=1.4",
"seaborn>=0.13.2",
"statsmodels>=0.14.1",
"uv>=0.1.36",
"xgboost>=2.0.3", # only for xgboost
]
[project.optional-dependencies]
dev = [
"black>=23.12.1",
"isort>=5.13.2",
"jupyterlab-code-formatter>=2.2.1",
"jupyter-resource-usage>=1.0.1",
"pytest>=7.4.0",
"pytest-cov>=4.1.0",
"ruff>=0.1.11",
"sphinx>=6.0, <7.2",
"sphinx_rtd_theme>=1.2.2",
]
[project.scripts]
morai = "morai.utils.cli:cli" # the entry points provide console scripts at command line
[project.urls]
homepage = "https://github.com/jkoestner/morai"
repository = "https://github.com/jkoestner/morai"
# TODO: Remove after setuptools support is dropped.
[tool.setuptools]
include-package-data = true # include files from MANIFEST.in
[tool.setuptools.packages.find]
exclude = ["tests*"]
[tool.setuptools.dynamic]
version = { attr = "morai.version.version" }
# coverage config file for pytest-cov coming from
# https://pytest-cov.readthedocs.io/en/latest/
# run using pytest --cov=morai --cov-report=html
[tool.coverage.run]
data_file = "docs/coverage/.coverage"
omit = [
"morai/dashboard/*", # omit everything in /dashboard
"__init__.py", # omit init files
]
[tool.coverage.html]
directory = "docs/coverage/htmlcov"
[tool.ruff]
line-length = 88
fix = false
unfixable = []
extend-include = ["*.ipynb"]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# isort
"I",
# pydocstyle
"D",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# flake8-quotes
"Q",
# flake8-debugger
"T10",
# flake8-gettext
"INT",
# pylint
"PL",
# misc lints
"PIE",
# flake8-pyi
"PYI",
# tidy imports
"TID",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# comprehensions
"C4",
# pygrep-hooks
"PGH",
# Ruff-specific rules
"RUF",
# flake8-bandit: exec-builtin
"S102",
# numpy-legacy-random
"NPY002",
# Perflint
"PERF",
# flynt
"FLY",
# flake8-logging-format
"G",
]
ignore = [
### Intentionally disabled
# logging statement uses f-string
"G004",
# ignore __init__ docstring
"D107",
# these are conflicting errors
"D203",
"D212",
# ignore == False vs is False due to pandas series
"E712",
"ISC001",
# ruff too many branches and too many statements
"PLR0912",
"PLR0913",
"PLR0915",
# ruff ignore magic values
"PLR2004",
]
[tool.ruff.lint]
exclude = ["*.ipynb"]
pylint.max-args = 10