From b63d9d1c0e2fdda5ef29996e3c1a60810f68d562 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Fri, 29 Jan 2021 23:17:16 +0100 Subject: [PATCH] Configure pre-commit with trailing-whitespace, end-of-file-fixer, check-added-large-files, black, flake8 Signed-off-by: Alessandro Maggio --- .pre-commit-config.yaml | 22 ++++++++++++++++++++++ requirements.txt | 3 ++- 2 files changed, 24 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 0000000..9cef399 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +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-added-large-files +- repo: https://github.com/pycqa/isort + rev: 5.7.0 + hooks: + - id: isort + files: ^TwitchChannelPointsMiner/ +- repo: https://github.com/psf/black + rev: 20.8b1 + hooks: + - id: black + files: ^TwitchChannelPointsMiner/ +- repo: https://gitlab.com/pycqa/flake8 + rev: 3.8.4 + hooks: + - id: flake8 + files: ^TwitchChannelPointsMiner/ diff --git a/requirements.txt b/requirements.txt index d5922a8..c9b056d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,5 @@ pillow selenium python-dateutil emoji -millify \ No newline at end of file +millify +pre-commit