Skip to content

Commit

Permalink
🆕 black CI by GitHub Actions #30 (#38)
Browse files Browse the repository at this point in the history
* 🆕 black CI by GitHub Actions

* 📛 black

* 🔧 .github/workflows/pythonpackage.yml

* 👕 reformat by black

* ⬆️ .github/workflows/pythonpackage.yml

* ⬆️ .github/workflows/pythonpackage.yml

* ⬆️ .github/workflows/pythonpackage.yml

* ⬆️ .github/workflows/pythonpackage.yml

* 🆕 black in Makefile

* 🗑️ remove from doctest

* ♻️ commit for retry CI
  • Loading branch information
tkoyama010 authored Jul 22, 2020
1 parent 7ee4f50 commit 49ac22b
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 121 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will run lint
# 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/[email protected]
with:
python-root-list: pyvistaqt
use-pylint: false
use-pycodestyle: false
use-flake8: false
use-black: true
use-mypy: false
use-isort: false
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Simple makefile to simplify repetitive build env management tasks under posix

BLACK_DIRS ?= ./pyvistaqt/
CODESPELL_DIRS ?= ./
CODESPELL_SKIP ?= "*.pyc,*.txt,*.gif,*.png,*.jpg,*.ply,*.vtk,*.vti,*.js,*.html,*.doctree,*.ttf,*.woff,*.woff2,*.eot,*.mp4,*.inv,*.pickle,*.ipynb,flycheck*,./.git/*,./.hypothesis/*,*.yml,./docs/_build/*,./docs/images/*,./dist/*,./.ci/*"
CODESPELL_IGNORE ?= "ignore_words.txt"
Expand All @@ -8,6 +9,10 @@ all: doctest

doctest: codespell pydocstyle

black:
@echo "Running black"
@black $(BLACK_DIRS)

codespell:
@echo "Running codespell"
@codespell $(CODESPELL_DIRS) -S $(CODESPELL_SKIP) -I $(CODESPELL_IGNORE)
Expand Down
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

0 comments on commit 49ac22b

Please sign in to comment.