/Gitlab-python-package-template

This is cookiecutter template for generation python package project with gitlab ci/cd included.

Primary LanguagePythonMIT LicenseMIT

📦 Gitlab python package template

This is cookiecutter template for generation python package project with gitlab ci/cd included.


🍰 How to use it

pip install cookiecutter

cookiecutter https://github.com/KochankovID/Gitlab-python-package-template.git

⚙️️ GitLab CI/CD environs

You need to set these variables in the repository settings.

  • GL_TOKEN - personal access token for GitLab. Needed for making version bumping commits from ci/cd.
  • REPOSITORY_USERNAME - Name of the access token for package registry. Needed for package uploading from ci/cd.
  • REPOSITORY_PASSWORD - The access token for package registry. Needed for package uploading from ci/cd.

🧸 Summarise

  1. pip install cookiecutter
  2. cookiecutter https://github.com/KochankovID/Gitlab-python-package-template.git
  3. Fill ci/cd variables

✨ Features

  • GitLab CI/CD
    • Linters (pre-commit)
      • Trailing-whitespace
      • Pyupgrade
      • Prettier
      • Isort
      • Black
      • Flake 8
      • Mypy
      • Pylint
      • Docstring formatter
      • Autoflake
      • Poetry check
    • Tests
    • Release (tag version bumping)
    • Documentation (TODO)
  • Pre-commit hooks
  • Readme
  • Contributing
  • License