-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
140 lines (109 loc) · 3.53 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
[tool.poetry]
name = "acederbergio"
version = "0.2.2"
description = "Quarto demo"
authors = ["Adrian Cederberg <[email protected]>"]
readme = "README.md"
packages = [{include="acederbergio"}]
# NOTE: These are dependencies required to make the scripts run
[tool.poetry.dependencies]
python = "^3.10"
pyyaml = "^6.0.2"
watchdog = "^5.0.3"
panflute = "^2.3.1"
toml = "^0.10.2"
meta-tags-parser = "^1.3.0"
typer = "^0.12.5"
# NOTE: These are dependencies required to make the notebooks work.
pydantic = "^2.9.2"
motor = "^3.6.0"
gitpython = "^3.1.43"
yaml-settings-pydantic = "^2.3.2"
[tool.poetry.group.quarto.dependencies]
scikit-learn = "^1.5.1"
numpy = "^2.0.0"
jupyter = "^1.0.0"
jupyter-cache = "^1.0.0"
seaborn = "^0.13.2"
pandas = "^2.2.2"
kaggle = "^1.6.17"
kagglehub = "^0.2.9"
pyarrow = "^17.0.0"
[tool.poetry.group.torch.dependencies]
torch = {version = "^2.4.1+cpu", source = "pytorch_cpu"}
torchvision = {version = "^0.19.1+cpu", source = "pytorch_cpu"}
# NOTE: dependencies for testing and qa. The dependencies for testing data
# structures and algorithms will be here, this way the ``blog`` folder
# does not need to be mounted when building the scripts packages.
# Read more here: https://python-poetry.org/docs/dependency-specification/#path-dependencies
# It is worth noting that these will not be available from the wheel: https://github.com/python-poetry/poetry/issues/2567
[tool.poetry.group.ci.dependencies]
pyright = "^1.1.377"
pytest = "^8.3.3"
bumpver = "^2023.1129"
mypy = "^1.11.2"
ruff = "^0.6.7"
python-lsp-server = "^1.11.0"
pandas-stubs = "^2.2.2.240909"
types-pyyaml = "^6.0.12.20240917"
pytest-cov = "^5.0.0"
black = "^24.10.0"
types-requests = "^2.32.0.20241016"
types-toml = "^0.10.8.20240310"
[[tool.poetry.source]]
name = "pytorch_cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[tool.poetry.scripts]
acederbergio = "acederbergio.__main__:cli"
[tool.acederbergio.icons]
origin = "https://unpkg.com"
# [[tool.acederbergio.icons.sets]]
# origin = "https://"
# name = "kubernetes"
[[tool.acederbergio.icons.sets]]
destination = "devicon"
name = "@iconify-json/devicon"
version = "1.2.4"
[[tool.acederbergio.icons.sets]]
destination = "devicon-plain"
name = "@iconify-json/devicon-plain"
version = "1.2.4"
[[tool.acederbergio.icons.sets]]
destination = "hugeicons"
name = "@iconify-json/hugeicons"
version = "1.2.1"
[[tool.acederbergio.icons.sets]]
destination = "logos"
name="@iconify-json/logos"
version = "1.2.3"
[tool.bumpver]
current_version = "0.2.2"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "chore(version): Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"docker/compose.yaml" = ["image: acederberg/blog-dev:{version}"]
"docker/compose.prod.yaml" = ["ACEDERBERG_IO_SERVER_VERSION-{version}"]
[tool.pytest.ini_options]
python_files = ["tests/*.py", "blog/dsa/**/__init__.py"]
[tool.coverage.report]
fail_under = 60
include = ["./blog/**/*.py"]
skip_covered = true
skip_empty = true
sort = "-cover" # NOTE: Sort from least to greatest coverage.
[tool.coverage.html]
directory = ".coverage-report"
title = "Captura PyTest Coverage Report"
[tool.mypy]
overrides = [
{module = "kagglehub.*",ignore_missing_imports=true},
{module = "panflute.*",ignore_missing_imports=true},
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"