add isort and mypy test
This commit is contained in:
parent
a62a9e8ec8
commit
3e574189c7
2 changed files with 30 additions and 3 deletions
|
@ -10,19 +10,33 @@ clone:
|
|||
|
||||
pipeline:
|
||||
|
||||
# check shell scripts with shfmt
|
||||
# check code style - shell
|
||||
test-shfmt:
|
||||
image: 'cr.44net.ch/drone-plugins/test'
|
||||
pull: true
|
||||
commands:
|
||||
- shfmt -d -i 4 -bn -ci -sr .
|
||||
|
||||
# check python scripts with black
|
||||
# check code style - python
|
||||
test-black:
|
||||
image: 'cr.44net.ch/drone-plugins/test'
|
||||
pull: true
|
||||
commands:
|
||||
- black --check --diff --color .
|
||||
- black --check --diff .
|
||||
|
||||
# check imports - python
|
||||
test-isort:
|
||||
image: 'cr.44net.ch/drone-plugins/test'
|
||||
pull: true
|
||||
commands:
|
||||
- isort --check-only --diff .
|
||||
|
||||
# check static typing - python
|
||||
test-mypy:
|
||||
image: 'cr.44net.ch/drone-plugins/test'
|
||||
pull: true
|
||||
commands:
|
||||
- mypy --install-types --non-interactive --show-error-context --show-column-numbers --show-error-codes mangadlp/
|
||||
|
||||
# test code and generate coverage report
|
||||
test-coverage-pytest:
|
||||
|
|
13
README.md
13
README.md
|
@ -2,11 +2,24 @@
|
|||
|
||||
## python script to download mangas
|
||||
|
||||
#### CI/CD:
|
||||
|
||||
[![status-badge](https://ci.44net.ch/api/badges/olofvndrhr/manga-dlp/status.svg)](https://ci.44net.ch/olofvndrhr/manga-dlp)
|
||||
|
||||
#### Code Analysis:
|
||||
|
||||
[![Quality Gate Status](https://sonarqube.44net.ch/api/project_badges/measure?project=olofvndrhr%3Amanga-dlp&metric=alert_status&token=f9558470580eea5b4899cf33f190eee16011346d)](https://sonarqube.44net.ch/dashboard?id=olofvndrhr%3Amanga-dlp)
|
||||
[![Coverage](https://sonarqube.44net.ch/api/project_badges/measure?project=olofvndrhr%3Amanga-dlp&metric=coverage&token=f9558470580eea5b4899cf33f190eee16011346d)](https://sonarqube.44net.ch/dashboard?id=olofvndrhr%3Amanga-dlp)
|
||||
[![Bugs](https://sonarqube.44net.ch/api/project_badges/measure?project=olofvndrhr%3Amanga-dlp&metric=bugs&token=f9558470580eea5b4899cf33f190eee16011346d)](https://sonarqube.44net.ch/dashboard?id=olofvndrhr%3Amanga-dlp)
|
||||
|
||||
#### Meta:
|
||||
|
||||
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
|
||||
[![types - Mypy](https://img.shields.io/badge/types-Mypy-blue.svg)](https://github.com/python/mypy)
|
||||
[![imports - isort](https://img.shields.io/badge/imports-isort-ef8336.svg)](https://github.com/pycqa/isort)
|
||||
[![License - MIT](https://img.shields.io/badge/license-MIT-9400d3.svg)](https://snyk.io/learn/what-is-mit-license/)
|
||||
|
||||
---
|
||||
|
||||
## Description
|
||||
|
||||
|
|
Loading…
Reference in a new issue