Skip to content

Commit 4b2b479

Browse files
committed
black and ruff for linting and hook
1 parent 1c8c5e5 commit 4b2b479

4 files changed

Lines changed: 614 additions & 574 deletions

File tree

.pre-commit-config.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
repos:
22
- repo: https://github.com/kynan/nbstripout
3-
rev: master
3+
rev: 0.7.1
44
hooks:
55
- id: nbstripout
6+
7+
- repo: https://github.com/psf/black
8+
rev: 24.4.2
9+
hooks:
10+
- id: black
11+
12+
- repo: https://github.com/astral-sh/ruff-pre-commit
13+
# Find the latest version at https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.4.4
15+
hooks:
16+
# Run the linter and fix autofixable issues (like import sorting).
17+
- id: ruff
18+
args: [--fix, --exit-non-zero-on-fix]

ml_grid/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
from ml_grid.pipeline import data, read_in
22
from ml_grid.util import param_space
3+
4+
__all__ = ["data", "read_in", "param_space"]

0 commit comments

Comments
 (0)