-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
160 lines (138 loc) · 4 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
[project]
name = "ada_topics"
description = "Applied Data Analytics: Topics"
requires-python = ">=3.12"
dependencies = [
"pytask"
]
dynamic = ["version"]
classifiers = [
"Intended Audience :: Science/Research",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"License :: Free for non-commercial use",
"Programming Language :: Python :: 3.12",
]
authors = [
{ name = "Hans-Martin von Gaudecker", email = "[email protected]" },
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "CC-BY-NC-SA-4.0"
[project.urls]
Documentation = "https://github.com/OpenSourceEconomics/ada_topics"
Github = "https://github.com/OpenSourceEconomics/ada_topics"
Tracker = "https://github.com/OpenSourceEconomics/ada_topics/issues"
[build-system]
requires = ["hatchling", "hatch_vcs"]
build-backend = "hatchling.build"
[tool.hatch.build.hooks.vcs]
version-file = "src/ada_topics/_version.py"
[tool.hatch.build.targets.sdist]
exclude = ["tests"]
only-packages = true
[tool.hatch.build.targets.wheel]
only-include = ["src"]
sources = ["src"]
[tool.hatch.version]
source = "vcs"
[tool.hatch.metadata]
allow-direct-references = true
# ======================================================================================
# Pixi
# ======================================================================================
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-64", "win-64"]
# Development Dependencies (conda)
# --------------------------------------------------------------------------------------
[tool.pixi.dependencies]
data-morph-ai = ">=0.2.0,<0.3"
deepdiff = "*"
ipykernel = "*"
ipywidgets = "*"
jupyter-book = ">=1.0.2,<2"
jupyterlab = "*"
mscorefonts = ">=0.0.1,<0.0.2"
nodejs = "*"
openpyxl = "*"
pandas = ">=2.2"
pixi-kernel = ">=0.3.0,<0.4"
plotly = ">=5.2,<6"
pre-commit = "*"
pyarrow = ">=18.0.0,<19"
pybaum = "*"
pydata-sphinx-theme = ">=0.13.3"
pygraphviz = "*"
python = ">=3.12.5"
pyyaml = "*"
scipy = "<=1.13"
sphinx = "*"
sphinx-automodapi = "*"
sphinx-copybutton = "*"
sphinxcontrib-mermaid = "*"
statsmodels = "*"
xlrd = ">=1.0"
seaborn = ">=0.13.2,<0.14"
# Development Dependencies (pypi)
# --------------------------------------------------------------------------------------
[tool.pixi.pypi-dependencies]
ada_topics = {path = ".", editable = true}
kaleido = "*"
pdbp = "*"
pyperclip = "*"
[tool.pixi.target.win-64.pypi-dependencies]
kaleido = ">=0.1.0.post1,<=0.1.0.post1"
[tool.pytask.ini_options]
paths = ["./src/ada_topics"]
pdbcls = "pdbp:Pdb"
[tool.ruff]
target-version = "py312"
fix = true
line-length = 88
[tool.ruff.lint]
select = ["ALL"]
extend-ignore = [
"ANN", # Missing type annotations.
"B008", # Do not perform function calls in argument defaults.
"B018",
"BLE001",
"COM812", # May cause conflict with ruff's formatter.
"D100",
"D103", # lots of small functions missing docstrings.
"EM101",
"FBT001",
"FIX002", # allow TODOs in the code.
"INP001", # implicit namespace packages; clashes with our pytask examples.
"ISC001", # May cause conflict with ruff's formatter.
"N811", # constant imported as non constant.
"N999", # Capitalized module name.
"PD010",
"PD013",
"PD015",
"PD901", # `df` used a lot as example variable name.
"PERF401", # use a list comprehension.
"PLC2401", # Non-ASCII is good.
"PLR0913",
"PLR2004", # Magic value used in comparison.
"S101", # Use of `assert` detected.
"S110",
"S301",
"S307",
"S602", # `subprocess` call with `shell=True`.
"T201",
"TRY003",
]
[tool.ruff.lint.per-file-ignores]
"src/ada_topics/config.py" = ["ERA001"]
"src/ada_topics/python_basics/executing_pytest/screencast/example/test_cobb_douglas.py" = ["PLR2004"]
"**/*.ipynb" = ["B018", "T201", "E402", "ERA001", "PLR2004"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.yamlfix]
line_length = 88
none_representation = "null"