forked from asdf-community/asdf-poetry
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for no
pyproject
specified (tool use only)
- Loading branch information
Showing
10 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
#:schema https://raw.githubusercontent.com/jdx/mise/main/schema/mise.json | ||
|
||
[tools] | ||
python = { version = "3.12" } | ||
"aqua:bats-core/bats-core" = "latest" | ||
|
||
[env] | ||
XDG_DATA_HOME = "{{ env.HOME }}/.local/share" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#:schema https://raw.githubusercontent.com/jdx/mise/main/schema/mise.json | ||
|
||
[tools] | ||
python = { version = "3.12" } | ||
poetry = { version = "latest" } | ||
|
||
[env] | ||
MISE_POETRY_AUTO_INSTALL = "true" | ||
MISE_POETRY_VENV_AUTO = "false" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[virtualenvs] | ||
in-project = true | ||
prefer-active-python = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[tool.poetry] | ||
name = "test" | ||
version = "0.0.0" | ||
description = "Test" | ||
authors = [ | ||
"Josh Bode <josh@joincheckmate.com>", | ||
] | ||
package-mode = false | ||
|
||
[tool.poetry.dependencies] | ||
python = ">=3.10,<3.13" | ||
pbr = "^6.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#! /usr/bin/env bats | ||
|
||
@test "check environment: poetry install in path and functioning" { | ||
version=$(poetry --version | grep -oE '[0-9]+\.[0-9]+\.[0-9]+') | ||
[[ ":${PATH}:" == *":${XDG_DATA_HOME}/mise/installs/poetry/${version}/bin:"* ]] | ||
} | ||
|
||
@test "check environment: VIRTUAL_ENV is not set" { | ||
[[ ! -v VIRTUAL_ENV ]] | ||
} | ||
|
||
@test "check environment: POETRY_ACTIVE is not set" { | ||
[[ ! -v POETRY_ACTIVE ]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters