NetworkManager/.gitlab-ci
Thomas Haller 12299ee91e
build: drop "check-python-black" check from autotools
Previously, autotools would detect whether we have "black"
in the path. And if so, it would check formatting during `make check`.

That's problematic. When I run `./contrib/fedora/rpm/build_clean.sh -w test`
in certain cases, it would pick up black, but then fail with

  Traceback (most recent call last):
    File "/usr/bin/black", line 5, in <module>
      from black import patched_main
    File "/usr/lib/python3.6/site-packages/black.py", line 42, in <module>
      from attr import dataclass, evolve, Factory
  ModuleNotFoundError: No module named 'attr'
  make[3]: *** [Makefile:21658: check-python-black] Error 1

That's an installation error of black, but still, during package build
there is no need to check the formatting. We could export
`NMTST_SKIP_PYTHON_BLACK=1` to prevent it, but it's still unnecessary.

We check proper formatting in gitlab-ci. That is enough, it doesn't
need to run during `make check`. In particular, because `black .`
takes 1.5 seconds on my machine.
2022-04-01 14:01:45 +02:00
..
alpine-install.sh gitlab-ci: enable test build on alpine linux 2020-12-11 18:14:10 +01:00
ci.template gitlab-ci: fix archiving build log 2022-03-30 11:25:08 +02:00
config.yml gitlab-ci: bump tag to regenerate containers 2022-03-16 00:58:41 +01:00
debian-install.sh gitlab-ci: make "contrib/debian/REQUIRED_PACKAGES" verbose during container installation 2022-03-16 21:40:54 +01:00
fedora-install.sh gitlab-ci: fix CentOS Linux 8 containers during ".gitlab-ci/fedora-install.sh" 2022-02-21 17:03:36 +01:00
run-test.sh build: drop "check-python-black" check from autotools 2022-04-01 14:01:45 +02:00