test: add basic tests for cache-search & network fetchers
test: enable debug test: add pytest.ini to mark tests that require network fix: cache-search should not aquire full match of artists due to different translations fix: replace dynamic f-string SQL in track WHERE clauses with parameterized nullable conditions refactor: lrc.py should never directly call print, return a str instead chore: add requirements.txt (via 'uv export') chore: update README.md with dev instructions
This commit is contained in:
@@ -95,6 +95,46 @@ Shell completion (zsh/fish/bash):
|
||||
lrx --install-completion
|
||||
```
|
||||
|
||||
## Development
|
||||
|
||||
Clone this repository:
|
||||
|
||||
```bash
|
||||
git clone https://github.com/Uyanide/LRX-CLI.git
|
||||
cd LRX-CLI
|
||||
```
|
||||
|
||||
Create a virtual environment and install dependencies (for example, using uv):
|
||||
|
||||
```bash
|
||||
uv venv .venv
|
||||
uv sync
|
||||
```
|
||||
|
||||
Run tests without network calls
|
||||
|
||||
```bash
|
||||
uv run pytest -m "not network"
|
||||
```
|
||||
|
||||
or full tests:
|
||||
|
||||
```bash
|
||||
uv run pytest
|
||||
```
|
||||
|
||||
Run the CLI:
|
||||
|
||||
```bash
|
||||
uv run lrx --help
|
||||
```
|
||||
|
||||
Install to user-level (optional):
|
||||
|
||||
```bash
|
||||
uv tool install .
|
||||
```
|
||||
|
||||
## Credits
|
||||
|
||||
- [lrclib.net](https://lrclib.net)
|
||||
|
||||
Reference in New Issue
Block a user