Skip to content
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

playing with travis #1

Merged
merged 13 commits into from
Feb 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,31 @@
language: python
python:
- 3.8
- 3.7
- 3.6
matrix:
include:
- python: 3.8
env: TOXENV=py38
- python: 3.7
env: TOXENV=py37
- python: 3.6
env: TOXENV=py36
- python: 3.8
env: TOXENV=black,flake8
- python: 3.8
env: TOXENV=pydocstyle
- python: 3.8
env: TOXENV=pyright

before_install: sudo apt-get install -y libdbus-1-3 libxkbcommon-x11-0 xvfb herbstluftwm
install: pip install -U tox-travis
script: tox
script: tox -e $TOXENV
deploy:
provider: pypi
distributions: sdist bdist_wheel
user: talley
password:
secure: nQS9mn+K29NpoJtp+eahRIQU9R6i0JxBOObCht1+PJobTRwe+TNB8J86jo251MpPqqo38or8cs3rFZbwuzqxEzsm9eX/a7+r0BEUkyzyDu85kZ6agJhk/xHrao/crqaY8SkQJP1zpg2AUnSTJ4jUKBnUl+2uePHdvJkFZsrNMsa7E898NNt0fBrhD9EgLto1VCiS0hyctT+7wnlIbDrQZPMPtD5BAEePRNxjhTMKXwAt5anKo9l8izpVzeZXrTScFQt2wCm87H3V8m7+hP7w+J2uw/JKmo1ZDPbUiirUXNUxLdpbclgpgPaoykBThOwPgIPxFyId7hW4cAZ4hGYgBbUn+CT/Rg9mj/7ysdGhGsRH27bf9SxnQfNARFiaGN45oTQxZXxASQq91mPjhD1ZJHgfjUEuKuFJ+tcgr7QQgY1Qf9MYCLm5P7QRedBiIeBZ4XjJCnCQzCmHs8sBELWVxTG8MR2XRrgo5/X+eqemPHHxe6iE/gf7LplclV1Hps093BhPcbnirtj27V6JbrVeU9IDExWDUQjxWQz+WbCAnzFPAGU/X1Zl8YrGC3TSDI0KLspW0saxeXEJuiYPIPS1fPl1fKNSrKFVEDWquWgby/79zW5vRYuALPoZFGDmvy+MW5MkifSohLz6q2ukzFPswW/1AutsIwbYf3XEPP5+edA=
on:
branch: master
condition: $TOXENV = py38
python: 3.8
tags: true
repo: tlambert03/magicgui
python: 3.8
14 changes: 10 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,23 @@ and usage examples.

Contributions are welcome!

Please note: `magicgui` attempts to adhere to strict coding rules and employs the following
static analysis tools to prevent errors from being introduced into the codebase:
Please note: `magicgui` attempts to adhere to strict coding rules and employs the
following static analysis tools to prevent errors from being introduced into the
codebase:

- [black](https://github.com/psf/black) - code formatting
- [flake8](https://github.com/PyCQA/flake8) - linting
- [pydocstyle](https://github.com/PyCQA/pydocstyle/) - docstring conventions
- [pyright](https://github.com/microsoft/pyright) - static type anaylsis
- [codecov](https://codecov.io/) - test coverage

When contributing, please consider installing pre-commit in your environment to run all of these checks prior to checking in new code.
To prevent continuous integration failures when contributing, please consider installing
[pre-commit](https://pre-commit.com/) in your environment to run all of these checks
prior to checking in new code.

```shell
$ pre-commit install
pre-commit install
```

To run pyright, you will need to install with `npm install -g pyright`,
then run `pyright`. See [their docs](https://github.com/microsoft/pyright) for details.
4 changes: 1 addition & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,23 @@ python =
3.6: py36

[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 magicgui tests

[testenv:black]
basepython = python
skip_install = true
deps = black==19.10b0
commands = black magicgui tests

[testenv:pydocstyle]
basepython = python
deps = pydocstyle>=5.0.2
commands = pydocstyle

[testenv:pyright]
skip_install = true
whitelist_externals =
npm
npx
commands =
npm install pyright
npx pyright
Expand Down