Skip to content

Commit c6ec2ac

Browse files
too much stuff
1 parent 805e979 commit c6ec2ac

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5019
-1661
lines changed

.codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,3 @@ github_checks:
2424
ignore:
2525
- ".github/"
2626
- "docs/"
27-
- "examples/"

.pre-commit-config.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,20 @@ repos:
44
hooks:
55
- id: check-added-large-files
66
args: ["--maxkb=10000"]
7+
- id: check-ast
78
- id: check-case-conflict
9+
- id: check-docstring-first
810
- id: check-merge-conflict
911
- id: check-symlinks
12+
- id: check-toml
1013
- id: check-yaml
1114
- id: debug-statements
1215
- id: end-of-file-fixer
16+
- id: fix-byte-order-marker
1317
- id: fix-encoding-pragma
18+
args: ["--remove"]
19+
- id: name-tests-test
20+
args: ["--pytest-test-first"]
1421
- id: requirements-txt-fixer
1522
- id: trailing-whitespace
1623

@@ -19,7 +26,7 @@ repos:
1926
hooks:
2027
- id: isort
2128
name: isort (python)
22-
args: ["--profile=black"]
29+
args: [ "--profile=black", "--multi-line=3" ]
2330

2431
- repo: https://github.com/psf/black
2532
rev: 23.1.0
@@ -32,26 +39,27 @@ repos:
3239
hooks:
3340
- id: flake8
3441
additional_dependencies: [ flake8-bugbear, flake8-print, Flake8-pyproject ]
42+
args: [ "--max-line-length=88", "--extend-ignore=E203" ]
3543

3644
- repo: https://github.com/nbQA-dev/nbQA
3745
rev: 1.6.1
3846
hooks:
3947
- id: nbqa-isort
4048
additional_dependencies: [ isort==5.10.1 ]
41-
args: [ "--nbqa-dont-skip-bad-cells" ]
49+
args: [ "--nbqa-dont-skip-bad-cells", "--profile=black", "--multi-line=3" ]
4250
- id: nbqa-black
4351
additional_dependencies: [ black==22.10.0 ]
4452
args: [ "--nbqa-dont-skip-bad-cells" ]
4553
- id: nbqa-flake8
4654
additional_dependencies: [ flake8==5.0.4 ]
47-
args: [ "--nbqa-dont-skip-bad-cells", "--extend-ignore=E402,E203" ]
55+
args: [ "--nbqa-dont-skip-bad-cells", "--extend-ignore=E402,E203", "--max-line-length=88" ]
4856

4957
- repo: https://github.com/pycqa/pydocstyle
5058
rev: 6.3.0
5159
hooks:
5260
- id: pydocstyle
53-
args: ["--convention=numpy", "--match=^((?!_wip).)*$"]
54-
additional_dependencies: [ toml ]
61+
args: ["--convention=numpy"]
62+
additional_dependencies: [ toml, tomli ]
5563

5664
- repo: https://github.com/pre-commit/mirrors-mypy
5765
rev: v1.0.1

MANIFEST.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
recursive-include tsml *.py *.ts
1+
recursive-include tsml *.py
2+
recursive-include tsml/datasets *.ts
23
include LICENSE

pyproject.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,20 @@ dev = [
6363
"pytest-xdist",
6464
"pytest-cov",
6565
]
66+
binder = [
67+
"notebook",
68+
"jupyterlab",
69+
]
6670
docs = [
6771
"sphinx",
6872
"sphinx-design",
69-
"sphinx-gallery",
7073
"nbsphinx",
7174
"numpydoc",
7275
"jupyter",
7376
"furo",
77+
"sphinx_issues",
78+
"myst-parser",
79+
"sphinx-copybutton",
7480
]
7581

7682
[project.urls]
@@ -92,15 +98,10 @@ ignore = [
9298
".coveragerc",
9399
]
94100

95-
[tool.flake8]
96-
max-line-length = 88
97-
extend-ignore = ["E203"]
98-
99101
[tool.pytest.ini_options]
102+
testpaths = "tsml"
100103
addopts = '''
101-
--ignore examples
102-
--ignore docs
103-
--durations 10
104+
--durations 20
104105
--timeout 600
105106
--showlocals
106107
--doctest-modules

tsml/base.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
"""Base classes for estimators."""
32

43
__author__ = ["MatthewMiddlehurst"]
@@ -267,13 +266,8 @@ def get_test_params(
267266
params : dict or list of dict
268267
Parameters to create testing instances of the class.
269268
"""
270-
if parameter_set is None:
271-
# default parameters = empty dict
272-
return {}
273-
else:
274-
raise ValueError(
275-
f"No parameter set {parameter_set} defined for {cls.__name__}"
276-
)
269+
# default parameters = empty dict
270+
return {}
277271

278272

279273
def _clone_estimator(

tsml/compose/__init__.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# -*- coding: utf-8 -*-
21
"""Composable estimators."""
32

43
__all__ = [
5-
# "ChannelEnsembleClassifier",
6-
# "ChannelEnsembleRegressor",
4+
"ChannelEnsembleClassifier",
5+
"ChannelEnsembleRegressor",
76
]
7+
8+
from tsml.compose._channel_ensemble import (
9+
ChannelEnsembleClassifier,
10+
ChannelEnsembleRegressor,
11+
)

0 commit comments

Comments
 (0)