-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
201 lines (180 loc) · 4.72 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[tool.poetry]
name = "caumim"
version = "0.0.0"
description = "Caumim"
authors = ["Matthieu Doutreligne <[email protected]>"]
license = "EUPL-v1.2"
readme = "README.md"
repository = "https://gitlab.com/strayMat/caumim"
homepage = "https://gitlab.com/strayMat/caumim"
include = ["bin"]
keywords = []
classifiers = [
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python",
"Topic :: Software Development :: Libraries :: Python Modules",
]
# [tool.poetry.urls]
# Changelog = "https://gitlab.com/strayMat/caumim/releases"
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
# Project-Specific
python-dotenv = "^0.20.0"
click = "^8.0.4"
ibis-framework = {extras = ["duckdb"], version = "^5.0.0"}
polars = "^0.17.2"
ipdb = "^0.13.13"
loguru = "^0.7.0"
connectorx = ">=0.2.0a3"
scikit-learn = "1.1.3"
matplotlib = "^3.7.1"
seaborn = "^0.12.2"
zepid = "^0.9.1"
numpy = "1.23.5"
forestplot = "^0.3.1"
#dowhy = "^0.9.1"
#cython = "^0.29.34"
econml = "^0.14.0"
dowhy = "^0.9.1"
schemdraw = "^0.16"
[tool.poetry.group.notebooks.dependencies]
# Jupyter Notebook
jupyter = "^1.0.0"
matplotlib = "^3.5.1"
jupytext = "^1.13.7"
[tool.poetry.group.documentation]
optional = true
[tool.poetry.group.documentation.dependencies]
# Documentation
importlib-metadata = { version = "^6" }
myst-parser = { version = "^1" }
pygments = { version = "^2.11.2" }
sphinx = { version = ">=4,<6" }
pydata-sphinx-theme = { version = "^0" }
sphinx-click = { version = "^4" }
sphinxcontrib-bibtex = "^2.5.0"
docutils = "^0.19"
[tool.poetry.group.dev.dependencies]
# Testing
pytest = "^7.1.1"
pytest-cov = "^3.0.0"
pytest-mock = "^3.7.0"
pytest-sugar = "^0.9.4"
# Décommenter pour avoir des tests parallèles
# pytest-xdist = "^2.5.0"
# Linting
## Type Checking and Data Validation
mypy = "^0.942" # Static type checker
## Code formatting
black = "^22.1.0" # see: https://black.readthedocs.io/en/stable/editor_integration.html
## Code quality
isort = "^5.10.1"
pylint = "^2.13.0"
## Detect secrets
detect-secrets = "^1.4.0"
## Security Issues
bandit = "^1.7.4"
## Doc string
interrogate = "^1.5.0"
## Automation and management
pre-commit = "^2.17.0"
## Upgrade syntax for newer versions of Python
pyupgrade = "^3.3.1"
## Linter for YAML files
yamllint = "1.29.0"
## various convenient hooks
pre-commit-hooks = "^4.4.0"
py-spy = "^0.3.14"
pyspy = "^0.1.1"
[tool.poetry.scripts]
cli = "bin.cli:cli"
#################################################################################
# Tooling configs #
#################################################################################
[tool.bandit]
exclude_dirs = ["tests/", ".*$"]
[tool.black]
line-length = 79
include = '\.pyi?$'
[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
parallel = true
source = ["caumim"]
[tool.coverage.report]
exclude_lines =[
"pragma: no cover",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
]
fail_under = 70
show_missing = true
skip_covered = true
[tool.interrogate]
verbose = 0
quiet = false
fail-under = 0
color = true
[tool.isort]
profile = "black"
atomic = "true"
combine_as_imports = "true"
line_length = 79
[tool.mypy]
disallow_untyped_defs = false
files = ["caumim/*.py","bin/*.py"]
exclude = [
"notebooks/config.py",
'^(notebooks/.*\.py)$'
]
ignore_missing_imports = true
pretty = true
show_column_numbers = true
show_error_context = true
show_error_codes = true
[tool.pylint.main]
ignore-patterns = '^(notebooks/.*\.py)$'
[tool.pylint.basic]
good-names-rgxs = ["^Test_.*$", "logger"]
[tool.pylint.messages_control]
disable = [
# Explicitly document only as needed
"missing-module-docstring",
"missing-class-docstring",
"missing-function-docstring",
# Black & Flake8 purview
"line-too-long",
"c-extension-no-member",
# Ignore errors resulting from Jupyter notebook-style programming
"invalid-name",
"redefined-outer-name",
"reimported",
"ungrouped-imports",
"wrong-import-order",
"wrong-import-position",
]
[tool.pylint.reports]
output-format = "colorized"
[tool.pylint.similarities]
# Ignore imports when computing similarities.
ignore-imports = "yes"
[tool.cruft]
skip = [
".git",
"README.md",
]
[tool.pytest.ini_options]
addopts = ["-rfsxX", "-l", "--tb=short", "--strict-markers", "-vv"]
xfail_strict = "true"
testpaths = ["tests",]
norecursedirs = [".*", "*.egg", "build", "dist",]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"