Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wfondrie/mokapot
Browse files Browse the repository at this point in the history
  • Loading branch information
wfondrie committed Dec 14, 2022
2 parents ab1f5b7 + ad23d1d commit 46fc032
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ on:
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10',]
os: [ubuntu-latest, windows-latest, macos-latest]
experimental: [false,]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
Expand Down
3 changes: 2 additions & 1 deletion mokapot/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from sklearn.base import clone
from sklearn.svm import LinearSVC
from sklearn.model_selection import GridSearchCV
from sklearn.model_selection._search import BaseSearchCV
from sklearn.preprocessing import StandardScaler
from sklearn.exceptions import NotFittedError

Expand Down Expand Up @@ -154,7 +155,7 @@ def __init__(
self.fold = None

# Sort out whether we need to optimize hyperparameters:
if hasattr(self.estimator, "estimator"):
if isinstance(self.estimator, BaseSearchCV):
self._needs_cv = True
else:
self._needs_cv = False
Expand Down
7 changes: 3 additions & 4 deletions mokapot/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

import pandas as pd

try:
from importlib.metadata import entry_points
except ImportError:
from importlib_metadata import entry_points
# Once the min supported version reaches 3.10, the standard library should
# be used like so -> from importlib.metadata import entry_points
from importlib_metadata import entry_points

from argparse import _ArgumentGroup
from typing import Any
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dependencies = [
"lxml>=4.6.2",
"triqler>=0.6.2",
"joblib>=1.1.0",
"importlib-metadata>=5.1.0",
]
dynamic = ["version"]

Expand Down

0 comments on commit 46fc032

Please sign in to comment.