From 4f0414b28facc72ac564ae1b196e30508563b8cd Mon Sep 17 00:00:00 2001 From: Leonardo Lazzaro Date: Wed, 19 May 2021 19:23:15 -0300 Subject: [PATCH] remove code health badge and add pre-commit --- .pre-commit-config.yaml | 28 ++++++++++++++++++++++++++++ README.md | 1 - 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..ffad2893 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,28 @@ +exclude: 'docs|node_modules|migrations|.git|.tox' +default_stages: [commit] +fail_fast: true + +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + + - repo: https://github.com/psf/black + rev: 21.4b2 + hooks: + - id: black + + - repo: https://github.com/timothycrosley/isort + rev: 5.8.0 + hooks: + - id: isort + + - repo: https://gitlab.com/pycqa/flake8 + rev: 3.9.1 + hooks: + - id: flake8 + args: ['--config=setup.cfg'] + additional_dependencies: [flake8-isort] diff --git a/README.md b/README.md index a7f95f21..ca815021 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,6 @@ Django Scheduler [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/llazzaro/django-scheduler) [](https://travis-ci.org/llazzaro/django-scheduler) -[![Code Health](https://landscape.io/github/llazzaro/django-scheduler/master/landscape.svg?style=flat)](https://landscape.io/github/llazzaro/django-scheduler/master) [](https://coveralls.io/r/llazzaro/django-scheduler) [](https://pypi.python.org/pypi/django-scheduler) [![Documentation Status](https://readthedocs.org/projects/django-scheduler/badge/)](https://django-scheduler.readthedocs.io/)