Skip to content

Commit

Permalink
[MNT] Added pre-commit hook to sort imports (#1465)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Walter authored Oct 3, 2021
1 parent a514460 commit d718d55
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 17 deletions.
33 changes: 20 additions & 13 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
repos:
- repo: https://github.com/psf/black
rev: 21.5b1
hooks:
- id: black
language_version: python3
# args: [--line-length 79]

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: docs/conf.py
additional_dependencies: [flake8-bugbear, flake8-print]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
Expand All @@ -28,6 +15,26 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 5.8.0
hooks:
- id: isort
name: isort (python)

- repo: https://github.com/psf/black
rev: 21.5b1
hooks:
- id: black
language_version: python3
# args: [--line-length 79]

- repo: https://github.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: docs/conf.py
additional_dependencies: [flake8-bugbear, flake8-print]

- repo: https://github.com/mgedmin/check-manifest
rev: "0.46"
hooks:
Expand Down
2 changes: 1 addition & 1 deletion docs/source/api_reference/transformations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ Theta
FeatureSelection
~~~~~~~~~~~~~~~~

.. currentmodule:: sktime.transformations.series.feauture_selection
.. currentmodule:: sktime.transformations.series.feature_selection

.. autosummary::
:toctree: auto_generated/
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[aliases]
test = pytest

[tool.isort]
profile = "black"
multi_line_output = 3

[tool:pytest]
# ignore certain folders and pytest warnings
addopts =
Expand Down
8 changes: 5 additions & 3 deletions sktime/forecasting/ets.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@
__all__ = ["AutoETS"]
__author__ = ["Hongyi Yang"]

from sktime.forecasting.base.adapters import _StatsModelsAdapter
from statsmodels.tsa.exponential_smoothing.ets import ETSModel as _ETSModel
from itertools import product
from joblib import delayed, Parallel

import numpy as np
from joblib import Parallel, delayed
from statsmodels.tsa.exponential_smoothing.ets import ETSModel as _ETSModel

from sktime.forecasting.base.adapters import _StatsModelsAdapter


class AutoETS(_StatsModelsAdapter):
Expand Down

0 comments on commit d718d55

Please sign in to comment.