-
Notifications
You must be signed in to change notification settings - Fork 3
add cirrus & travis tests #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
f50826a
b4b9bc8
0c7a8cf
272e9bb
9be3ca8
89f951c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| task: | ||
| freebsd_instance: | ||
| matrix: | ||
| image: freebsd-12-1-release-amd64 | ||
| install_script: | ||
| - mount -t fdescfs null /dev/fd | ||
| - pkg install -y python3 | ||
| - python3 -m ensurepip | ||
| - make install-python-requirements-dev | ||
| test_script: | ||
| - pytest tests | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| language: python | ||
| python: | ||
| - "3.7" | ||
| sudo: false | ||
| install: | ||
| - make install-python-requirements-dev | ||
| script: | ||
| - make check | ||
| notifications: | ||
| email: false | ||
| addons: | ||
| apt: | ||
| packages: | ||
| - sqlite3 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| MYPYPATH = $(shell pwd)/.travis/mypy-stubs | ||
|
|
||
| PYTHON ?= python3 | ||
|
|
||
| install-python-requirements: | ||
| $(PYTHON) -m ensurepip | ||
| $(PYTHON) -m pip install -U pip | ||
| $(PYTHON) -m pip install -Ur requirements.txt | ||
|
|
||
| install-python-requirements-dev: install-python-requirements | ||
| $(PYTHON) -m pip install -Ur requirements-dev.txt | ||
|
|
||
| check: | ||
| flake8 --version | ||
| mypy --version | ||
| flake8 --exclude=".travis,.eggs,__init__.py,docs,tests" --ignore=E203,E252,W391,D107,A001,A002,A003,A004,D412,D413,T499 | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the ignores are overridden here |
||
| bandit --skip B404,B110 --exclude tests/ *.py jail/*.py | ||
| test: | ||
| pytest tests --zpool $(ZPOOL) | ||
|
|
||
| .PHONY: docs | ||
| docs: | ||
| $(PYTHON) setup.py build_sphinx | ||
|
|
||
| help: | ||
| @echo " install" | ||
| @echo " Installs libioc" | ||
| @echo " uninstall" | ||
| @echo " Removes libioc" | ||
| @echo " test" | ||
| @echo " Run unit tests with pytest" | ||
| @echo " check" | ||
| @echo " Run static linters & other static analysis tests" | ||
| @echo " install-dev" | ||
| @echo " Install dependencies needed to run `check`" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| pytest | ||
| pytest-pep8 | ||
| pytest-mock | ||
| pytest-benchmark | ||
| flake8-docstrings | ||
| flake8-mutable | ||
| flake8-builtins | ||
| flake8-mypy | ||
| bandit==1.5.1 | ||
| bandit-high-entropy-string | ||
| sphinx-autodoc-typehints | ||
| sphinx_rtd_theme |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,4 +2,7 @@ | |
| test = pytest | ||
|
|
||
| [tool:pytest] | ||
| addopts = --verbose | ||
| addopts = --verbose | ||
|
|
||
| [flake8] | ||
| ignore = D101,D103 | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these ignores are… ignored
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. either way, I'd much prefer to fix this specific docs issue, rather than ignore it |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this isn't needed any more!