Skip to content

Commit 75c23d4

Browse files
[pre-commit.ci] pre-commit autoupdate (#537)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0) - [github.com/psf/black: 23.12.1 → 24.3.0](psf/black@23.12.1...24.3.0) - [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](kynan/nbstripout@0.6.1...0.7.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6da5944 commit 75c23d4

12 files changed

+14
-5
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
repos:
22
# General linting
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.5.0
4+
rev: v4.6.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
88
- id: check-yaml
99
- id: check-added-large-files
1010
# General formatting
1111
- repo: https://github.com/psf/black
12-
rev: 23.12.1
12+
rev: 24.3.0
1313
hooks:
1414
- id: black
1515
- id: black-jupyter
1616
exclude: pysr/test/test_nb.ipynb
1717
# Stripping notebooks
1818
- repo: https://github.com/kynan/nbstripout
19-
rev: 0.6.1
19+
rev: 0.7.1
2020
hooks:
2121
- id: nbstripout
2222
exclude: pysr/test/test_nb.ipynb

benchmarks/hyperparamopt.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Start a hyperoptimization from a single node"""
2+
23
import pickle as pkl
34
import sys
45

benchmarks/print_best_model.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Print the best model parameters and loss"""
2+
23
import pickle as pkl
34
from pprint import PrettyPrinter
45

docs/generate_papers.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""This script generates the papers.md file from the papers.yml file."""
2+
23
from pathlib import Path
34

45
import yaml

pysr/denoising.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for denoising data during preprocessing."""
2+
23
import numpy as np
34

45

pysr/deprecated.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Various functions to deprecate features."""
2+
23
import warnings
34

45
from .julia_import import jl

pysr/export_latex.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions to help export PySR equations to LaTeX."""
2+
23
from typing import List, Optional, Tuple
34

45
import pandas as pd

pysr/export_numpy.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Code for exporting discovered expressions to numpy"""
2+
23
import warnings
34

45
import numpy as np

pysr/export_sympy.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Define utilities to export to sympy"""
2+
23
from typing import Callable, Dict, List, Optional
34

45
import sympy

pysr/feature_selection.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Functions for doing feature selection during preprocessing."""
2+
23
import numpy as np
34

45

pysr/sklearn_monkeypatch.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
from sklearn.utils import validation
44

55

6-
def _ensure_no_complex_data(*args, **kwargs):
7-
...
6+
def _ensure_no_complex_data(*args, **kwargs): ...
87

98

109
try:

pysr/test/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""CLI for running PySR's test suite."""
2+
23
import argparse
34

45
from . import *

0 commit comments

Comments
 (0)