-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
51 lines (44 loc) · 1.49 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
[tool.poetry]
name = "mms-monthly-cli"
version = "1.1.0"
description = "A package and CLI utility to check for available data and download tables from AEMO's Monthly Data Archive"
authors = ["prakaa <[email protected]>"]
license = "GPL-3.0-or-later"
readme = "README.md"
homepage = "https://github.com/prakaa/mms-monthly-cli"
packages = [{include = "mms_monthly_cli"}]
[tool.poetry.scripts]
mms-monthly-cli = "mms_monthly_cli.cli:app"
[tool.poetry.dependencies]
python = "^3.8"
requests = "^2"
tqdm = "^4"
user-agent = "^0.1"
typer = {extras = ["all"], version = "^0.9.0"}
beautifulsoup4 = "^4"
[tool.poetry.group.dev.dependencies]
black = "^23"
isort = "^5"
mypy = "^1"
pytest = "^7"
pytest-cov = "^4"
# Config for pytest and pytest-cov
[tool.pytest.ini_options]
# path to tests for pytest
testpaths = ["tests"]
# addopts = add options
# -ra means show extra test summary info for all except passed tests
# --cov points pytest-cov to the src/ dir
# --cov-branch runs branch coverage. See https://breadcrumbscollector.tech/how-to-use-code-coverage-in-python-with-pytest/
# --cov-repot html dumps HTML and xml summaries of pytest-cov in the "tests" folder
addopts = "-ra --cov=mms_monthly_cli/ --cov-branch --cov-report xml:tests/coverage.xml --cov-report html:tests/htmlcov"
# Config isort to be compatible with black
[tool.isort]
profile = "black"
# Config for mypy
[tool.mypy]
warn_return_any = true
warn_unused_configs = true
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"