Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.3
hooks:
- id: ruff
- id: ruff-format
- repo: local
hooks:
- id: pytest
name: pytest
entry: uv run --frozen pytest ./tests -sx
language: system
types: [python]
pass_filenames: false
always_run: true
73 changes: 72 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
[project]
name = "streamrip"
version = "2.1.0"
description = "A fast, all-in-one music downloader for Qobuz, Deezer, Tidal, and SoundCloud"
authors = [
{name = "nathom", email = "nathanthomas707@gmail.com"}
]
license = {text = "GPL-3.0-only"}
readme = "README.md"
keywords = ["hi-res", "free", "music", "download"]
classifiers = [
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: OS Independent",
]
requires-python = ">=3.10"
dependencies = [
"mutagen>=1.45.1",
"tomlkit>=0.7.2",
"pathvalidate>=2.4.1",
"simple-term-menu>=1.2.1; sys_platform != 'win32'",
"pick>=2; sys_platform == 'win32'",
"windows-curses>=2.2.0; sys_platform == 'win32'",
"Pillow>=9,<11",
"deezer-py==1.3.6",
"pycryptodomex>=3.10.1",
"appdirs>=1.4.4",
"m3u8>=0.9.0",
"aiofiles>=0.7",
"aiohttp>=3.9",
"aiodns>=3.0.0",
"aiolimiter>=1.1.0",
"pytest-mock>=3.11.1",
"pytest-asyncio>=0.21.1",
"rich>=13.6.0",
"click-help-colors>=0.9.2",
]

[project.optional-dependencies]
ssl = ["certifi>=2025.1.31"]
dev = [
"types-click>=7.1.2",
"types-Pillow>=8.3.1",
"ruff>=0.1",
"black>=24",
"isort>=5.9.3",
"flake8>=3.9.2",
"setuptools>=67.4.0",
"pytest>=7.4",
"pre-commit>=4.2.0",
]

[project.urls]
Homepage = "https://github.com/nathom/streamrip"
Repository = "https://github.com/nathom/streamrip"
"Bug Reports" = "https://github.com/nathom/streamrip/issues"

[project.scripts]
rip = "streamrip.rip:rip"

[tool.poetry]
name = "streamrip"
version = "2.1.0"
Expand Down Expand Up @@ -68,7 +127,19 @@ build-backend = "poetry.core.masonry.api"

[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["E4", "E7", "E9", "F", "I", "ASYNC", "N", "RUF", "ERA001"]
select = [
"E4",
"E7",
"E9",
"F",
"I",
"ASYNC",
"N",
"RUF",
"ERA001",
"SIM117", # https://docs.astral.sh/ruff/rules/multiple-with-statements/
"PT006" # https://docs.astral.sh/ruff/rules/pytest-parametrize-names-wrong-type/
]
ignore = []

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down
Loading