solving unresolvable issues using --fix and ignoring some issues

This commit is contained in:
Pratham Chauhan
2023-04-04 18:27:30 +05:30
parent ed64986af8
commit c04774b4b1
3 changed files with 8 additions and 5 deletions

5
.github/ruff.toml vendored
View File

@@ -1,5 +1,6 @@
select = ["E"]
ignore = []
ignore = ["E402", "E722", "E902"]
exclude = ["*_pb2.py", "*_pb2.pyi", "capa2yara.py"]
# Same as pycodestyle.
line-length = 180
line-length = 180

View File

@@ -34,7 +34,7 @@ jobs:
- name: Install dependencies
run: pip install -e .[dev]
- name: Lint with ruff
run: ruff --config .github/ruff.toml --exclude "*_pb2.pyi" check .
run: ruff --config .github/ruff.toml check .
- name: Lint with isort
run: isort --profile black --length-sort --line-width 120 --skip-glob "*_pb2.py" -c .
- name: Lint with black