Skip to content

Commit

Permalink
add install script
Browse files Browse the repository at this point in the history
  • Loading branch information
ITProKyle committed Dec 2, 2024
1 parent c37c985 commit d064701
Show file tree
Hide file tree
Showing 8 changed files with 746 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
- master

jobs:
python-checks:
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12]
uses: finleyfamily/workflows/.github/workflows/python.checks.yml@master
with:
python-version: ${{ matrix.python-version }}
shellcheck:
name: shellcheck
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
],
"maxNumberOfProblems": 100,
"version": "0.2",
"words": []
"words": [
"gtar"
]
}
27 changes: 26 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,38 @@ help: ## show this message
'BEGIN {FS = ":.*##"; printf "\nUsage: make \033[36m<target>\033[0m\n"} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-30s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) }' \
$(MAKEFILE_LIST)

fix: run-pre-commit ## run all automatic fixes
fix: fix-ruff run-pre-commit ## run all automatic fixes

fix-imports: ## automatically fix all import sorting errors
@poetry run ruff check . --fix-only --fixable I001

fix-ruff: ## automatically fix everything ruff can fix (implies fix-imports)
@poetry run ruff check . --fix-only

fix-md: ## automatically fix markdown format errors
@poetry run pre-commit run mdformat --all-files

lint: lint-shellcheck ## run all linters

lint: lint-ruff lint-pyright ## run all linters
@if [ $${CI} ]; then \
echo ""; \
echo "skipped linters that have dedicated jobs"; \
else \
echo ""; \
$(MAKE) --no-print-directory lint-shellcheck; \
fi

lint-pyright: ## run pyright
@echo "Running pyright..."
@npm exec --no -- pyright --venvpath ./
@echo ""

lint-ruff: ## run ruff
@echo "Running ruff... If this fails, run 'make fix-ruff' to resolve some error automatically, other require manual action."
@poetry run ruff check .
@echo ""

lint-shellcheck: ## runs shellcheck using act
@act --job shellcheck

Expand Down
Loading

0 comments on commit d064701

Please sign in to comment.