Upgrade to isort 5 (#2164)

* Upgrade to isort 5

isort 5 now can also handle imports not at top, hence some new locations now get sorted automatically.

* Move isort config from .isort.cfg to pyproject.toml

* isort: remove exclusion of some source files

isort now only ignores auto-generated files. The other files had been excluded because old isort could not handle imports not placed on the top.

* isort: use skip_glob to ignore resources.py

This should fix issues with the `skip` parameter on Windows.
This commit is contained in:
Philipp Wolfer
2022-10-29 15:44:12 +02:00
committed by GitHub
parent a86d592314
commit e46419fb43
11 changed files with 58 additions and 47 deletions

View File

@@ -28,7 +28,7 @@ jobs:
pip install -r requirements.txt
- name: Check coding style
run: |
pip install flake8 "isort<5"
pip install flake8 "isort>=5"
flake8 picard test --count --show-source --statistics
isort --check-only --diff --recursive picard test
- name: Test with pytest