Add a pre-commit hook to check all VCS links are permalinks

This commit is contained in:
Marco Castelluccio 2020-05-08 13:25:21 +02:00
Родитель 1691cb8f63
Коммит 53b180142a
2 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -33,6 +33,7 @@ repos:
- id: check-json
exclude: ^tests/fixtures/
- id: requirements-txt-fixer
- id: check-vcs-permalinks
- repo: https://github.com/codespell-project/codespell
rev: v1.16.0
hooks:

Просмотреть файл

@ -35,9 +35,7 @@ def classification_report_imbalanced_values(
access to the raw values. The code is mostly the same except the
formatting code and generation of the report which haven removed. Copied
from version 0.4.3. The original code is living here:
https://github.com/scikit-learn-contrib/imbalanced-learn/blob/master/imblearn/metrics/_classification.py#L750
https://github.com/scikit-learn-contrib/imbalanced-learn/blob/b861b3a8e3414c52f40a953f2e0feca5b32e7460/imblearn/metrics/_classification.py#L790
"""
labels = np.asarray(labels)