File: Justfile

package info (click to toggle)
aiofiles 25.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: python: 1,791; makefile: 3; sh: 1
file content (19 lines) | stat: -rw-r--r-- 489 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tests_dir := "tests"
code_dirs := "src" + " " + tests_dir
run_prefix := if env_var_or_default("VIRTUAL_ENV", "") == "" { "uv run " } else { "" }

check:
	{{ run_prefix }}ruff format --check {{ code_dirs }}
	{{ run_prefix }}ruff check {{ code_dirs }}

coverage:
	{{ run_prefix }}coverage run -m pytest {{ tests_dir }}

format:
	{{ run_prefix }}ruff format {{ code_dirs }}

lint: format
	{{ run_prefix }}ruff check --fix {{ code_dirs }}

test:
	{{ run_prefix }}pytest -x --ff {{ tests_dir }}