Skip to content

Commit

Permalink
apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed May 7, 2024
1 parent 497957e commit 5ea2649
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .devtools/license
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ external_license = "# LICENSE: EXTERNAL"


def check_file(path: Path) -> bool:
"""Check whether `path` is complicit.
"""
Check whether `path` is complicit.
The license header needs to start on the 3rd line latest. This allows
to have a shebang on top of the file.
The license header needs to start on the 3rd line latest. This allows to
have a shebang on top of the file.
"""
num_lines = len(license.splitlines()) + 2

Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
rev: v0.3.3
hooks:
- id: ruff
name: Run Ruff (Flake8)
name: Run Ruff & fixing (Flake8)
args: ["--fix"]

- repo: https://github.com/PyCQA/docformatter
Expand Down
3 changes: 2 additions & 1 deletion examples/anomaly_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@

"""
This example shows how to do anomaly detection with DeepAR.
The model is first trained and then time-points with the largest negative log-likelihood are plotted.
The model is first trained and then time-points with the largest negative log-
likelihood are plotted.
"""
import numpy as np
from functools import partial
Expand Down
4 changes: 2 additions & 2 deletions examples/warm_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
# permissions and limitations under the License.

"""
This example show how to intialize the network with parameters from a model that was previously trained.
This example show how to intialize the network with parameters from a model
that was previously trained.
"""

from gluonts.dataset.repository import get_dataset, dataset_recipes
Expand Down

0 comments on commit 5ea2649

Please sign in to comment.