mirror of
https://github.com/kiviktnm/decman.git
synced 2026-09-19 12:08:28 +00:00
42 lines
433 B
Markdown
42 lines
433 B
Markdown
# Commands used in development
|
|
|
|
Before committing ensure all tests pass and format files.
|
|
|
|
## Running
|
|
|
|
Run decman as root to test all changes:
|
|
|
|
```sh
|
|
sudo uv run decman
|
|
```
|
|
|
|
## Testing
|
|
|
|
Run all unit tests (`-s` disables output capturing):
|
|
|
|
```sh
|
|
uv run pytest -s
|
|
```
|
|
|
|
## Formatting
|
|
|
|
Format all files:
|
|
|
|
```sh
|
|
uv run ruff format
|
|
```
|
|
|
|
## Linting
|
|
|
|
Run lints:
|
|
|
|
```sh
|
|
uv run ruff check
|
|
```
|
|
|
|
Apply fixes:
|
|
|
|
```sh
|
|
uv run ruff check --fix
|
|
```
|