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

WIP [REFACTORING] Use black for autoformatting #4453

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/flake8-linting.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Check PEP8 compliance with flake8
name: Check PEP8 compliance with flake8 and autoformat with black

on: [push, pull_request]

Expand All @@ -15,3 +15,8 @@ jobs:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v2
- name: black autoformat check
uses: psf/black@stable
with:
options: "--check --diff"
version: "~= 23.0"
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
repos:
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v2.0.4
- repo: https://github.com/psf/black
rev: 23.7.0
hooks:
- id: autopep8
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
- id: flake8
Loading