-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (110 loc) · 3.56 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
[tool.poetry]
name = "climate-trace"
version = "0.4.0"
description = "A package for loading and analyzing data from the Climate TRACE consortium."
authors = ["Tim Hunter <[email protected]>"]
license = "CC BY-SA 4.0 Deed"
readme = "README.md"
package-mode = true
keywords = ["climate", "data", "analysis", "bayesian", "climate change", "polars"]
repository = "https://github.com/tjhunter/climate-trace-handbook/"
documentation = "https://tjhunter.github.io/climate-trace-handbook/intro.html"
classifiers = [
"Development Status :: 3 - Alpha",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.10",
]
packages = [
{ include = "ctrace", from = "src" },
]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/tjhunter/climate-trace-handbook/issues"
[tool.poetry.dependencies]
# Dependencies for the ctrace package
# This narrow range for python is required by pytensor->pymc
# TODO: see if we can expand it in the future
python = ">=3.10,<3.13"
polars = "^1.0"
pyarrow = ">=15.0.2,<20"
pooch = "^1.8.1"
# Dependencies for the book
[tool.poetry.group.book.dependencies]
jupyter-book = "^1.0.0"
jupyter = "^1.0.0"
pandas = "^2.2.1"
matplotlib = "^3.8.3"
plotly = "^5.20.0"
ghp-import = "^2.1.0"
scipy = ">=1.10.0,<1.12.0" # Arviz requires scipy 1.11
# Dependencies for the bayesian analysis
[tool.poetry.group.bayesian.dependencies]
arviz = "^0.17.1"
pymc = "^5.12.0"
dds-py = "^0.13.1"
pandera = {extras = ["polars"], version = "^0.18.3"}
duckdb = "^0.10.1"
huggingface-hub = "^0.23.2"
[tool.poetry.group.dev.dependencies]
ruff = "^0.3.4"
prettier = "^0.0.7"
black = "^24.3.0"
mypy = "^1.9.0"
huggingface-hub = "^0.23.2"
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = [
"src/ctrace/__init__.py:__version__",
]
build_command = "pip install poetry && poetry build"
[tool.semantic_release.changelog.environment]
keep_trailing_newline = true
[tool.semantic_release.branches.main]
match = "main"
[tool.ruff.lint]
ignore = [
"D203", # 1 blank line required before class docstring
"D212", # Multi-line docstring summary should start at the first line
"D100", # Missing docstring in public module
"D104", # Missing docstring in public package
"D107", # Missing docstring in `__init__`
"D200", # One-line docstring should fit on one line with quotes
"D401", # First line of docstring should be in imperative mood
"D205", # 1 blank line required between summary line and description
"D400", # First line should end with a period
"D415", # Section name should end with a newline
"D419", # Section name should end with a newline,
"E501", # Line too long
"F401", # imported but unused,
"F403", # import * used
"F405", # reimported
"RUF005",
"S101", # Use of assert detected
]
select = [
"B", # flake8-bugbear
"D", # flake8-docstrings
"C4", # flake8-comprehensions
"S", # flake8-bandit
"F", # pyflake
"E", # pycodestyle
"W", # pycodestyle
"UP", # pyupgrade
"I", # isort
"RUF", # ruff specific
]
[tool.ruff.lint.isort]
known-first-party = ["ctrace"]
[tool.mypy]
# suppress errors about unsatisfied imports
ignore_missing_imports = true
no_implicit_optional = true
# ensure all execution paths are returning
warn_no_return = true
show_error_codes = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"