We have ruff running in CI doing a ruff check to make sure our python code is formatted correctly.
ruff ignores files in .gitignore by default... but since https://github.com/mozilla/addons-server/commit/90f997a2d2e our .dockerignore has started ignoring .gitignore itself. In CI, where we do not mount the repos from the host, this is causing ruff to run without that .gitignore, and therefore trying to check formatting of files in site-static/.
What happened?
We have
ruff
running in CI doing aruff check
to make sure our python code is formatted correctly.ruff
ignores files in.gitignore
by default... but since https://github.com/mozilla/addons-server/commit/90f997a2d2e our.dockerignore
has started ignoring.gitignore
itself. In CI, where we do not mount the repos from the host, this is causingruff
to run without that.gitignore
, and therefore trying to check formatting of files insite-static/
.That causes https://github.com/mozilla/addons-server/pull/22744 to fail CI because it brings an update of
flatten
, which contains python code not formatted to our standards.What did you expect to happen?
CI builds shouldn't fail for unformatted python files in
site-static/
.We should either:
.gitignore
in.dockerignore
.gitignore
from the host in CIsite-static/
to the paths excluded fromruff
inpyproject.yml
Is there an existing issue for this?
┆Issue is synchronized with this Jira Task