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 4831db43 authored by Dorian Turba's avatar Dorian Turba
Browse files

add ruff

parent 7ee61092
No related branches found
No related tags found
No related merge requests found
include:
- remote: 'https://api.r2devops.io/job/r/gitlab/dorianturba/r2devops_catalog/r2_metadata/python_install@latest.yaml'
ruff:
image: python:latest
extends:
- .python_install
stage: code_quality
variables:
PYTHON_SETUP: "pip install ruff"
script:
- python --version # Debug
- python -m venv venv --upgrade-deps || python -m venv venv # upgrade-deps is not supported before 3.9
- source venv/bin/activate
- pip install ruff
- ruff check .
- !reference [.python_install, script]
- ruff check ${PROJECT_PATH}
only:
changes:
- ./**/*.py
- ${PROJECT_PATH}/**/*.py
- .gitlab-ci.yml
- pyproject.toml
- ${PROJECT_PATH}/pyproject.toml
- ${PROJECT_PATH}/.ruff.toml
- ${PROJECT_PATH}/ruff.toml
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "ruff_project"
version = "0.1.0"
authors = [
{ name = "Author Name", email = "author.name@example.com" },
]
description = "A description of what the package is for."
from flake8_project.main import main
__all__ = ['main']
"""Sample main module."""
def main() -> bool:
"""Sample main function."""
print("Hello, world!")
return True
if __name__ == '__main__':
main()
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