Skip to content

Commit

Permalink
feat: use black as linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaihui committed Dec 13, 2023
1 parent 7b73381 commit 96e5dd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
which python
pip install pytest torch cloudpickle cryptography
pip install ray==2.0.0
pip install flake8 # For code style checking
pip install black
- name: Lint
run: |
. py3/bin/activate
flake8
black --check --diff .
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 96e5dd6

Please sign in to comment.