-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
143 lines (126 loc) · 3.24 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "music_snapshot"
description = "Save a snapshot of your day as a Spotify playlist."
authors = [{name = "Paweł Adamczak", email = "[email protected]"}]
readme = "README.md"
requires-python = ">=3.10"
license = {file = "LICENSE"}
keywords = ["spotify", "playlist", "cli"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Utilities",
]
dynamic = ["version"]
dependencies = [
"click",
"click-default-group",
"pylast",
"questionary",
"rich",
"rich-click",
"spotipy",
"typing_extensions; python_version < '3.11'",
]
[project.optional-dependencies]
tests = [
"coverage[toml]",
"pytest",
]
dev = [
"music_snapshot[tests]",
# Code style
"black",
"interrogate",
"isort",
"ruff",
# Type checking
"mypy",
# Misc
"flit",
"nox",
]
[project.urls]
Homepage = "https://music_snapshot.pawelad.dev/"
GitHub = "https://github.com/pawelad/music_snapshot"
Issues = "https://github.com/pawelad/music_snapshot/issues"
[project.scripts]
music_snapshot = "music_snapshot.__main__:main"
[tool.black]
target-version = ["py310"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src"]
[tool.interrogate]
ignore-init-module = true
ignore-nested-classes = true
fail-under = 95
[tool.isort]
profile = "black"
src_paths = ["src"]
[tool.mypy]
python_version = "3.10"
mypy_path = "src"
[[tool.mypy.overrides]]
module = [
"click_default_group",
"pylast",
"spotipy",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra --import-mode=importlib --verbose"
testpaths = "tests"
pythonpath = "src"
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = [
"A", # flake8-builtins
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe
"D", # pydocstyle
"DJ", # flake8-django
"E", # flake8
"F", # flake8
"N", # pep8-naming
"PT", # flake8-pytest-style
"S", # flake8-bandit
"SIM", # flake8-simplify
"T20", # flake8-print
"TRY", # tryceratops
"UP", # pyupgrade
]
ignore = [
"A003", # Class attribute is shadowing a python builtin
"ANN101", # ANN101 Missing type annotation for `self` in method
"ANN102", # ANN102 Missing type annotation for `cls` in classmethod
"ANN401", # Dynamically typed expressions (typing.Any) are disallowed in `**kwargs`
"D104", # Missing docstring in public package
"D106", # Missing docstring in public nested class
"N818", # Exception name should be named with an Error suffix
"S101", # Use of `assert` detected
"TRY003", # Avoid specifying long messages outside the exception class
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
mark-parentheses = true
[tool.ruff.lint.mccabe]
max-complexity = 20