File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed
Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 6666 uses : snok/install-poetry@v1
6767
6868 - name : Install Dependencies
69- # TODO: fix errors so that we can run `make dev` instead
7069 run : |
7170 # Setup Virtual Environment
7271 python3 -m venv ./.venv
9998 uses : snok/install-poetry@v1
10099
101100 - name : Install Dependencies
102- # TODO: fix errors so that we can run `make dev` instead
103101 run : |
104102 # Setup Virtual Environment
105103 python3 -m venv ./.venv
Original file line number Diff line number Diff line change 11MKDOCS_SERVE_ADDR ?= localhost:8000 # Default address for mkdocs serve, format: <host>:<port>, override with `make docs-serve MKDOCS_SERVE_ADDR=<host>:<port>`
22
33autoformat :
4- poetry run ruff check guardrails/ tests/ --fix
5- poetry run ruff format guardrails/ tests/
6- poetry run docformatter --in-place --recursive guardrails tests
4+ ruff check guardrails/ tests/ --fix
5+ ruff format guardrails/ tests/
6+ docformatter --in-place --recursive guardrails tests
77
88.PHONY : type
99type :
10- poetry run pyright guardrails/
10+ pyright guardrails/
1111
1212lint :
13- poetry run ruff check guardrails/ tests/
14- poetry run ruff format guardrails/ tests/ --check
13+ ruff check guardrails/ tests/
14+ ruff format guardrails/ tests/ --check
1515
1616test :
17- poetry run pytest tests/
17+ pytest tests/
1818
1919test-basic :
2020 set -e
2121 python -c " import guardrails as gd"
2222 python -c " import guardrails.version as mversion"
2323
2424test-cov :
25- poetry run pytest tests/ --cov=./guardrails/ --cov-report=xml
25+ pytest tests/ --cov=./guardrails/ --cov-report=xml
2626
2727view-test-cov :
28- poetry run pytest tests/ --cov=./guardrails/ --cov-report html && open htmlcov/index.html
28+ pytest tests/ --cov=./guardrails/ --cov-report html && open htmlcov/index.html
2929
3030view-test-cov-file :
31- poetry run pytest tests/unit_tests/test_logger.py --cov=./guardrails/ --cov-report html && open htmlcov/index.html
31+ pytest tests/unit_tests/test_logger.py --cov=./guardrails/ --cov-report html && open htmlcov/index.html
3232
3333docs-serve :
3434 poetry run mkdocs serve -a $(MKDOCS_SERVE_ADDR )
You can’t perform that action at this time.
0 commit comments