Skip to content

Commit

Permalink
feat: add black linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaihui committed Dec 13, 2023
1 parent 7b73381 commit d128798
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/black.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: Python Linter
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
python-linter:
uses: rayfed/.github/.github/workflows/python-linter.yml@main
14 changes: 14 additions & 0 deletions .isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[settings]
# This is to make isort compatible with Black. See
# https://black.readthedocs.io/en/stable/the_black_code_style.html#how-black-wraps-lines.
line_length=88
profile=black
multi_line_output=3
include_trailing_comma=True
use_parentheses=True
float_to_top=True
filter_files=True

known_local_folder=ray
known_third_party=grpc
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER

0 comments on commit d128798

Please sign in to comment.