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