-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
93 lines (79 loc) · 1.92 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
[tool.poetry]
name = "forecast"
version = "0.4.0"
description = "Generic forecast utilities"
authors = ["Tyler Matteson <[email protected]>", "Heather Kusmierz <[email protected]>"]
license = "MIT"
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.dependencies]
python = ">=3.10"
numpy = "^1.26.4"
pandas = "^2.2.2"
scipy = "^1.14.0"
[tool.poetry.group.dev.dependencies]
nbdev = "^2.3.25"
pytest = "^8.0.0"
pytest-cov = "^5.0.0"
matplotlib = "^3.3.0"
jupyterlab = "^2.2.5"
[tool.black]
line-length = 99
[tool.isort]
line_length = 99
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true
indent = "\t"
[tool.tox]
legacy_tox_ini = """
[tox]
min_version = 4
requires =
tox-gh-actions>=3
envlist = py310, py311, py312, linting
[gh-actions]
python =
3.10: py310
3.11: py311
3.12: py312, linting
[testenv]
skip_install = true
allowlist_externals = poetry
commands_pre =
poetry install
[testenv:linting]
description = run linters
commands_pre =
poetry install
python -m pip install flake8
python -m pip install mypy
python -m pip install black git+https://github.com/agritheory/black.git
mypy ./ --install-types --non-interactive
commands =
flake8 ./forecast
mypy ./forecast --ignore-missing-imports
black --check .
[testenv:py310]
description = run pytest on 3.10
commands =
pytest tests/ --disable-warnings -s
[testenv:py311]
description = run pytest on 3.11
commands =
pytest tests/ --disable-warnings -s
[testenv:py312]
description = run pytest and coverage on 3.12
commands =
pytest tests/ --cov=forecast --cov-report=xml --disable-warnings -s
"""
[tool.semantic_release]
version_toml = ["pyproject.toml:tool.poetry.version"]
version_variables = [
"forecast/__init__.py:__version__"
]
[tool.semantic_release.branches.version]
match = "main"