diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c153672f1..ab1d71e98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,34 +1,34 @@ repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.4.0 - hooks: - - id: no-commit-to-branch - args: ['--branch', 'master'] - - id: check-yaml - - id: debug-statements - - id: end-of-file-fixer - - id: fix-encoding-pragma - args: [--remove] - - id: mixed-line-ending - - id: trailing-whitespace + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.4.0 + hooks: + - id: no-commit-to-branch + args: ["--branch", "master"] + - id: check-yaml + - id: debug-statements + - id: end-of-file-fixer + - id: fix-encoding-pragma + args: [--remove] + - id: mixed-line-ending + - id: trailing-whitespace -- repo: https://github.com/ambv/black - rev: 20.8b1 - hooks: - - id: black + - repo: https://github.com/ambv/black + rev: 23.3.0 + hooks: + - id: black -- repo: https://gitlab.com/pycqa/flake8.git - rev: 3.8.4 - hooks: - - id: flake8 + - repo: https://github.com/pycqa/flake8.git + rev: 6.0.0 + hooks: + - id: flake8 -- repo: https://github.com/pre-commit/mirrors-mypy - rev: '' - hooks: - - id: mypy + - repo: https://github.com/pre-commit/mirrors-mypy + rev: "v1.2.0" + hooks: + - id: mypy -- repo: https://github.com/pycqa/isort - rev: 5.6.4 - hooks: - - id: isort - args: ["--profile", "black", "--filter-files"] + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + args: ["--profile", "black", "--filter-files"] diff --git a/README.rst b/README.rst index a4d9cd369..2c36fa6c3 100644 --- a/README.rst +++ b/README.rst @@ -1,15 +1,9 @@ -.. image:: https://img.shields.io/github/workflow/status/equinor/subscript/subscript - :target: https://github.com/equinor/subscript/actions?query=workflow%3Asubscript - -.. image:: https://img.shields.io/lgtm/alerts/g/equinor/subscript.svg?logo=lgtm&logoWidth=18 - :target: https://lgtm.com/projects/g/equinor/subscript/alerts/ +.. image:: https://github.com/equinor/subscript/actions/workflows/subscript.yml/badge.svg + :target: https://github.com/equinor/subscript/actions/workflows/subscript.yml?query=workflow%3Asubscript .. image:: https://codecov.io/gh/equinor/subscript/branch/master/graph/badge.svg :target: https://codecov.io/gh/equinor/subscript -.. image:: https://img.shields.io/lgtm/grade/python/g/equinor/subscript.svg?logo=lgtm&logoWidth=18 - :target: https://lgtm.com/projects/g/equinor/subscript/context:python - .. image:: https://img.shields.io/badge/python-3.6%20|%203.7%20|%203.8%20|%203.9-blue.svg :target: https://www.python.org