Commit 82b2fe01 authored by Jan Reimes's avatar Jan Reimes
Browse files

feat(config): add new configuration tasks for project management

* Introduced a new config.toml file to define various tasks.
* Added tasks for formatting, linting, type-checking, testing, and coverage.
* Removed the Justfile as its functionality is now covered in config.toml.
parent 05cbcf0c
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
[tasks.default]
run = "mise tasks"

[tasks.format]
run = [
    "ruff format .",
    "isort .",
    "undersort .",
    "mdformat src/ docs/ tests/ .config/skills",
]

[tasks.lint]
run = "ruff check src tests"

[tasks.lint-fix]
run = "ruff check --fix src tests"

[tasks.type-check]
run = "ty src/ tests/"

[tasks.test]
run = "uv run pytest tests/ -v"

[tasks.test-coverage]
run = "uv run pytest tests/ -v --cov=src/tdoc_crawler --cov-report=html"


[tasks.convert-mcp-cfg]
run = """
    cls
    uvx --from https://github.com/jr2804/mcp-config-converter.git mcp-config-converter convert .vscode/mcp.json --provider{% if args %} {{ args }}{% endif %}
"""

Justfile

deleted100644 → 0
+0 −37
Original line number Diff line number Diff line
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]

# Default command - list all available commands
default:
	@just --list

# Clean generated artefacts
clean:
    uv run ruff clean
    uv run python scripts/clean.py

# Lint the codebase
lint:
    uv run ruff format --check
    uv run ruff check --fix tests src
    uv run isort --check-only tests src
    uv run undersort --check tests src
    uv run ty check

# Lint the documentation
lint-md:
    uv run mdformat .\src
    uv run mdformat docs
    uv run mdformat AGENTS.md README.md
    uv run mdformat .claude/skills
    
# Format the codebase
format:
    uv run ruff format tests src
    uv run isort tests src
    uv run undersort tests src

# Build the project
build:
    @uv run scripts/remove_version.py
    uv build --clear --refresh .