Voici la documentation : https://geoplateforme.pages.gpf-tech.ign.fr/documentation

Skip to content
Validations sur la source (12)
......@@ -27,7 +27,6 @@ variables:
PIP_PROGRESS_BAR: "off"
PIP_RETRIES: 0
PROJECT_FOLDER: "gpf_check_md5"
WITH_DOCKER_JOBS: "false"
# Pip's cache doesn't store the python packages
# https://pip.pypa.io/en/stable/reference/pip_install/#caching
......@@ -44,7 +43,8 @@ cache:
# -- LINT JOBS -------------------------------------------------------------------------
git-hooks:
stage: lint
image: python:3.9
image:
name: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9
variables:
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
cache:
......@@ -65,7 +65,7 @@ git-hooks:
flake8:
stage: lint
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
only:
changes:
- "**/*.py"
......@@ -82,7 +82,7 @@ sast:
# -- TEST JOBS --------------------------------------------------------------------------
test:
stage: test
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
# filter disabled because sonar job requires it and always runs...
# only:
# changes:
......@@ -113,7 +113,7 @@ test:
# -- BUILD JOBS -------------------------------------------------------------------------
build:pip-wheel:
stage: build
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
only:
refs:
- main
......@@ -130,7 +130,7 @@ build:pip-wheel:
build:documentation:licenses:
stage: build
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
only:
refs:
- main
......@@ -150,7 +150,7 @@ build:documentation:licenses:
build:documentation:
stage: build
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
only:
refs:
- main
......@@ -174,7 +174,7 @@ build:documentation:
# -- DEPLOYMENT JOBS -------------------------------------------------------------------
gitlab:pypi:
stage: deploy
image: python:3.9-slim-bullseye
image: 690uto8c.gra7.container-registry.ovh.net/gpf-dockerhub/library/python:3.9-slim-bullseye
variables:
GIT_STRATEGY: none
TWINE_PASSWORD: "${CI_JOB_TOKEN}"
......
......@@ -2,7 +2,7 @@ exclude: ".venv|__pycache__|tests/dev/|tests/fixtures/"
fail_fast: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
......@@ -18,18 +18,18 @@ repos:
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pycqa/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
args:
......
......@@ -16,6 +16,11 @@ Unreleased
-->
## 0.6.1 - 2022-03-17
- Fix tag release 1
## 0.6.0 - 2022-12-20
- Rename main folder into package name to avoid conflict
......
......@@ -40,7 +40,7 @@ __uri_repository__ = (
__uri_tracker__ = f"{__uri_repository__}issues/"
__uri__ = __uri_repository__
__version__ = "0.6.0"
__version__ = "0.6.1"
__version_info__ = tuple(
[
int(num) if num.isdigit() else num
......
......@@ -4,7 +4,6 @@
# standard lib
import argparse
import logging
import sys
from datetime import datetime
from os import getenv
......@@ -19,6 +18,7 @@ from gpf_entrepot_toolbelt.orchestrator.models import (
)
from gpf_entrepot_toolbelt.orchestrator.status import Status
from gpf_entrepot_toolbelt.utils.dict_counter import count_dict_values
from gpf_entrepot_toolbelt.utils.gpf_logger import gpf_logger_script
# package
from gpf_check_md5.__about__ import (
......@@ -123,18 +123,7 @@ def main(argv: List[str] = None):
else:
args.verbosity = 0
logging.basicConfig(
level=args.verbosity,
format="%(asctime)s||%(levelname)s||%(module)s||%(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
console = logging.StreamHandler()
console.setLevel(args.verbosity)
# add the handler to the root logger
logger = logging.getLogger(__title_clean__)
logger.debug(f"Log level set: {logging.getLevelName(args.verbosity)}")
logger = gpf_logger_script(args.verbosity, __title_clean__)
# -- RUN LOGIC --
......
# change index-url for next lines
--extra-index-url https://gitlab.gpf-tech.ign.fr/api/v4/groups/55/-/packages/pypi/simple
gpf-entrepot-toolbelt>=0.2,<1
gpf-entrepot-toolbelt>=0.11.2,<1
......@@ -8,4 +8,4 @@ flake8-builtins>=2,<3
flake8-docstrings>=1.6,<1.7
flake8-eradicate>=1,<2
flake8-isort>=5,<6
pre-commit>=2.20,<2.21
pre-commit>=2.20,<3.1