Loading README.md +2 −0 Original line number Diff line number Diff line Loading @@ -345,6 +345,8 @@ This job **disabled by default** and runs [black](https://black.readthedocs.io) | ---------------- | ----------------------------------------------------------------------- | ----------------- | | `black-enabled` / `PYTHON_BLACK_ENABLED` | Set to `true` to enable black job | _none_ (disabled) | When `black` detects malformed code, the result is displayed in the job's output log (as a diff). ### `py-isort` job This job **disabled by default** and runs [isort](https://pycqa.github.io/isort/) on the repo. It is bound to the build stage. Loading templates/gitlab-ci-python.yml +1 −1 Original line number Diff line number Diff line Loading @@ -1296,7 +1296,7 @@ py-black: script: - install_requirements - _pip install black - _run black . --check --extend-exclude '(\/\.cache\/|\/\.venv\/)' - _run black . --check --diff --extend-exclude '(\/\.cache\/|\/\.venv\/)' rules: # exclude if $PYTHON_BLACK_ENABLED not set - if: '$PYTHON_BLACK_ENABLED != "true"' Loading Loading
README.md +2 −0 Original line number Diff line number Diff line Loading @@ -345,6 +345,8 @@ This job **disabled by default** and runs [black](https://black.readthedocs.io) | ---------------- | ----------------------------------------------------------------------- | ----------------- | | `black-enabled` / `PYTHON_BLACK_ENABLED` | Set to `true` to enable black job | _none_ (disabled) | When `black` detects malformed code, the result is displayed in the job's output log (as a diff). ### `py-isort` job This job **disabled by default** and runs [isort](https://pycqa.github.io/isort/) on the repo. It is bound to the build stage. Loading
templates/gitlab-ci-python.yml +1 −1 Original line number Diff line number Diff line Loading @@ -1296,7 +1296,7 @@ py-black: script: - install_requirements - _pip install black - _run black . --check --extend-exclude '(\/\.cache\/|\/\.venv\/)' - _run black . --check --diff --extend-exclude '(\/\.cache\/|\/\.venv\/)' rules: # exclude if $PYTHON_BLACK_ENABLED not set - if: '$PYTHON_BLACK_ENABLED != "true"' Loading