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

add flake8

parent 5ec88054
No related branches found
No related tags found
No related merge requests found
Pipeline #22042 failed
stages:
- test
- code_quality
- test
include:
- local: 'templates/python/testing/pytest/pytest.yml'
- local: 'templates/python/code_quality/flake8/flake8.yml'
pytest:
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "tests/pytest_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH} pytest"
flake8:
variables:
IMAGE_TAG: "latest"
PROJECT_PATH: "tests/flake8_project"
PYTHON_SETUP: "pip install ${PROJECT_PATH} flake8"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[project]
name = "r2devops_catalog"
version = "0.1.0"
authors = [
{ name = "Dorian Turba", email = "author.name@example.com" },
]
description = "A description of what the package is for."
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "flake8_project"
version = "0.1.0"
authors = [
{ name = "Author Name", email = "author.name@example.com" },
]
description = "A description of what the package is for."
......@@ -3,7 +3,7 @@ requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "test_project"
name = "pytest_project"
version = "0.1.0"
authors = [
{ name = "Author Name", email = "author.name@example.com" },
......
from pytest_project.main import main
__all__ = ['main']
"""Sample main module."""
def main() -> bool:
"""Sample main function."""
print("Hello, world!")
return True
if __name__ == '__main__':
main()
"""Sample test module."""
from test_project import main
from pytest_project import main
def test_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