From 2934dfcc911a684509943ad6d50f8ff50ed353c6 Mon Sep 17 00:00:00 2001 From: henrikstranneheim Date: Fri, 1 Mar 2024 17:37:01 +0100 Subject: [PATCH] feat(pre-commot): Add --- .pre-commit-config.yaml | 16 ++++++++++++++++ requirements-dev.txt | 7 ++++--- 2 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..e860672 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/psf/black + rev: 24.1.0 + hooks: + - id: black + args: [--line-length=100] + - repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort + name: isort + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.7 + hooks: + - id: ruff + diff --git a/requirements-dev.txt b/requirements-dev.txt index 467952e..261bbf2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,6 @@ -pytest>=5.2 -pytest-cov +bump2version coveralls +pre-commit pylint -bump2version \ No newline at end of file +pytest-cov +pytest>=5.2 \ No newline at end of file