Skip to content

Commit

Permalink
release: use normal mise data dir in justfile (#1718)
Browse files Browse the repository at this point in the history
* release: use normal mise data dir in justfile

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: jdx <[email protected]>
  • Loading branch information
jdx and jdx authored Feb 28, 2024
1 parent 0f7a1eb commit 1014d82
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
13 changes: 6 additions & 7 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
set shell := ["bash", "-uc"]

export MISE_DATA_DIR := "/tmp/mise"
export PATH := env_var_or_default("CARGO_TARGET_DIR", justfile_directory() / "target") / "debug:" + env_var("PATH")
export RUST_TEST_THREADS := "1"

Expand Down Expand Up @@ -76,11 +75,11 @@ scripts := "scripts/*.sh e2e/{test_,run_}* e2e/*.sh"
lint:
cargo clippy -- -Dwarnings
cargo fmt --all -- --check
mise x shellcheck@latest -- shellcheck -x {{ scripts }}
mise x shfmt@latest -- shfmt -d {{ scripts }}
mise x -y shellcheck@latest -- shellcheck -x {{ scripts }}
mise x -y shfmt@latest -- shfmt -d {{ scripts }}
just --unstable --fmt --check
MISE_EXPERIMENTAL=1 mise x npm:prettier@latest -- prettier -c $(git ls-files '*.yml' '*.yaml')
MISE_EXPERIMENTAL=1 mise x npm:markdownlint-cli@latest -- markdownlint .
MISE_EXPERIMENTAL=1 mise x -y npm:prettier@latest -- prettier -c $(git ls-files '*.yml' '*.yaml')
MISE_EXPERIMENTAL=1 mise x -y npm:markdownlint-cli@latest -- markdownlint .

# runs linters but makes fixes when possible
lint-fix:
Expand All @@ -89,5 +88,5 @@ lint-fix:
mise x -y shellcheck@latest -- shellcheck -x {{ scripts }}
mise x -y shfmt@latest -- shfmt -w {{ scripts }}
just --unstable --fmt
MISE_EXPERIMENTAL=1 mise x npm:prettier@latest -- prettier -w $(git ls-files '*.yml' '*.yaml')
MISE_EXPERIMENTAL=1 mise x npm:markdownlint-cli@latest -- markdownlint --fix .
MISE_EXPERIMENTAL=1 mise x -y npm:prettier@latest -- prettier -w $(git ls-files '*.yml' '*.yaml')
MISE_EXPERIMENTAL=1 mise x -y npm:markdownlint-cli@latest -- markdownlint --fix .
5 changes: 4 additions & 1 deletion schema/mise.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@
"properties": {
"venv": {
"oneOf": [
{"description": "path to python virtual environment to use", "type": "string"},
{
"description": "path to python virtual environment to use",
"type": "string"
},
{
"description": "virtualenv options",
"type": "object",
Expand Down

0 comments on commit 1014d82

Please sign in to comment.