Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bnb32 committed Oct 4, 2024
1 parent 006f50e commit 54fdbd7
Show file tree
Hide file tree
Showing 11 changed files with 233 additions and 187 deletions.
2 changes: 1 addition & 1 deletion examples/gridsearch.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#/bin/bash

python ../mlclouds/GridSearcher.py ../hyperparameter_tuning/gridsearch_default.json --conda_env=mlclouds_gpu --output_ws=/tmp --walltime=4
python ../mlclouds/grid_searcher.py ../hyperparameter_tuning/gridsearch_default.json --conda_env=mlclouds_gpu --output_ws=/tmp --walltime=4
3 changes: 2 additions & 1 deletion mlclouds/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
"""MLClouds library."""

import os

from ._version import __version__ # noqa: F401
from ._version import __version__

MLCLOUDSDIR = os.path.dirname(os.path.realpath(__file__))
TESTDATADIR = os.path.join(os.path.dirname(MLCLOUDSDIR), 'tests', 'data')
Expand Down
16 changes: 16 additions & 0 deletions mlclouds/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# file generated by setuptools_scm
# don't change, don't track in version control
TYPE_CHECKING = False
if TYPE_CHECKING:
from typing import Tuple, Union

Check failure on line 5 in mlclouds/_version.py

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (UP035)

mlclouds/_version.py:5:5: UP035 `typing.Tuple` is deprecated, use `tuple` instead
VERSION_TUPLE = Tuple[Union[int, str], ...]

Check failure on line 6 in mlclouds/_version.py

View workflow job for this annotation

GitHub Actions / Ruff

Ruff (UP006)

mlclouds/_version.py:6:21: UP006 Use `tuple` instead of `Tuple` for type annotation
else:
VERSION_TUPLE = object

version: str
__version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE

__version__ = version = '0.0.3.dev4+gfc20841.d20241004'
__version_tuple__ = version_tuple = (0, 0, 3, 'dev4', 'gfc20841.d20241004')
Loading

0 comments on commit 54fdbd7

Please sign in to comment.