mirror of
https://github.com/mandiant/capa.git
synced 2025-12-29 22:20:48 -08:00
ci: ignore syntax, type checking for protobuf generated files
This commit is contained in:
3
.github/mypy/mypy.ini
vendored
3
.github/mypy/mypy.ini
vendored
@@ -1,4 +1,7 @@
|
||||
[mypy]
|
||||
exclude = (?x)(
|
||||
_pb2\.py$ # protobuf generated files
|
||||
)
|
||||
|
||||
[mypy-halo.*]
|
||||
ignore_missing_imports = True
|
||||
|
||||
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
@@ -34,9 +34,9 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: pip install -e .[dev]
|
||||
- name: Lint with isort
|
||||
run: isort --profile black --length-sort --line-width 120 -c .
|
||||
run: isort --profile black --length-sort --line-width 120 --skip-glob "*_pb2.py" -c .
|
||||
- name: Lint with black
|
||||
run: black -l 120 --check .
|
||||
run: black -l 120 --extend-exclude ".*_pb2.py" --check .
|
||||
- name: Lint with pycodestyle
|
||||
run: pycodestyle --show-source capa/ scripts/ tests/
|
||||
- name: Check types with mypy
|
||||
|
||||
Reference in New Issue
Block a user