mirror of
https://github.com/Doctorado-ML/Odte.git
synced 2025-07-11 08:12:06 +00:00
Remove unneeded Random module from tests
Update pre-commit config
This commit is contained in:
parent
e01ca43cf9
commit
267a17a708
@ -1,23 +1,23 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/ambv/black
|
- repo: https://github.com/ambv/black
|
||||||
rev: 20.8b1
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
exclude: ".virtual_documents"
|
exclude: ".virtual_documents"
|
||||||
language_version: python3.9
|
language_version: python3.9
|
||||||
- repo: https://gitlab.com/pycqa/flake8
|
- repo: https://gitlab.com/pycqa/flake8
|
||||||
rev: 3.8.4
|
rev: 3.9.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
exclude: ".virtual_documents"
|
exclude: ".virtual_documents"
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: "v0.790" # Use the sha / tag you want to point at
|
rev: "v0.942" # Use the sha / tag you want to point at
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
#args: [--strict, --ignore-missing-imports]
|
#args: [--strict, --ignore-missing-imports]
|
||||||
exclude: odte/tests
|
exclude: odte/tests
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v3.4.0
|
rev: v4.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
# type: ignore
|
# type: ignore
|
||||||
import unittest
|
import unittest
|
||||||
import os
|
import os
|
||||||
import random
|
|
||||||
import warnings
|
import warnings
|
||||||
import json
|
import json
|
||||||
from sklearn.exceptions import ConvergenceWarning, NotFittedError
|
from sklearn.exceptions import ConvergenceWarning, NotFittedError
|
||||||
@ -137,7 +136,6 @@ class Odte_test(unittest.TestCase):
|
|||||||
0.97, # iwss None
|
0.97, # iwss None
|
||||||
0.97, # cfs None
|
0.97, # cfs None
|
||||||
]
|
]
|
||||||
random.seed(self._random_state)
|
|
||||||
for max_features in ["auto", None]:
|
for max_features in ["auto", None]:
|
||||||
for splitter in [
|
for splitter in [
|
||||||
"best",
|
"best",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user