From 9e13f8aadd071d400696733d3cdc74cb4923f361 Mon Sep 17 00:00:00 2001 From: Dorian Turba <froggit.commit.z3jqj@simplelogin.com> Date: Sat, 8 Jul 2023 10:19:13 +0200 Subject: [PATCH] black job no longer require pyproject.toml --- python/quality/package_black/README.md | 6 ------ python/quality/package_black/package_black.yml | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/python/quality/package_black/README.md b/python/quality/package_black/README.md index 46659fe..ebe8a8c 100644 --- a/python/quality/package_black/README.md +++ b/python/quality/package_black/README.md @@ -11,12 +11,6 @@ style guide. 2. Include template in your CI/CD conf (see quick use above) 3. Customize the template if it's relevant -## Variables - -| Name | Description | Default | -|---------------------------|--------------------------------------------------------------------------------------------------------|---------| -| `OPTIONAL_DEPENDENCY_TAG` | If `black` is listed as a main dependency, leave variable empty, otherwise fill it with `[<TAGNAME>]`. | `""` | - ## Add <a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> cartouche to your project README.md ```markdown <a href="https://github.com/psf/black"> diff --git a/python/quality/package_black/package_black.yml b/python/quality/package_black/package_black.yml index e317362..e4c0fb0 100644 --- a/python/quality/package_black/package_black.yml +++ b/python/quality/package_black/package_black.yml @@ -5,7 +5,7 @@ black: - python --version # Debug - python -m venv venv --upgrade-deps || python -m venv venv - source venv/bin/activate - - pip install .[OPTIONAL_DEPENDENCY_TAG] + - pip install black - package_black . --check --diff --quiet only: changes: @@ -13,5 +13,3 @@ black: - tests/**/*.py - .gitlab-ci.yml - pyproject.toml - variables: - OPTIONAL_DEPENDENCY_TAG: "" \ No newline at end of file -- GitLab