Use isort 5

Run `isort --profile black --length-sort --line-width 120 .`

Update documentation as well.
This commit is contained in:
Ana María Martínez Gómez
2020-07-16 18:59:28 +02:00
parent a02ed5c367
commit 07764fb31f
13 changed files with 14 additions and 15 deletions

View File

@@ -59,7 +59,7 @@ You'll find that the `capa.exe` (Windows) or `capa` (Linux) executables in your
We use the following tools to ensure consistent code style and formatting:
- [black](https://github.com/psf/black) code formatter, with `-l 120`
- [isort](https://pypi.org/project/isort/) code formatter, with `--length-sort --line-width 120`
- [isort 5](https://pypi.org/project/isort/) code formatter, with `--profile black --length-sort --line-width 120`
- [dos2unix](https://linux.die.net/man/1/dos2unix) for UNIX-style LF newlines
- [capafmt](https://github.com/fireeye/capa/blob/master/scripts/capafmt.py) rule formatter