-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add color to 'shellrunner: command' output
- Loading branch information
Showing
5 changed files
with
55 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install rye | ||
run: | | ||
RYE_INSTALL_OPTION="--yes" /bin/bash -c "$(curl -fsSL https://rye-up.com/get)" | ||
echo "$HOME/.rye/shims" >> $GITHUB_PATH | ||
- name: rye sync | ||
run: | | ||
rye add --dev pyright | ||
rye sync | ||
- name: Lint | ||
run: rye run lint | ||
|
||
- name: Test | ||
run: | | ||
apt-add-repository ppa:fish-shell/release-3 -y | ||
apt update | ||
apt install fish -y | ||
apt install zsh -y | ||
rye run test | ||
- name: Build | ||
run: rye build | ||
|
||
- name: Publish | ||
run: rye publish -u __token__ --token ${{ secrets.PYPI_TOKEN }} --yes |
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,6 +1,6 @@ | ||
[project] | ||
name = "python-shellrunner" | ||
version = "0.3.3" | ||
version = "0.3.4" | ||
description = "Write safe shell scripts in Python." | ||
authors = [ | ||
{name = "adamhl8", email = "[email protected]"}, | ||
|
@@ -42,9 +42,10 @@ dev-dependencies = [ | |
test = "pytest shellrunner" | ||
"lint:pyright" = "pyright ." | ||
"lint:ruff" = "ruff check ." | ||
lint = { chain = ["lint:pyright", "lint:ruff"] } | ||
"lint:black" = "black --check ." | ||
"lint:pyroma" = "pyroma -n 10 ." | ||
lint = { chain = ["lint:pyright", "lint:ruff", "lint:black", "lint:pyroma"] } | ||
format = "black ." | ||
"lint:pyroma" = "pyroma ." | ||
|
||
[tool.pyright] | ||
typeCheckingMode = "strict" | ||
|
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