Skip to content

Commit

Permalink
execute-mypy-multi: make parameters named, run mypy in 10 parallel (#381
Browse files Browse the repository at this point in the history
)
  • Loading branch information
thenno authored Mar 14, 2024
1 parent 2e0b991 commit 9a22c4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ jobs:
- name: run mypy
run: |
. /venv/bin/activate
execute-mypy-multi /src
execute-mypy-multi /src --processes=5
env:
PYTHONUNBUFFERED: "1"

Expand Down
2 changes: 1 addition & 1 deletion terrarium/bi_ci/bi_ci/execute_mypy_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def run_mypy(request: MypyRequest, cache_queue: CacheQueue) -> MypyResult:
)


def main(root: Path, targets_file: Path = None, processes: int = 1) -> None: # type: ignore # clize can't recognize type annotation "Optional"
def main(root: Path, *, targets_file: Path = None, processes: int = 1) -> None: # type: ignore # clize can't recognize type annotation "Optional"
"""
Run mypy on the datalens backend code.
We have to run mypy separately on each project
Expand Down

0 comments on commit 9a22c4a

Please sign in to comment.