From cb4d15ffa02583005db35424b03598e377e3a9bd Mon Sep 17 00:00:00 2001 From: acostapazo Date: Thu, 22 Sep 2022 18:40:35 +0200 Subject: [PATCH] chore(requirements-lint): update requirements to increase compatibility. Local pre-commit configuration --- .pre-commit-config.yaml | 37 +++++++++++++++++++++++------------ requirements/requirements.txt | 12 +++++++++--- 2 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5b598d2..3cde8fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,27 @@ repos: -- repo: https://github.com/ambv/black - rev: 21.7b0 + - repo: local hooks: - - id: black - language_version: python3.9 -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v1.2.3 - hooks: - - id: flake8 -- repo: https://github.com/pre-commit/mirrors-isort - rev: v5.9.3 - hooks: - - id: isort \ No newline at end of file + - id: black + name: black + entry: black . + language: system + types: [ python ] + require_serial: true + fail_fast: true + + - id: flake8 + name: flake8 + entry: flake8 gradgpad tests + language: system + types: [ python ] + require_serial: true + fail_fast: true + + - id: isort + name: isort + entry: isort . + language: system + types: [ python ] + require_serial: true + fail_fast: true + diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 7a3153d..73ad0cc 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -1,4 +1,10 @@ +numpy<2 pandas<2 -seaborn==0.11.2 -scikit-learn<2 -tabulate==0.8.9 \ No newline at end of file +seaborn<1 +scikit-learn<2; python_version > '3.7' +tabulate<1 + +# Python 3.6 compatibility +scikit-learn<1; python_version < '3.7' + +