Skip to content

Commit

Permalink
updated pre commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
n-gao committed Aug 22, 2024
1 parent 8b9beaa commit a48b2ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
12 changes: 8 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-case-conflict
- id: check-toml
Expand All @@ -10,7 +10,11 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.0
rev: v0.6.1
hooks:
- id: ruff
- id: ruff-format
- id: ruff # Run the linter.
args: [--fix]
- id: ruff # Sort improts
name: sort imports with ruff
args: [--select, I, --fix]
- id: ruff-format # Run the formatter.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This repository contains templates for [`seml`](https://github.com/TUM-DAML/seml-templates.git).

## Project structure
This repository has the following structure
This repository has the following structure
```
.
├── LICENSE
Expand Down
2 changes: 1 addition & 1 deletion templates/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pip install -e .
*Optionally*: Install pre-commit hooks via
```sh
pre-commit install
```
```

## Developement

Expand Down
4 changes: 1 addition & 3 deletions templates/default/notebooks/visualize_results.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib.pyplot as plt\n",
"from seml import get_results"
]
},
Expand All @@ -17,7 +15,7 @@
"metadata": {},
"outputs": [],
"source": [
" # Load the results that were logged into seml as dataframe\n",
"# Load the results that were logged into seml as dataframe\n",
"df = get_results('example_experiment', to_data_frame=True, fields=['config', 'result'])\n",
"df"
]
Expand Down

0 comments on commit a48b2ec

Please sign in to comment.