-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #302 from HiSPARC/testing-updates
Improve lint tests
- Loading branch information
Showing
57 changed files
with
752 additions
and
608 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
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,23 +1,29 @@ | ||
.PHONY: devinstall test unittests coveragetests flaketest doctest ansibletest | ||
|
||
.PHONY: devinstall | ||
devinstall: | ||
pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt | ||
conda install --quiet --yes --channel conda-forge --file provisioning/roles/publicdb/files/requirements-conda.txt | ||
pip install -r provisioning/roles/publicdb/files/requirements-pip.txt | ||
|
||
test: coveragetests flaketest doctest ansibletest | ||
.PHONY: test | ||
test: coveragetests linttest doctest ansibletest | ||
|
||
.PHONY: unittests | ||
unittests: | ||
coverage run ./manage.py test $(tests) | ||
|
||
.PHONY: coveragetests | ||
coveragetests: unittests | ||
coverage report | ||
|
||
flaketest: | ||
flake8 | ||
.PHONY: linttest | ||
linttest: | ||
ruff check . | ||
typos . | ||
|
||
.PHONY: doctest | ||
doctest: | ||
PYTHONPATH=$(CURDIR):$(PYTHONPATH) sphinx-build -anW doc doc/_build/html | ||
|
||
.PHONY: ansibletest | ||
ansibletest: | ||
ansible-lint -p provisioning/playbook.yml || 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
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
Oops, something went wrong.