Skip to content

Commit 4bc6de1

Browse files
committed
Merge branch 'master' of https://github.com/napari/magicgui
2 parents 9c4ce01 + bea5f2d commit 4bc6de1

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

.github/workflows/test_and_deploy.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
410

511
jobs:
612
test:
@@ -36,9 +42,9 @@ jobs:
3642
uses: codecov/codecov-action@v1
3743

3844
deploy:
45+
if: ${{ github.repository == 'napari/magicgui' && contains(github.ref, 'tags') }}
3946
needs: test
4047
runs-on: ubuntu-latest
41-
if: ${{ github.repository == 'napari/magicgui' && contains(github.ref, 'tags') }}
4248
steps:
4349
- uses: actions/checkout@v2
4450
- name: Set up Python

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v3.3.0
3+
rev: v3.4.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
7-
- repo: https://github.com/timothycrosley/isort
7+
- repo: https://github.com/PyCQA/isort
88
rev: 5.6.4
99
hooks:
1010
- id: isort

tox.ini

+18-13
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,6 @@ PLATFORM =
1414
macos-latest: macos
1515
windows-latest: windows
1616

17-
[testenv:lint]
18-
deps =
19-
flake8
20-
flake8-docstrings
21-
black==20.8b1
22-
commands =
23-
flake8 magicgui
24-
black --check magicgui
25-
26-
[testenv:mypy]
27-
deps = mypy
28-
commands = mypy
29-
3017
[testenv]
3118
platform =
3219
macos: darwin
@@ -43,3 +30,21 @@ extras =
4330
pyside: PySide2
4431
commands =
4532
pytest -v --cov-report=xml --cov=magicgui --basetemp={envtmpdir} {posargs}
33+
34+
35+
[testenv:lint]
36+
skip_install=true
37+
deps =
38+
flake8==3.8.4
39+
isort==5.6.4
40+
black==20.8b1
41+
flake8-docstrings
42+
commands =
43+
flake8 magicgui
44+
black --check magicgui
45+
isort --check magicgui
46+
47+
[testenv:mypy]
48+
skip_install=true
49+
deps = mypy
50+
commands = mypy

0 commit comments

Comments
 (0)