Skip to content

Commit 13efc97

Browse files
committed
fix minor formatting issues
1 parent acd193e commit 13efc97

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

cebra/integrations/sklearn/cebra.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import numpy as np
2929
import numpy.typing as npt
3030
import pkg_resources
31+
import sklearn
3132
import sklearn.utils.validation as sklearn_utils_validation
3233
import torch
33-
import sklearn
3434
from sklearn.base import BaseEstimator
3535
from sklearn.base import TransformerMixin
3636
from sklearn.utils.metaestimators import available_if
@@ -43,12 +43,14 @@
4343
import cebra.models
4444
import cebra.solver
4545

46+
4647
def check_version(estimator):
4748
# NOTE(stes): required as a check for the old way of specifying tags
4849
# https://github.com/scikit-learn/scikit-learn/pull/29677#issuecomment-2334229165
4950
from packaging import version
5051
return version.parse(sklearn.__version__) < version.parse("1.6.dev")
5152

53+
5254
def _init_loader(
5355
is_cont: bool,
5456
is_disc: bool,

docs/source/conf.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,13 @@
2828

2929
# -- Path setup --------------------------------------------------------------
3030

31-
# If extensions (or modules to document with autodoc) are in another directory,
32-
# add these directories to sys.path here. If the directory is relative to the
33-
# documentation root, use os.path.abspath to make it absolute, like shown here.
34-
#
31+
import datetime
3532
import os
3633
import sys
3734

3835
sys.path.insert(0, os.path.abspath("."))
3936

40-
import datetime
41-
42-
import cebra
37+
import cebra # noqa: E402
4338

4439

4540
def get_years(start_year=2021):
@@ -247,6 +242,9 @@ def get_years(start_year=2021):
247242

248243
# Download link for the notebook, see
249244
# https://nbsphinx.readthedocs.io/en/0.3.0/prolog-and-epilog.html
245+
246+
# fmt: off
247+
# flake8: noqa: E501
250248
nbsphinx_prolog = r"""
251249
252250
.. only:: html
@@ -269,3 +267,5 @@ def get_years(start_year=2021):
269267
270268
----
271269
"""
270+
# fmt: on
271+
# flake8: enable=E501

0 commit comments

Comments
 (0)