pre-commit-ci[bot] pre-commit-ci[bot] commited on
Commit
75c23d4
β€’
1 Parent(s): 6da5944

[pre-commit.ci] pre-commit autoupdate (#537)

Browse files

* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 β†’ v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 β†’ 24.3.0](https://github.com/psf/black/compare/23.12.1...24.3.0)
- [github.com/kynan/nbstripout: 0.6.1 β†’ 0.7.1](https://github.com/kynan/nbstripout/compare/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>

.pre-commit-config.yaml CHANGED
@@ -1,7 +1,7 @@
1
  repos:
2
  # General linting
3
  - repo: https://github.com/pre-commit/pre-commit-hooks
4
- rev: v4.5.0
5
  hooks:
6
  - id: trailing-whitespace
7
  - id: end-of-file-fixer
@@ -9,14 +9,14 @@ repos:
9
  - id: check-added-large-files
10
  # General formatting
11
  - repo: https://github.com/psf/black
12
- rev: 23.12.1
13
  hooks:
14
  - id: black
15
  - id: black-jupyter
16
  exclude: pysr/test/test_nb.ipynb
17
  # Stripping notebooks
18
  - repo: https://github.com/kynan/nbstripout
19
- rev: 0.6.1
20
  hooks:
21
  - id: nbstripout
22
  exclude: pysr/test/test_nb.ipynb
 
1
  repos:
2
  # General linting
3
  - repo: https://github.com/pre-commit/pre-commit-hooks
4
+ rev: v4.6.0
5
  hooks:
6
  - id: trailing-whitespace
7
  - id: end-of-file-fixer
 
9
  - id: check-added-large-files
10
  # General formatting
11
  - repo: https://github.com/psf/black
12
+ rev: 24.3.0
13
  hooks:
14
  - id: black
15
  - id: black-jupyter
16
  exclude: pysr/test/test_nb.ipynb
17
  # Stripping notebooks
18
  - repo: https://github.com/kynan/nbstripout
19
+ rev: 0.7.1
20
  hooks:
21
  - id: nbstripout
22
  exclude: pysr/test/test_nb.ipynb
benchmarks/hyperparamopt.py CHANGED
@@ -1,4 +1,5 @@
1
  """Start a hyperoptimization from a single node"""
 
2
  import pickle as pkl
3
  import sys
4
 
 
1
  """Start a hyperoptimization from a single node"""
2
+
3
  import pickle as pkl
4
  import sys
5
 
benchmarks/print_best_model.py CHANGED
@@ -1,4 +1,5 @@
1
  """Print the best model parameters and loss"""
 
2
  import pickle as pkl
3
  from pprint import PrettyPrinter
4
 
 
1
  """Print the best model parameters and loss"""
2
+
3
  import pickle as pkl
4
  from pprint import PrettyPrinter
5
 
docs/generate_papers.py CHANGED
@@ -1,4 +1,5 @@
1
  """This script generates the papers.md file from the papers.yml file."""
 
2
  from pathlib import Path
3
 
4
  import yaml
 
1
  """This script generates the papers.md file from the papers.yml file."""
2
+
3
  from pathlib import Path
4
 
5
  import yaml
pysr/denoising.py CHANGED
@@ -1,4 +1,5 @@
1
  """Functions for denoising data during preprocessing."""
 
2
  import numpy as np
3
 
4
 
 
1
  """Functions for denoising data during preprocessing."""
2
+
3
  import numpy as np
4
 
5
 
pysr/deprecated.py CHANGED
@@ -1,4 +1,5 @@
1
  """Various functions to deprecate features."""
 
2
  import warnings
3
 
4
  from .julia_import import jl
 
1
  """Various functions to deprecate features."""
2
+
3
  import warnings
4
 
5
  from .julia_import import jl
pysr/export_latex.py CHANGED
@@ -1,4 +1,5 @@
1
  """Functions to help export PySR equations to LaTeX."""
 
2
  from typing import List, Optional, Tuple
3
 
4
  import pandas as pd
 
1
  """Functions to help export PySR equations to LaTeX."""
2
+
3
  from typing import List, Optional, Tuple
4
 
5
  import pandas as pd
pysr/export_numpy.py CHANGED
@@ -1,4 +1,5 @@
1
  """Code for exporting discovered expressions to numpy"""
 
2
  import warnings
3
 
4
  import numpy as np
 
1
  """Code for exporting discovered expressions to numpy"""
2
+
3
  import warnings
4
 
5
  import numpy as np
pysr/export_sympy.py CHANGED
@@ -1,4 +1,5 @@
1
  """Define utilities to export to sympy"""
 
2
  from typing import Callable, Dict, List, Optional
3
 
4
  import sympy
 
1
  """Define utilities to export to sympy"""
2
+
3
  from typing import Callable, Dict, List, Optional
4
 
5
  import sympy
pysr/feature_selection.py CHANGED
@@ -1,4 +1,5 @@
1
  """Functions for doing feature selection during preprocessing."""
 
2
  import numpy as np
3
 
4
 
 
1
  """Functions for doing feature selection during preprocessing."""
2
+
3
  import numpy as np
4
 
5
 
pysr/sklearn_monkeypatch.py CHANGED
@@ -3,8 +3,7 @@
3
  from sklearn.utils import validation
4
 
5
 
6
- def _ensure_no_complex_data(*args, **kwargs):
7
- ...
8
 
9
 
10
  try:
 
3
  from sklearn.utils import validation
4
 
5
 
6
+ def _ensure_no_complex_data(*args, **kwargs): ...
 
7
 
8
 
9
  try:
pysr/test/__main__.py CHANGED
@@ -1,4 +1,5 @@
1
  """CLI for running PySR's test suite."""
 
2
  import argparse
3
 
4
  from . import *
 
1
  """CLI for running PySR's test suite."""
2
+
3
  import argparse
4
 
5
  from . import *