-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
52 lines (47 loc) · 1.49 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[project]
name = "decent-cloud"
version = "0.1.0"
description = ""
authors = [{ name = "Yan Liu", email = "[email protected]" }]
license = "APACHE"
readme = "README.md"
requires-python = ">=3.10"
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.tasks]
build = "cargo build --release"
install-pre-commit = "pixi global install pre-commit"
install-gh = "pixi global install gh"
install-micromamba = "pixi global install micromamba"
install-starship = "pixi global install starship"
install-ruff = "pixi global install ruff"
install-tbump = "pixi global install tbump"
install-pocket-ic-server = "curl -L -o - https://github.com/dfinity/pocketic/releases/download/7.0.0/pocket-ic-x86_64-linux.gz | gunzip | install /dev/stdin -m 755 $HOME/bin/pocket-ic"
install = { depends_on = [
"install-pre-commit",
"install-gh",
"install-micromamba",
"install-starship",
"install-ruff",
"install-tbump",
"install-pocket-ic-server",
] }
pytest = { cmd = "pytest", env = { "POCKET_IC_BIN" = "$HOME/bin/pocket-ic" } }
test-all = "cargo test --all-features"
lint = "pre-commit run --all"
bump = "tbump --only-patch"
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
pythonpath = [".", "simulator"]
addopts = ["--import-mode=importlib"]
[tool.ruff]
line-length = 130
[tool.pixi.dependencies]
pytest = "*"
mock = "*"
black = "*"
python = "*"