From 896a63a78afca3b7f910c009a15b0549b0698204 Mon Sep 17 00:00:00 2001 From: Luca Bello <36242061+lucabello@users.noreply.github.com> Date: Tue, 7 Feb 2023 20:07:01 +0100 Subject: [PATCH] add badges to README.md and CONTRIBUTING.md (#34) --- CONTRIBUTING.md | 8 ++++++++ README.md | 5 +++++ tox.ini | 5 +---- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d762971..4a0ef1e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,13 @@ # traefik-route-k8s-operator +![GitHub License](https://img.shields.io/github/license/canonical/traefik-route-k8s-operator) +![GitHub Commit Activity](https://img.shields.io/github/commit-activity/y/canonical/traefik-route-k8s-operator) +![GitHub Lines of Code](https://img.shields.io/tokei/lines/github/canonical/traefik-route-k8s-operator) +![GitHub Issues](https://img.shields.io/github/issues/canonical/traefik-route-k8s-operator) +![GitHub PRs](https://img.shields.io/github/issues-pr/canonical/traefik-route-k8s-operator) +![GitHub Contributors](https://img.shields.io/github/contributors/canonical/traefik-route-k8s-operator) +![GitHub Watchers](https://img.shields.io/github/watchers/canonical/traefik-route-k8s-operator?style=social) + ## Developing Create and activate a virtualenv with the development requirements: diff --git a/README.md b/README.md index 28f42af..503d257 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # traefik-route-k8s-operator +[![CharmHub Badge](https://charmhub.io/traefik-route-k8s/badge.svg)](https://charmhub.io/traefik-route-k8s) +[![Release Edge](https://github.com/canonical/traefik-route-k8s-operator/actions/workflows/release-edge.yaml/badge.svg)](https://github.com/canonical/traefik-route-k8s-operator/actions/workflows/release-edge.yaml) +[![Release Libraries](https://github.com/canonical/traefik-route-k8s-operator/actions/workflows/release-libs.yaml/badge.svg)](https://github.com/canonical/traefik-route-k8s-operator/actions/workflows/release-libs.yaml) +[![Discourse Status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.charmhub.io&style=flat&label=CharmHub%20Discourse)](https://discourse.charmhub.io) + ## Description Traefik-route-k8s provides separation of concerns between the general needs of diff --git a/tox.ini b/tox.ini index 2e8033c..1a26ef2 100644 --- a/tox.ini +++ b/tox.ini @@ -68,10 +68,7 @@ deps = commands = charm: mypy {[vars]src_path} {posargs} lib: mypy --python-version 3.8 {[vars]lib_path} {posargs} - lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do \ - lib: if ! git diff $m | grep -q "+LIBPATCH\|+LIBAPI"; then \ - lib: echo "You forgot to bump the version on $m!"; exit 1; \ - lib: fi; done' + lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do if ! git diff $m | grep -q "+LIBPATCH\|+LIBAPI"; then echo "You forgot to bump the version on $m!"; exit 1; fi; done' unit: mypy {[vars]tst_path}/unit {posargs} integration: mypy {[vars]tst_path}/integration {posargs} \ --exclude {[vars]tst_path}/integration/ingress-requirer-mock