Skip to content

Commit

Permalink
Add lint configuration and run in CI (Qiskit#27)
Browse files Browse the repository at this point in the history
This commit adds a lint configuration based on the current pattern used
in upstream Qiskit. Leverage black for auto code formatting and then
pylint for a deeper analysis and catch common issues. The code style is
updated to then conform to these guidelines.

Fixes Qiskit#23
  • Loading branch information
mtreinish authored May 10, 2021
1 parent e282242 commit 0e8f0fc
Show file tree
Hide file tree
Showing 21 changed files with 724 additions and 217 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ jobs:
python -m pip install -U tox setuptools virtualenv wheel
- name: Install and Run Tests
run: tox -e py
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: setup-python-3.7
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install-requirements
run: |
python -m pip install --upgrade pip tox virtualenv wheel
- name: docs
run: tox -e lint
docs:
name: docs
runs-on: ubuntu-latest
Expand All @@ -45,8 +59,7 @@ jobs:
- name: install-requirements
run: |
sudo apt-get install -y graphviz pandoc
python -m pip install --upgrade pip tox
python -m pip install -e .
python -m pip install --upgrade pip tox virtualenv wheel
- name: docs
run: tox -e docs
- name: Compress Artifacts
Expand Down
Loading

0 comments on commit 0e8f0fc

Please sign in to comment.