-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (61 loc) · 1.83 KB
/
pyproject.toml
File metadata and controls
70 lines (61 loc) · 1.83 KB
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
# Specifies the build system for the package.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
# Core project metadata (PEP 621).
[project]
name = "betterplots"
dynamic = ["version"]
description = "A matplotlib-style augmenter"
readme = "README.md"
requires-python = ">=3.8"
license = "GPL-3.0-or-later"
authors = [
{ name = "Rhys Shaw", email = "rhysc3p0@gmail.com" },
]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
]
# Core runtime dependencies.
dependencies = [
"matplotlib"
]
[project.urls]
Homepage = "https://github.com/RhysAlfShaw/betterplots"
Documentation = "https://github.com/RhysAlfShaw/betterplots#readme"
Issues = "https://github.com/RhysAlfShaw/betterplots/issues"
Source = "https://github.com/RhysAlfShaw/betterplots"
# --- HATCH CONFIGURATION ---
# Tells Hatch where to find the version variable.
[tool.hatch.version]
path = "betterplots/__about__.py"
# Run with `hatch run <script_name>`.
[tool.hatch.envs.default.scripts]
test = "pytest --cov=betterplots --cov-report=term-missing"
lint = "ruff check . && ruff format --check ."
"lint:fix" = "ruff check . --fix && ruff format ."
"type-check" = "mypy betterplots tests"
# Configuration for Pytest coverage.
[tool.coverage.run]
source = ["betterplots"]
branch = true
parallel = true
omit = [
"betterplots/__about__.py",
]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.hatch.publish.test]
url = "https://test.pypi.org/legacy/"
[tool.hatch.publish.main]
url = "https://upload.pypi.org/legacy/"