Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 79237a45 authored by Dorian Turba's avatar Dorian Turba
Browse files

package black template

parents
No related branches found
No related tags found
No related merge requests found
## Objective
Run [Black](https://github.com/psf/black) on your Python code to ensure it complies with the coding style
guide.
## How to use it
1. Create a [python package](https://packaging.python.org/en/latest/tutorials/packaging-projects/).
2. Include template in your CI/CD conf (see quick use above)
3. Customize the template if it's relevant
files:
template: ./docker_build/docker_build.yml
documentation: ./docker_build/README.md
changelog: ./docker_build/CHANGELOG.md
data:
description: "Build and publish a Docker image"
icon: 🐳
public: false
labels:
- Docker
- Build
license: MIT
deprecated: false
\ No newline at end of file
black:
image: python:latest
stage: quality
script:
- python --version # Debug
- python -m venv venv --upgrade-deps || python -m venv venv
- source venv/bin/activate
- pip install .[QUALITY]
- package_black . --check --diff --quiet
only:
changes:
- src/**/*.py
- tests/**/*.py
- .gitlab-ci.yml
- pyproject.toml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment