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