From 79190ef2e12f1e683f431f17c06290024e40c32c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 11 May 2021 09:03:26 +0200 Subject: [PATCH] Add doc-clean and lgtm badge --- Makefile | 5 ++++- README.md | 1 + docs/source/conf.py | 4 +++- docs/source/stree.md | 1 + 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 542d18e..2af53ba 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ test: ## Run tests doc: ## Update documentation make -C docs --makefile=Makefile html +doc-clean: ## Update documentation + make -C docs --makefile=Makefile clean + help: ## Show help message @IFS=$$'\n' ; \ help_lines=(`fgrep -h "##" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##/:/'`); \ @@ -39,4 +42,4 @@ help: ## Show help message printf "%-20s %s" $$help_command ; \ printf '\033[0m'; \ printf "%s\n" $$help_info; \ - done \ No newline at end of file + done diff --git a/README.md b/README.md index b8ac6e9..f5024d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ ![CI](https://github.com/Doctorado-ML/STree/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/doctorado-ml/stree/branch/master/graph/badge.svg)](https://codecov.io/gh/doctorado-ml/stree) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/35fa3dfd53a24a339344b33d9f9f2f3d)](https://www.codacy.com/gh/Doctorado-ML/STree?utm_source=github.com&utm_medium=referral&utm_content=Doctorado-ML/STree&utm_campaign=Badge_Grade) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Doctorado-ML/STree.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Doctorado-ML/STree/context:python) # Stree diff --git a/docs/source/conf.py b/docs/source/conf.py index 443436b..eb20407 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,6 +12,7 @@ # import os import sys +import stree sys.path.insert(0, os.path.abspath("../../stree/")) @@ -23,7 +24,8 @@ copyright = "2020 - 2021, Ricardo Montañana Gómez" author = "Ricardo Montañana Gómez" # The full version, including alpha/beta/rc tags -release = "1.0" +version = stree.__version__ +release = version # -- General configuration --------------------------------------------------- diff --git a/docs/source/stree.md b/docs/source/stree.md index cc72399..a525fb8 100644 --- a/docs/source/stree.md +++ b/docs/source/stree.md @@ -3,6 +3,7 @@ [![Codeship Status for Doctorado-ML/STree](https://app.codeship.com/projects/8b2bd350-8a1b-0138-5f2c-3ad36f3eb318/status?branch=master)](https://app.codeship.com/projects/399170) [![codecov](https://codecov.io/gh/doctorado-ml/stree/branch/master/graph/badge.svg)](https://codecov.io/gh/doctorado-ml/stree) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/35fa3dfd53a24a339344b33d9f9f2f3d)](https://www.codacy.com/gh/Doctorado-ML/STree?utm_source=github.com&utm_medium=referral&utm_content=Doctorado-ML/STree&utm_campaign=Badge_Grade) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/Doctorado-ML/STree.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Doctorado-ML/STree/context:python) Oblique Tree classifier based on SVM nodes. The nodes are built and splitted with sklearn SVC models. Stree is a sklearn estimator and can be integrated in pipelines, grid searches, etc.