Skip to content

Commit

Permalink
chore(requirements-lint): update requirements to increase compatibili…
Browse files Browse the repository at this point in the history
…ty. Local pre-commit configuration
  • Loading branch information
acostapazo committed Sep 22, 2022
1 parent 05cddeb commit cb4d15f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 15 deletions.
37 changes: 25 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
- 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

12 changes: 9 additions & 3 deletions requirements/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
numpy<2
pandas<2
seaborn==0.11.2
scikit-learn<2
tabulate==0.8.9
seaborn<1
scikit-learn<2; python_version > '3.7'
tabulate<1

# Python 3.6 compatibility
scikit-learn<1; python_version < '3.7'


0 comments on commit cb4d15f

Please sign in to comment.