From ed64986af866e8c8fe43ed6ae963f9602d899d84 Mon Sep 17 00:00:00 2001 From: Pratham Chauhan Date: Thu, 30 Mar 2023 14:22:11 +0530 Subject: [PATCH] adds a ruff.toml file for config --- .github/ruff.toml | 5 +++++ .github/workflows/tests.yml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .github/ruff.toml diff --git a/.github/ruff.toml b/.github/ruff.toml new file mode 100644 index 00000000..7d208862 --- /dev/null +++ b/.github/ruff.toml @@ -0,0 +1,5 @@ +select = ["E"] +ignore = [] + +# Same as pycodestyle. +line-length = 180 \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a0f12b49..b5fdb32f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -34,7 +34,7 @@ jobs: - name: Install dependencies run: pip install -e .[dev] - name: Lint with ruff - run: ruff check . + run: ruff --config .github/ruff.toml --exclude "*_pb2.pyi" check . - name: Lint with isort run: isort --profile black --length-sort --line-width 120 --skip-glob "*_pb2.py" -c . - name: Lint with black