Skip to content

Commit

Permalink
Use yaml for cookbook
Browse files Browse the repository at this point in the history
  • Loading branch information
spapanik committed Feb 3, 2024
1 parent efbe209 commit 60ca62f
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 80 deletions.
80 changes: 0 additions & 80 deletions cookbook.toml

This file was deleted.

45 changes: 45 additions & 0 deletions cookbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
$globals:
shell: bash
version: "6.0"
vars:
poetry_sync: "--sync"

install:
phony: true
keep_ts: true
requires:
- poetry.lock
commands:
- "poetry install ${poetry_sync} ${poetry_extra}"

format:
phony: true
requires:
- install
commands:
- black .
- ruff --fix-only .

lint:
phony: true
requires:
- install
commands:
- black --check .
- poetry check --lock
- ruff .
- mypy .

tests:
phony: true
requires:
- install
commands:
- "pytest ${pytest_args} ${pytest_path} ${.extra}"

poetry.lock:
update: true
requires:
- pyproject.toml
commands:
- poetry lock

0 comments on commit 60ca62f

Please sign in to comment.