Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#78)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)
- [github.com/psf/black: 23.3.0 → 23.9.1](psf/black@23.3.0...23.9.1)
- [github.com/adamchainz/blacken-docs: 1.13.0 → 1.16.0](adamchainz/blacken-docs@1.13.0...1.16.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update black inside blacken-docs

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vojtech Micka <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and Higgcz authored Oct 2, 2023
1 parent dddc9c5 commit a649ed7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
args: ['--fix=no']

- repo: https://github.com/PyCQA/flake8
rev: '6.0.0'
rev: '6.1.0'
hooks:
- id: flake8
additional_dependencies:
Expand All @@ -35,7 +35,7 @@ repos:
- id: isort

- repo: https://github.com/psf/black
rev: 23.3.0
rev: 23.9.1
hooks:
- id: black
args: [--safe]
Expand All @@ -46,8 +46,8 @@ repos:
- id: nbstripout

- repo: https://github.com/adamchainz/blacken-docs
rev: 1.13.0
rev: 1.16.0
hooks:
- id: blacken-docs
additional_dependencies: [black==23.3.0]
additional_dependencies: [black==23.9.1]
args: [--skip-string-normalization, --line-length=88]
2 changes: 2 additions & 0 deletions docs/user_guide/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ plt.show()
from evotorch.logging import StdOutLogger, PandasLogger
import torch


# Create a Problem instance to solve
def sphere(x: torch.Tensor) -> torch.Tensor:
return torch.sum(x.pow(2.0))
Expand Down Expand Up @@ -210,6 +211,7 @@ _ = MlflowLogger(searcher, client=client, run=run)
from evotorch.logging import StdOutLogger, MlflowLogger
import torch


# Create a Problem instance to solve
def sphere(x: torch.Tensor) -> torch.Tensor:
return torch.sum(x.pow(2.0))
Expand Down

0 comments on commit a649ed7

Please sign in to comment.