ci: add job to check Python formatting

This commit is contained in:
Gabriel Ferreira
2023-10-28 12:52:31 -03:00
parent bfc875a91d
commit 32e11cc445

View File

@@ -132,3 +132,22 @@ cmake-format:
- ./ns3 configure --enable-modules=core
- ./ns3 build cmake-format-check
timeout: 1h
# Check Python format
.python-format:
stage: .pre
image: python:slim
before_script:
- pip install black isort
script:
- black --check .
- isort --check .
timeout: 1h
python-format-latest:
extends: .python-format
image: python:slim
python-format-3.6:
extends: .python-format
image: python:3.6-slim