-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
151 lines (141 loc) · 4.03 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
[project]
name = "oreum_copula"
version = "1.2.1"
description = "Oreum Industries Copula Example"
readme = "README.md"
license = {file = "LICENSE.md"}
authors = [{ name = "Jonathan Sedar", email = "[email protected]" },]
requires-python = "==3.12.*"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Financial and Insurance Industry",
"License :: Other/Proprietary License",
"Natural Language :: English",
"Operating System :: MacOS",
"Operating System :: Unix",
"Private :: Do Not Upload",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Visualization",
]
dependencies = [
"ipywidgets",
"jupyterlab",
"pyprojroot",
"rich",
"tqdm",
"watermark",
]
[project.optional-dependencies]
dev = [
"bandit",
"hypothesis",
"interrogate",
"pipdeptree",
"pip-licenses",
"playwright",
"pooch",
"pre-commit",
"pytest",
"ruff"
]
# NOTE: separated out to allow Makefile dev to get from pypi (dev-js gets local)
oreum_core_pypi = [
"oreum_core[pymc]==0.10.1", # the latest package using osx-arm64 Accelerate
]
[project.urls]
homepage = "https://github.com/oreum-industries/oreum_copula"
[tool.bandit]
exclude_dirs = ["notebooks"]
skips = ["B101"] # skip asserts
# tests = ["B201", "B301"] # run all tests
[tool.interrogate]
ignore-init-method = false
ignore-init-module = true # doesnt work with precommit see https://github.com/econchick/interrogate/issues/100
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 80
exclude = ["assets", "build", "dev", "notebooks"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
verbose = 1
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
generate-badge = "assets/img/"
badge-format = "svg"
badge-style = "flat"
[tool.ruff] # settings: https://docs.astral.sh/ruff/settings/
indent-width = 4
line-length = 88
target-version = "py312"
extend-exclude = [
"__pycache__",
"build",
"dev",
"lib",
"lib64",
"sdist",
"var",
"wheels",
]
[tool.ruff.lint]
# fixable = ["ALL"] # allow fix for all enabled rules (when `--fix`) provided
unfixable = ["B"]
# allow unused underscore-prefix vars
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
exclude = ["notebooks/archive/*.ipynb"]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"W", # pycodestyle warnings
"B9", # legacy from .flake8 config
]
ignore = [
"B026", # let me do star unpacking
"C405", # let me use set()
"C408", # let me use dict()
"C416", # let me use list comprehensions
"C419", # let me use list comprehensions
"C901", # too complex
"E203", # legacy from .flake8 config
"E266", # legacy from .flake8 config
"E501", # line too long
"E712", # legacy from .flake8 config
"F401", # legacy from .flake8 config
"F403", # legacy from .flake8 config
"W291", # legacy from .flake8 config
"W293", # legacy from .flake8 config
"W605", # legacy from .flake8 config
]
[tool.ruff.lint.per-file-ignores]
"*.ipynb" = ["E402", "B011"]
"config_slides.py" = ["F821"]
"config_webpdf.py" = ["F821"]
"config_pdf.py" = ["F821"]
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
quote-style = "double"
skip-magic-trailing-comma = true
exclude = ["*.ipynb"]
[tool.ruff.lint.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 = []
split-on-trailing-comma=false