Make isort use .gitignore properly

By using `--skip / --extend-skip .gitignore`, we actually never read the
.gitignore file. We have to use `--skip-gitignore` instead.

This requires Git in the development environment, so we need to install
Git in our CI runners as well.
This commit is contained in:
Alex Pyrgiotis 2023-10-13 17:27:54 +03:00
parent ba5adb33c0
commit f02597aa4f
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ jobs:
# https://github.com/freedomofpress/dangerzone/issues/292#issuecomment-1351368122
command: |
apt-get update
apt-get install -y make python3 python3-poetry --no-install-recommends
apt-get install -y git make python3 python3-poetry --no-install-recommends
poetry install --no-ansi --only lint
- run:
name: Run linters to enforce code style

View file

@ -52,7 +52,7 @@ strip-ansi = "*"
[tool.isort]
profile = "black"
extend_skip = [".gitignore"]
skip_gitignore = true
# This is necessary due to https://github.com/PyCQA/isort/issues/1835
follow_links = false