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 #134

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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 23.3.0
rev: 24.10.0
hooks:
- id: black
- repo: local
Expand All @@ -20,7 +20,7 @@ repos:
language: system
types: [python]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
ci:
Expand Down
1 change: 1 addition & 0 deletions bird_cloud_gnn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Documentation about bird_cloud_gnn"""

import logging


Expand Down
1 change: 1 addition & 0 deletions bird_cloud_gnn/cross_validation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Helper functions for cross validation.
"""

import numpy as np
import pandas as pd
from dgl.dataloading import GraphDataLoader
Expand Down
1 change: 1 addition & 0 deletions bird_cloud_gnn/early_stopper.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Module for early stopping class
"""

import numpy as np


Expand Down
6 changes: 3 additions & 3 deletions bird_cloud_gnn/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ def to01(value):
point_cloud.loc[
np.random.randint(0, num_points, num_points // 100), "feat2"
] = None
point_cloud.loc[
np.random.randint(0, num_points, num_points // 20), "feat3"
] = None
point_cloud.loc[np.random.randint(0, num_points, num_points // 20), "feat3"] = (
Fixed Show fixed Hide fixed

Check notice

Code scanning / SonarCloud

numpy.random.Generator should be preferred to numpy.random.RandomState

<!--SONAR_ISSUE_KEY:AY7j1OWxwUBP8J7tuasJ-->Use a "numpy.random.Generator" here instead of this legacy function. <p>See more on <a href="https://sonarcloud.io/project/issues?id=point-cloud-radar_bird-cloud-gnn&issues=AY7j1OWxwUBP8J7tuasJ&open=AY7j1OWxwUBP8J7tuasJ&pullRequest=134">SonarCloud</a></p>
None
)

if filename is not None:
point_cloud.to_csv(filename, index=None)
Expand Down
1 change: 1 addition & 0 deletions tests/test_cross_validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for cross_validation"""

from torch import nn
from bird_cloud_gnn.cross_validation import kfold_evaluate
from bird_cloud_gnn.cross_validation import leave_one_origin_out_evaluate
Expand Down
1 change: 1 addition & 0 deletions tests/test_gnn_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for gnn_model module"""

import torch
from dgl.dataloading import GraphDataLoader
from torch import nn
Expand Down
Loading