Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #51

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ default_language_version:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
# list of supported hooks: https://pre-commit.com/hooks.html
- id: trailing-whitespace
Expand All @@ -12,20 +12,20 @@ repos:
- id: detect-private-key

# python code formatting/linting
- repo: https://github.com/charliermarsh/ruff-pre-commit
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: "v0.0.261"
rev: "v0.6.9"
hooks:
- id: ruff
args: [--fix]
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.8.0
hooks:
- id: black
args: [--line-length, "100"]
# yaml formatting
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.6
rev: v4.0.0-alpha.8
hooks:
- id: prettier
types: [yaml]
1 change: 1 addition & 0 deletions metnet/layers/ConditionWithTimeMetNet2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Condition with time how MetNet-22 does it, with FiLM layers"""

import einops
import torch
from torch import nn as nn
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/ConvLSTM.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Originally adapted from https://github.com/aserdega/convlstmgru, MIT License Andriy Serdega"""

from typing import Any, List, Optional

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/DilatedCondConv.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Dilated Time Conditioned Residual Convolution Block for MetNet-2"""

import torch
import torch.nn as nn
import torch.nn.functional as F
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/MBConv.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
MBConv Implementation
"""

from typing import Type

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/MaxViT.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of MaxViT module
"""

from dataclasses import dataclass
from typing import List, Tuple, Type, Union

Expand Down
1 change: 1 addition & 0 deletions metnet/layers/MultiheadSelfAttention2D.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
MultiHeaded 2D Self Attention Implementation
"""

from typing import Type

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/PartitionAttention.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of Partition (Grid and Block) Attention
"""

from typing import Tuple, Type

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/RelativePositionBias.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of Relative Position Bias
"""

from typing import Tuple

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/SqueezeExcitation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Squeeze-and-Excitation net implementation
"""

from typing import Type

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/layers/StochasticDepth.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Implementation of Stochastic Depth
"""

import torch
from torch import nn

Expand Down
1 change: 1 addition & 0 deletions metnet/models/metnet2.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MetNet-2 model for weather forecasting"""

from typing import List

import torch
Expand Down
1 change: 1 addition & 0 deletions metnet/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utilities"""

import numpy as np


Expand Down
Loading