-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Update pre-commit to use modern black and ruff
1 parent
b209ec0
commit cf14e1c
Showing
5 changed files
with
15 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
rev: 23.12.1 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 3.9.2 | ||
exclude: versioneer.py | ||
args: | ||
- --target-version=py39 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: 'v0.1.14' | ||
hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
- id: ruff | ||
args: [--fix, --exit-non-zero-on-fix] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
from ._version import get_versions | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
|
||
from . import config | ||
|
||
from .discovery import ( | ||
discover_cluster_names, | ||
discover_clusters, | ||
list_discovery_methods, | ||
) | ||
from .lifecycle import ( | ||
get_cluster, | ||
create_cluster, | ||
scale_cluster, | ||
delete_cluster, | ||
list_clusters, | ||
get_snippet, | ||
) | ||
from .proxy import ProxyCluster | ||
|
||
import os.path | ||
|
||
from dask.widgets import TEMPLATE_PATHS | ||
|
||
__version__ = get_versions()["version"] | ||
del get_versions | ||
|
||
TEMPLATE_PATHS.append( | ||
os.path.join(os.path.dirname(os.path.abspath(__file__)), "widgets", "templates") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters