From 9ffa9e7538db251a8936601a4a05728f720b12e2 Mon Sep 17 00:00:00 2001 From: KarolG Date: Sun, 14 May 2023 04:45:43 +0200 Subject: [PATCH] Added pre_commit_hooks --- artel/.pre-commit-config.yaml | 22 ++++++++++++++++++++++ artel/requirements_def.txt | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 artel/.pre-commit-config.yaml create mode 100644 artel/requirements_def.txt diff --git a/artel/.pre-commit-config.yaml b/artel/.pre-commit-config.yaml new file mode 100644 index 0000000..79c24de --- /dev/null +++ b/artel/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +repos: +- repo: https://github.com/psf/black + rev: 21.9b0 + hooks: + - id: black + args: [--safe] + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + - id: debug-statements + language_version: python3 + +- repo: https://github.com/PyCQA/flake8 + rev: 3.9.2 + hooks: + - id: flake8 + language_version: python3 diff --git a/artel/requirements_def.txt b/artel/requirements_def.txt new file mode 100644 index 0000000..11e5527 --- /dev/null +++ b/artel/requirements_def.txt @@ -0,0 +1,2 @@ +FLAKE8>=6.0.0 +pre-commit>=3.3.1