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

💚 black CI by GitHub Actions #30 #38

Merged
merged 11 commits into from
Jul 22, 2020
27 changes: 27 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
tkoyama010 marked this conversation as resolved.
Show resolved Hide resolved
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Python Code Quality and Lint
uses: ricardochaves/python-lint@v1.1.0
with:
python-root-list: pyvistaqt
use-pylint: false
use-pycodestyle: false
use-flake8: false
tkoyama010 marked this conversation as resolved.
Show resolved Hide resolved
use-black: true
use-mypy: false
use-isort: false
tkoyama010 marked this conversation as resolved.
Show resolved Hide resolved
extra-pylint-options: --disable=F0401
extra-pycodestyle-options: --max-line-length=88 --ignore="W503"
extra-mypy-options: --no-implicit-optional
extra-flake8-options: --max-line-length=88
tkoyama010 marked this conversation as resolved.
Show resolved Hide resolved
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ PyVistaQt
:target: https://codecov.io/gh/pyvista/pyvistaqt
:alt: Codecov

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat-square
:target: https://github.com/psf/black
:alt: black

``pyvistaqt`` is a helper module for ``pyvista`` to enable you to
plot using ``pyqt`` by placing a vtk-widget into a background render.
This can be quite useful when you desire to update your plot in
Expand Down
2 changes: 1 addition & 1 deletion pyvistaqt/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
version_info = 0, 1, 1

# Nice string for the version
__version__ = '.'.join(map(str, version_info))
__version__ = ".".join(map(str, version_info))
Loading