diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bc9c9ef6..e0bd7e80 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ --- repos: - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.1.9 + rev: v1.1.13 hooks: - id: remove-tabs - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.1.0 hooks: - id: trailing-whitespace - id: check-merge-conflict @@ -23,32 +23,25 @@ repos: - id: debug-statements - repo: https://github.com/pycqa/pydocstyle.git - rev: 5.1.1 + rev: 6.1.1 hooks: - id: pydocstyle - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 + rev: v4.1.0 hooks: - id: check-toml - id: check-yaml - id: end-of-file-fixer - id: trailing-whitespace - - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.800 - hooks: - - id: mypy - exclude: '^(docs|tasks|tests)|setup\.py' - args: [--ignore-missing-imports] - - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 22.3.0 hooks: - id: black - repo: https://gitlab.com/PyCQA/flake8 - rev: '3.8.4' + rev: '3.9.2' hooks: - id: flake8 additional_dependencies: ['pep8-naming'] @@ -56,6 +49,6 @@ repos: args: ['--ignore', 'E2,W5', '--select', 'E,W,F,N', '--max-line-length=120'] - repo: https://github.com/mgedmin/check-manifest - rev: '0.46' + rev: '0.48' hooks: - id: check-manifest diff --git a/.prow.yaml b/.prow.yaml index 6a3c51f0..0b3f21ca 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -6,7 +6,7 @@ presubmits: context: aicoe-ci/prow/pre-commit spec: containers: - - image: quay.io/thoth-station/thoth-precommit-py38:v0.12.5 + - image: quay.io/thoth-station/thoth-precommit-py38:v0.14.3 command: - "pre-commit" - "run" @@ -26,7 +26,7 @@ presubmits: context: aicoe-ci/prow/pytest spec: containers: - - image: quay.io/thoth-station/thoth-pytest-py38:v0.12.9 + - image: quay.io/thoth-station/thoth-pytest-py38:v0.14.3 command: - "/bin/run-pytest" resources: diff --git a/CHANGELOG.md b/CHANGELOG.md index 2668213f..557ce6d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # Changelog for the Thoth common module +## Release 0.36.2 (2022-04-12T14:30:11) +* f60c5ce Replace slash with dash in repo slug [scheduling mi workflows] (#1249) +* cc06aad Moving out the mypy as separate check +* d2b808b Update mypy config python version to 3.8 +* 54c810c Fix pre-commit version to be ==2.15.0 +* 53b4441 Update prow image tags +* 9c87ab5 Autoupdate pre-commit +* 11c303f :arrow_up: Automatic update of dependencies by Kebechet for the ubi8 environment +* e0dc247 Send messages based on template defaults, do not hardcode (#1231) + ## Release 0.36.1 (2022-03-14T15:17:12) * Remove rfc5424-logging-handler from dependencies * Remove venv import diff --git a/Pipfile b/Pipfile index 0012eaaa..a652d086 100644 --- a/Pipfile +++ b/Pipfile @@ -9,7 +9,7 @@ daiquiri = "*" requests = "*" sentry-sdk = "*" kubernetes = ">=12.0.1" # required pyyaml>=5.3.1 -openshift = "==0.12.0" +openshift = "~=0.12.0" attrs = "*" pyyaml = ">=5.3.1" flexmock = "*" @@ -23,7 +23,7 @@ pylint = "*" coala = "*" pytest-mypy = "*" mypy = "*" -pre-commit = "==2.0.1" +pre-commit = "==2.15.0" [requires] python_version = "3.8" diff --git a/Pipfile.lock b/Pipfile.lock index e08aa968..c213e7c2 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -382,14 +382,6 @@ ], "version": "==1.4.4" }, - "aspy.yaml": { - "hashes": [ - "sha256:463372c043f70160a9ec950c3f1e4c3a82db5fca01d334b6bc89c7164d744bdc", - "sha256:e7c742382eff2caed61f87a39d13f99109088e5e93f04d76eb8d4b28aa143f45" - ], - "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", - "version": "==1.3.0" - }, "astroid": { "hashes": [ "sha256:4e5ba10571e197785e312966ea5efb2f5783176d4c1a73fa922d474ae2be59f7", @@ -694,11 +686,11 @@ }, "pre-commit": { "hashes": [ - "sha256:0385479a0fe0765b1d32241f6b5358668cb4b6496a09aaf9c79acc6530489dbb", - "sha256:bf80d9dd58bea4f45d5d71845456fdcb78c1027eda9ed562db6fa2bd7a680c3a" + "sha256:3c25add78dbdfb6a28a651780d5c311ac40dd17f160eb3954a0c59da40a505a7", + "sha256:a4ed01000afcb484d9eb8d504272e642c4c4099bbad3a6b27e519bd6a3e928a6" ], "index": "pypi", - "version": "==2.0.1" + "version": "==2.15.0" }, "py": { "hashes": [ diff --git a/mypy.ini b/mypy.ini index 38a629a2..43ee8ad8 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.6 +python_version = 3.8 warn_unused_configs = true disallow_subclassing_any = true disallow_any_generics = true diff --git a/thoth/common/__init__.py b/thoth/common/__init__.py index f767d43f..f9804af1 100644 --- a/thoth/common/__init__.py +++ b/thoth/common/__init__.py @@ -39,7 +39,7 @@ from .workflows import WorkflowManager __name__ = "thoth-common" -__version__ = "0.36.1" +__version__ = "0.36.2" __all__ = [ diff --git a/thoth/common/openshift.py b/thoth/common/openshift.py index af6b4035..f9f9e1ea 100644 --- a/thoth/common/openshift.py +++ b/thoth/common/openshift.py @@ -1492,7 +1492,7 @@ def schedule_mi_workflow( """ prefixes = [] if repository: - prefixes.append(repository) + prefixes.append("-".join(repository.split("/"))) if create_knowledge: prefixes.append("analysis") if mi_merge: