test_runner: replace yapf with black and isort

This commit is contained in:
Alexander Bayandin
2022-08-17 15:05:37 +01:00
committed by Alexander Bayandin
parent 277f2d6d3d
commit 6b2e1d9065
7 changed files with 496 additions and 409 deletions

View File

@@ -112,11 +112,12 @@ Run `poetry shell` to activate the virtual environment.
Alternatively, use `poetry run` to run a single command in the venv, e.g. `poetry run pytest`.
### Obligatory checks
We force code formatting via `yapf` and type hints via `mypy`.
Run the following commands in the repository's root (next to `setup.cfg`):
We force code formatting via `black`, `isort` and type hints via `mypy`.
Run the following commands in the repository's root (next to `pyproject.toml`):
```bash
poetry run yapf -ri . # All code is reformatted
poetry run isort . # Imports are reformatted
poetry run black . # All code is reformatted
poetry run mypy . # Ensure there are no typing errors
```