Skip to content

Commit

Permalink
Remove unneeded Random module from tests
Browse files Browse the repository at this point in the history
Update pre-commit config
  • Loading branch information
rmontanana committed Apr 20, 2022
1 parent e01ca43 commit 267a17a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
repos:
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 22.3.0
hooks:
- id: black
exclude: ".virtual_documents"
language_version: python3.9
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
rev: 3.9.2
hooks:
- id: flake8
exclude: ".virtual_documents"
- 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:
- id: mypy
#args: [--strict, --ignore-missing-imports]
exclude: odte/tests
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.2.0
hooks:
- id: trailing-whitespace
- id: check-case-conflict
Expand Down
2 changes: 0 additions & 2 deletions odte/tests/Odte_tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# type: ignore
import unittest
import os
import random
import warnings
import json
from sklearn.exceptions import ConvergenceWarning, NotFittedError
Expand Down Expand Up @@ -137,7 +136,6 @@ def test_score_splitter_max_features(self):
0.97, # iwss None
0.97, # cfs None
]
random.seed(self._random_state)
for max_features in ["auto", None]:
for splitter in [
"best",
Expand Down

0 comments on commit 267a17a

Please sign in to comment.