forked from riggspc/spotify-version-snapshots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
102 lines (89 loc) · 1.96 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
[project]
name = "spotify-snapshot"
description = "A tool to backup Spotify library data to Git"
license = "MIT"
readme = "README.md"
requires-python = ">=3.12"
dynamic = ["version"]
authors = [
{ name = "Patrick Riggs", email = "riggspc@gmail.com" },
{ name = "Aaron Lichtman", email = "aaronlichtman@gmail.com" }
]
keywords = ["spotify", "backup", "git"]
dependencies = [
"loguru",
"click",
"rich",
"python-crontab",
"spotipy",
"gitpython",
"tomli",
"tomli-w",
"requests",
"types-requests",
"keyring>=25.0.0",
"inquirer",
]
[project.urls]
"Source Code" = "https://github.com/alichtman/spotify-snapshot"
"Issue Tracker" = "https://github.com/alichtman/spotify-snapshot/issues"
[project.scripts]
spotify-snapshot = "spotify_snapshot.__main__:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.version]
path = "spotify_snapshot/__about__.py"
[tool.hatch.build]
include = [
"spotify_snapshot/*.py",
]
artifacts = ["dist/*"]
[tool.mypy]
# Prevent duplicate module checking
exclude = ["build/", "dist/"]
# Ignore missing imports for external packages
ignore_missing_imports = true
# Make the checker stricter
strict = true
# Don't check the same file twice
explicit_package_bases = true
namespace_packages = true
# The root directory to check
mypy_path = "."
[tool.hatch.envs.default]
dependencies = [
# Development dependencies that were previously mixed with runtime dependencies
"rope",
"better-exceptions",
"black",
"flake8",
"mypy",
]
[tool.hatch.envs.default.scripts]
fmt = "black *.py spotify_snapshot/*.py"
lint = [
"black --check *.py spotify_snapshot/*.py",
"flake8 .",
"mypy spotify_snapshot"
]
typecheck = "mypy spotify_snapshot"
[tool.hatch.envs.test]
dependencies = [
"pytest",
"pytest-cov",
]
[tool.hatch.envs.lint]
dependencies = [
"black",
"flake8",
"mypy",
]
[tool.hatch.envs.lint.scripts]
style = [
"black .",
"flake8 .",
"mypy .",
]
[tool.hatch.build.targets.wheel]
packages = ["spotify_snapshot"]