From 052858174c4e435b77693cb3023ebd8e5c81829f Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Fri, 30 Apr 2021 19:44:22 +0200 Subject: Add pre-commit CI in continuous integration --- .github/workflows/ci.yaml | 2 +- .pre-commit-config.yaml | 2 ++ README.rst | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d3e04ff2..6e6f39a8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -110,7 +110,7 @@ jobs: run: | . venv/bin/activate pip install -e . - pre-commit run --all-files + pre-commit run pylint --all-files prepare-tests-linux: name: Prepare tests for Python ${{ matrix.python-version }} (Linux) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d62b4c3f..8dc95c32 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,5 @@ +ci: + skip: [pylint] repos: - repo: https://github.com/myint/autoflake rev: v1.4 diff --git a/README.rst b/README.rst index f78a467e..486c78b0 100644 --- a/README.rst +++ b/README.rst @@ -18,6 +18,10 @@ Astroid .. image:: https://img.shields.io/badge/code%20style-black-000000.svg :target: https://github.com/ambv/black +.. image:: https://results.pre-commit.ci/badge/github/PyCQA/astroid/master.svg + :target: https://results.pre-commit.ci/latest/github/PyCQA/astroid/master + :alt: pre-commit.ci status + .. |tideliftlogo| image:: https://raw.githubusercontent.com/PyCQA/astroid/master/doc/media/Tidelift_Logos_RGB_Tidelift_Shorthand_On-White.png :width: 75 :height: 60 -- cgit v1.2.1