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

Merged
merged 2 commits into from
Jan 31, 2024
Merged
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
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ repos:
- id: sort-simple-yaml
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
additional_dependencies: [".[jupyter]"]
@@ -37,7 +37,7 @@ repos:
additional_dependencies: ["tomli"]
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: 'v0.1.13'
rev: 'v0.1.14'
hooks:
- id: ruff
args: ['--fix']
1 change: 1 addition & 0 deletions examples/dataclasses_for_parameters.ipynb
Original file line number Diff line number Diff line change
@@ -87,6 +87,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/01_Intro.ipynb
Original file line number Diff line number Diff line change
@@ -109,6 +109,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/03_dependencies.ipynb
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
3 changes: 3 additions & 0 deletions examples/docs/04_metrics_and_plots.ipynb
Original file line number Diff line number Diff line change
@@ -87,6 +87,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
@@ -514,6 +515,7 @@
],
"source": [
"!dvc exp show --csv > exp_show.csv\n",
"\n",
"pd.read_csv(\"exp_show.csv\", index_col=0)"
]
},
@@ -784,6 +786,7 @@
],
"source": [
"!dvc exp show --csv > exp_show.csv\n",
"\n",
"pd.read_csv(\"exp_show.csv\", index_col=0)"
]
},
1 change: 1 addition & 0 deletions examples/docs/05_metadata.ipynb
Original file line number Diff line number Diff line change
@@ -75,6 +75,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/06_named_nodes.ipynb
Original file line number Diff line number Diff line change
@@ -70,6 +70,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/07_functions.ipynb
Original file line number Diff line number Diff line change
@@ -77,6 +77,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/08_custom_zntrackoptions.ipynb
Original file line number Diff line number Diff line change
@@ -78,6 +78,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/09_lazy.ipynb
Original file line number Diff line number Diff line change
@@ -81,6 +81,7 @@
],
"source": [
"!git init\n",
"\n",
"!dvc init"
]
},
1 change: 1 addition & 0 deletions examples/docs/parameter_optimization.ipynb
Original file line number Diff line number Diff line change
@@ -363,6 +363,7 @@
],
"source": [
"!git add .\n",
"\n",
"!git commit -m \"initial commit\""
]
},
1 change: 1 addition & 0 deletions examples/estimate_pi_with_mc.ipynb
Original file line number Diff line number Diff line change
@@ -305,6 +305,7 @@
],
"source": [
"!git add .\n",
"\n",
"!git commit -m \"initial commit\""
]
},
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@
References
----------
https://docs.pytest.org/en/6.2.x/fixture.html#scope-sharing-fixtures-across-classes-modules-packages-or-session
"""

import os
2 changes: 1 addition & 1 deletion tests/integration/test_post_methods.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""""ZnTrack provides two post methods: _post_load_ and _post_init_.
""" "ZnTrack provides two post methods: _post_load_ and _post_init_.
_post_load_ is called after the node is loaded from disk.
_post_init_ is called after the node is initialized (loaded values are not available).