-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (69 loc) · 1.35 KB
/
pyproject.toml
File metadata and controls
80 lines (69 loc) · 1.35 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
71
72
73
74
75
76
77
78
79
80
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pairbot"
version = "0.0.1"
readme = "README.md"
dependencies = [
"discord",
"python-dotenv"
]
[project.urls]
Documentation = "https://github.com/scippage/pairbot#readme"
Issues = "https://github.com/scippage/pairbot/issues"
Source = "https://github.com/scippage/pairbot"
[project.scripts]
pairbot = "pairbot:run"
# Testing
[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
[tool.coverage.run]
source_pkgs = ["pairbot", "tests"]
branch = true
parallel = true
omit = []
[tool.coverage.paths]
pairbot = ["pairbot", "*/pairbot/pairbot"]
tests = ["tests", "*/pairbot/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
# Linting and formatting
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"isort"
]
[tool.hatch.envs.style.scripts]
check = [
"black --check --diff .",
"isort --check-only --diff .",
]
format = [
"isort .",
"black .",
]
[tool.isort]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
profile = "black"