Skip to content

Commit

Permalink
Run black in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Dec 10, 2022
1 parent c1fc70c commit 720e4f5
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/lint.yaml
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
run-linter:
name: Run
name: Lint
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -33,3 +33,23 @@ jobs:

- name: Lint with pylint
run: python3 -m pylint src/galois/

run-formatter:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Upgrade pip
run: python3 -m pip install --upgrade pip

- name: Install the `galois` package with [dev]
run: python3 -m pip install .[dev]

- name: Format with black
run: python3 -m black .

0 comments on commit 720e4f5

Please sign in to comment.