From b836c39d0e5e3d28784bed60b3853e08c9554870 Mon Sep 17 00:00:00 2001 From: Tomas Tomecek Date: Thu, 15 Dec 2022 12:56:57 +0100 Subject: [PATCH 1/2] utilize pre-commit hook for thoth https://github.com/thoth-station/thoth-pre-commit-hook --- .pre-commit-config.yaml | 7 ++++ .thoth.yaml | 77 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 .thoth.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ea8dbb6e..c297b40e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -53,3 +53,10 @@ repos: hooks: - id: requre-purge stages: [manual, push] + # run this with `pre-commit run thoth-pre-commit-hook --verbose --hook-stage manual` + - repo: https://github.com/thoth-station/thoth-pre-commit-hook + rev: v0.1.3 + hooks: + - id: thoth-pre-commit-hook + # args: [--json, --no-wait] + stages: [manual] diff --git a/.thoth.yaml b/.thoth.yaml new file mode 100644 index 00000000..815ee25a --- /dev/null +++ b/.thoth.yaml @@ -0,0 +1,77 @@ +# This is Thoth's configuration file placed in a root of a repo +# (named as .thoth.yaml) used by Thamos CLI as well as by Thoth bots. Please +# adjust values listed below as desired. + +# A remote Thoth service to talk to: +host: khemenu.thoth-station.ninja + +# Configure TLS verification for communication with remote Thoth instance: +tls_verify: true + +# Format of requirements file, supported are "pip" and "pipenv": +requirements_format: pip +# A path to overlays directory relative to this configuration file. If null provided, no overlays are used. +# Read more about overlays in the README: https://github.com/thoth-station/thamos#overlays-directory +overlays_dir: null +# Allow or disable managing virtual environment for each overlay. +virtualenv: false + +runtime_environments: + - name: 'fedora-37' + # Operating system for which the recommendations should be created: + operating_system: + name: fedora + version: '37' + # Labels to be used during the resolution (key-value pairs). + labels: + # Hardware information for the recommendation engine: + hardware: + # Intel(R) Core(TM) i7-10610U CPU @ 1.80GHz + cpu_family: 6 + cpu_model: 142 + gpu_model: null + # Software configuration of runtime environment: + python_version: '3.11' + cuda_version: null + # Recommendation type - one of: + # * testing + # * stable + # * latest + # * performance + # * security + # See https://thoth-station.ninja/recommendation-types/ + recommendation_type: security + # Platform used for running the application - corresponds to sysconfig.get_platform() call (e.g. 'linux-x86_64') + platform: linux-x86_64 + # Additional options: + openblas_version: null + openmpi_version: null + cudnn_version: null + mkl_version: null + # Base container image used to run the application. + base_image: null + +# +# Configuration of bots: +# +managers: + - name: pipfile-requirements + - name: info + - name: version + configuration: + # A list of maintainers (GitHub or GitLab accounts) of this repository: + maintainers: [] + # A list of assignees to which the opened pull requests and issues should + # be assigned to: + assignees: [] + # Labels for issues and pull requests: + labels: + - bot + # Automatically maintain a changelog file stating features of new + # releases: + changelog_file: true + # Use AI/ML to group messages in a smart way. + changelog_smart: true + - name: update + configuration: + labels: [bot] From 3b0fc4256b723d674bbccfaa54303f996d27bd45 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 15 Dec 2022 12:13:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .thoth.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.thoth.yaml b/.thoth.yaml index 815ee25a..dd150ebe 100644 --- a/.thoth.yaml +++ b/.thoth.yaml @@ -17,11 +17,11 @@ overlays_dir: null virtualenv: false runtime_environments: - - name: 'fedora-37' + - name: "fedora-37" # Operating system for which the recommendations should be created: operating_system: name: fedora - version: '37' + version: "37" # Labels to be used during the resolution (key-value pairs). labels: # Hardware information for the recommendation engine: @@ -31,7 +31,7 @@ runtime_environments: cpu_model: 142 gpu_model: null # Software configuration of runtime environment: - python_version: '3.11' + python_version: "3.11" cuda_version: null # Recommendation type - one of: # * testing