Update conda recipe to allow building without git #137
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: [push, pull_request] | |
jobs: | |
flake8-black: | |
runs-on: ubuntu-latest | |
name: flake8-black | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python environment | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Lint with flake8 | |
run: | | |
pip install flake8 | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 python --config python/setup.cfg --count --select=E9,F63,F7,F82 --show-source --statistics | |
# exit-zero treats all errors as warnings. | |
flake8 python --config python/setup.cfg --count --exit-zero --max-complexity=10 --statistics | |
- name: Check formatting with black | |
run: | | |
pip install black | |
black --check --diff python |