-
-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use pyproject.toml, hatch, hatch-vcs - Use ruff Closes #984
- Loading branch information
1 parent
b3954e9
commit 3114c7f
Showing
21 changed files
with
187 additions
and
203 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 |
---|---|---|
|
@@ -125,3 +125,4 @@ docs/source/auto_examples/ | |
docs/source/examples/mydask.png | ||
|
||
dask-worker-space | ||
.direnv |
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,19 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 23.12.1 | ||
hooks: | ||
- id: black | ||
language_version: python3 | ||
args: | ||
- --target-version=py39 | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 7.0.0 | ||
hooks: | ||
- id: flake8 | ||
language_version: python3 | ||
args: ["--ignore=E501,W503,E203,E741,E731"] | ||
- repo: https://github.com/pycqa/isort | ||
rev: 5.13.2 | ||
hooks: | ||
- id: isort | ||
language_version: python3 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.3.4 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file was deleted.
Oops, something went wrong.
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,18 +1,6 @@ | ||
from pkg_resources import DistributionNotFound, get_distribution | ||
|
||
# Ensure we always register tokenizers | ||
from dask_ml.model_selection import _normalize | ||
|
||
__all__ = [] | ||
|
||
try: | ||
__version__ = get_distribution(__name__).version | ||
__all__.append("__version__") | ||
except DistributionNotFound: | ||
# package is not installed | ||
pass | ||
from dask_ml.model_selection import _normalize # noqa: F401 | ||
|
||
from ._version import __version__ | ||
|
||
del DistributionNotFound | ||
del get_distribution | ||
del _normalize | ||
__all__ = ["__version__"] |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# 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 | ||
|
||
VERSION_TUPLE = Tuple[Union[int, str], ...] | ||
else: | ||
VERSION_TUPLE = object | ||
|
||
version: str | ||
__version__: str | ||
__version_tuple__: VERSION_TUPLE | ||
version_tuple: VERSION_TUPLE | ||
|
||
__version__ = version = "2024.3.21.dev0+gb3954e9e.d20240330" | ||
__version_tuple__ = version_tuple = (2024, 3, 21, "dev0", "gb3954e9e.d20240330") |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
""" | ||
""" | ||
""" """ | ||
|
||
import dask.array as da | ||
import dask.dataframe as dd | ||
|
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
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
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 |
---|---|---|
@@ -0,0 +1,105 @@ | ||
[build-system] | ||
requires = ["hatchling", "hatch-vcs"] | ||
build-backend = "hatchling.build" | ||
|
||
[project] | ||
name = "dask-ml" | ||
dynamic = ["version"] | ||
description = "A library for distributed and parallel machine learning" | ||
readme = "README.rst" | ||
license = {file = 'LICENSE.txt'} | ||
requires-python = ">=3.8" | ||
authors = [{ name = "Tom Augspurger", email = "taugspurger@anaconda.com" }] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Intended Audience :: Developers", | ||
"License :: OSI Approved :: BSD License", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Topic :: Database", | ||
"Topic :: Scientific/Engineering", | ||
] | ||
dependencies = [ | ||
"dask-glm>=0.2.0", | ||
"dask[array,dataframe]>=2.4.0", | ||
"distributed>=2.4.0", | ||
"multipledispatch>=0.4.9", | ||
"numba>=0.51.0", | ||
"numpy>=1.20.0", | ||
"packaging", | ||
"pandas>=0.24.2", | ||
"scikit-learn>=1.2.0", | ||
"scipy", | ||
] | ||
|
||
[project.optional-dependencies] | ||
complete = ["dask-xgboost", "xgboost"] | ||
dev = [ | ||
"black", | ||
"coverage", | ||
"flake8", | ||
"isort", | ||
"nbsphinx", | ||
"numpydoc", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mock", | ||
"sphinx", | ||
"sphinx-gallery", | ||
"sphinx-rtd-theme", | ||
] | ||
docs = ["nbsphinx", "numpydoc", "sphinx", "sphinx-gallery", "sphinx-rtd-theme"] | ||
test = [ | ||
"black", | ||
"coverage", | ||
"flake8", | ||
"isort", | ||
"pytest", | ||
"pytest-cov", | ||
"pytest-mock", | ||
] | ||
xgboost = ["dask-xgboost", "xgboost"] | ||
|
||
[project.urls] | ||
Homepage = "https://github.com/dask/dask-ml" | ||
|
||
[tool.hatch.version] | ||
source = "vcs" | ||
|
||
[tool.hatch.build.hooks.vcs] | ||
version-file = "dask_ml/_version.py" | ||
|
||
[tool.hatch.build.targets.sdist] | ||
include = ["/dask_ml"] | ||
|
||
[tool.mypy] | ||
ignore_missing_imports = true | ||
no_implicit_optional = true | ||
check_untyped_defs = true | ||
strict_equality = true | ||
|
||
[[tool.mypy-dask_ml.metrics]] | ||
check_untyped_defs = false | ||
|
||
[[tool.mypy.overrides]] | ||
module = "dask_ml.model_selection" | ||
follow_imports = "skip" | ||
|
||
[tool.coverage] | ||
source = "dask_ml" | ||
|
||
[tool.pytest] | ||
addopts = "-rsx -v --durations=10 --color=yes" | ||
minversion = "3.2" | ||
xfail_strict = true | ||
junit_family = "xunit2" | ||
filterwarnings = [ | ||
"error:::dask_ml[.*]", | ||
"error:::sklearn[.*]", | ||
] | ||
|
||
|
||
[tool.ruff.lint] | ||
ignore = ["E721", "E731", "E741"] |
Oops, something went wrong.