From d128798257fdedb60c71402499a0ae4e95e3e7f3 Mon Sep 17 00:00:00 2001 From: "albert.zah" Date: Wed, 13 Dec 2023 04:25:53 +0000 Subject: [PATCH] feat: add black linter. --- .github/workflows/black.yaml | 12 ++++++++++++ .isort.cfg | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/black.yaml create mode 100644 .isort.cfg diff --git a/.github/workflows/black.yaml b/.github/workflows/black.yaml new file mode 100644 index 0000000..185ff3a --- /dev/null +++ b/.github/workflows/black.yaml @@ -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 \ No newline at end of file diff --git a/.isort.cfg b/.isort.cfg new file mode 100644 index 0000000..5f06acb --- /dev/null +++ b/.isort.cfg @@ -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 \ No newline at end of file