adds a ruff.toml file for config

This commit is contained in:
Pratham Chauhan
2023-03-30 14:22:11 +05:30
parent 84052c3ac5
commit ed64986af8
2 changed files with 6 additions and 1 deletions

5
.github/ruff.toml vendored Normal file
View File

@@ -0,0 +1,5 @@
select = ["E"]
ignore = []
# Same as pycodestyle.
line-length = 180

View File

@@ -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