Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
- `paracore/` houses the core package; start with `cli.py` for the command-line entrypoint and `api.py` for the Python API helpers.
Sign in to like and favorite skills
paracore/ houses the core package; start with cli.py for the command-line entrypoint and api.py for the Python API helpers.config.py, dask_helpers.py, and submitit_backend.py wrap Slurm-oriented configuration and execution primitives; keep related utilities beside these modules.examples/ contains runnable snippets, including examples/commands.txt for batch submission templates.tests/ mirrors the package layout; create new test files as tests/test_<feature>.py and co-locate fixtures near their subject.uv pip install -e .[dev] sets up an editable install with developer dependencies.uv run pytest executes the full test suite.uv run mypy paracore enforces type safety, which CI assumes passes.uv run ruff check paracore tests runs linting; pair with uv run ruff format before submitting.ruff and black defaults; keep line length ≤100 characters.snake_case for functions and modules, PascalCase for classes, and descriptive Slurm resource flags when constructing command wrappers.paracore.cli.main) and API helpers (run_cmd, map_cmds).test_<subject>_<behavior> and minimize reliance on real clusters by faking submitit clients.cleanup, linting, add submitit hooks).pytest, mypy, ruff).subprocess.run(..., capture_output=True) for streaming stdout/stderr so verbose jobs avoid OOM on workers.max_array_parallelism from config when setting array_parallelism to protect the scheduler from spikes.paracore status with thin sacct/squeue wrappers for quick job inspection at scale.map_cmds materializes very large iterables to keep driver memory stable.