From 267a17a7084fa3c6df07142a0e40111f8481bc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Wed, 20 Apr 2022 11:25:45 +0200 Subject: [PATCH] Remove unneeded Random module from tests Update pre-commit config --- .pre-commit-config.yaml | 8 ++++---- odte/tests/Odte_tests.py | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e829189..9497593 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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 diff --git a/odte/tests/Odte_tests.py b/odte/tests/Odte_tests.py index 0d1aa86..3974b45 100644 --- a/odte/tests/Odte_tests.py +++ b/odte/tests/Odte_tests.py @@ -1,7 +1,6 @@ # type: ignore import unittest import os -import random import warnings import json from sklearn.exceptions import ConvergenceWarning, NotFittedError @@ -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",