-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (100 loc) · 2.29 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "playlist-sync"
dynamic = ["version"]
description = 'Sync playlists between music streaming services'
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
keywords = []
authors = [
{ name = "Fyssion", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
dependencies = [
"ytmusicapi==1.7.5",
"spotipy==2.24",
"rich==13.7.1",
]
[project.urls]
Documentation = "https://github.com/Fyssion/playlist-sync#readme"
Issues = "https://github.com/Fyssion/playlist-sync/issues"
Source = "https://github.com/Fyssion/playlist-sync"
[tool.hatch.version]
path = "playlist_sync/__about__.py"
[tool.hatch.env]
requires = [
"hatch-pip-compile"
]
[tool.hatch.envs.default]
type = "pip-compile"
pip-compile-constraint = "default"
[tool.hatch.envs.default.scripts]
start = "python -m playlist_sync"
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"pytest",
"pytest-asyncio==0.20",
"pytest-cov"
]
[tool.hatch.envs.test.scripts]
test = "pytest"
lint = "pyright"
cov = "pytest --cov=playlist_sync"
[tool.hatch.envs.style]
detached = true
dependencies = [
"black",
"isort",
]
[tool.hatch.envs.style.scripts]
check = [
"black --check --diff .",
"isort --check-only --diff .",
]
fmt = [
"isort .",
"black .",
"check",
]
[tool.coverage.run]
source_pkgs = ["playlist_sync", "tests"]
branch = true
parallel = true
omit = [
"playlist_sync/__about__.py",
]
[tool.coverage.paths]
playlist_sync = ["playlist_sync", "*/playlist-sync/playlist_sync"]
tests = ["tests", "*/playlist-sync/tests"]
[tool.coverage.report]
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.black]
line-length = 100
skip-string-normalization = true
[tool.isort]
profile = "black"
combine_as_imports = true
combine_star = true
line_length = 100
[tool.pyright]
pythonPlatform = "Linux"
venvPath = ".hatch/test"
pythonVersion = "3.11"
typeCheckingMode = "basic"
useLibraryCodeForTypes = true
reportUnnecessaryTypeIgnoreComment = "warning"
reportUnusedImport = "error"