diff --git a/darwin/version/__init__.py b/darwin/version/__init__.py index c68196d1c..a955fdae1 100644 --- a/darwin/version/__init__.py +++ b/darwin/version/__init__.py @@ -1 +1 @@ -__version__ = "1.2.0" +__version__ = "1.2.1" diff --git a/pyproject.toml b/pyproject.toml index 04b6f0212..40e86a772 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] build-backend = "poetry.core.masonry.api" -requires = ["poetry-core"] +requires = [ "poetry-core",] [tool.poetry] -authors = ["V7 "] -classifiers = ["Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License"] +authors = [ "V7 ",] +classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: MIT License",] description = "Library and command line interface for darwin.v7labs.com" documentation = "https://darwin-py-sdk.v7labs.com/index.html" homepage = "https://docs.v7labs.com/reference/getting-started-2" @@ -13,7 +13,7 @@ license = "MIT" name = "darwin-py" readme = "README.md" repository = "https://github.com/v7labs/darwin-py" -version = "1.2.0" +version = "1.2.1" [[tool.poetry.packages]] include = "darwin" @@ -36,7 +36,7 @@ ignore_missing_imports = true implicit_reexport = true no_implicit_optional = true no_implicit_reexport = true -plugins = ["pydantic.mypy"] +plugins = [ "pydantic.mypy",] pretty = true python_version = "3.10" warn_redundant_casts = true @@ -51,12 +51,10 @@ warn_required_dynamic_aliases = true warn_untyped_fields = true [tool.ruff] -lint.ignore = ["E203", "E402", "E501", "C901"] line-length = 88 -lint.select = ["E", "F", "C"] [tool.flake8] -ignore = ["E203", "W503", "E402"] +ignore = [ "E203", "W503", "E402",] max-line-length = 88 [tool.black] @@ -82,21 +80,21 @@ types-pyyaml = "^6.0.12.9" types-requests = "^2.28.11.8" upolygon = "0.1.11" tenacity = "^8.5.0" - natsort = "^8.4.0" + [tool.poetry.extras] -dev = ["black", "isort", "flake8", "mypy", "debugpy", "responses", "pytest", "flake8-pyproject", "pytest-rerunfailures", "ruff", "validate-pyproject"] -medical = ["nibabel", "connected-components-3d", "scipy"] -ml = ["torch", "torchvision", "scikit-learn", "albumentations", "scipy"] -ocv = ["opencv-python-headless"] -test = ["responses", "pytest", "flake8-pyproject"] +dev = [ "black", "isort", "flake8", "mypy", "debugpy", "responses", "pytest", "flake8-pyproject", "pytest-rerunfailures", "ruff", "validate-pyproject",] +medical = [ "nibabel", "connected-components-3d", "scipy",] +ml = [ "torch", "torchvision", "scikit-learn", "albumentations", "scipy",] +ocv = [ "opencv-python-headless",] +test = [ "responses", "pytest", "flake8-pyproject",] [tool.poetry.scripts] darwin = "darwin.cli:main" -[tool.ruff.lint.per-file-ignores] -"**/{tests,docs,tools}/*" = ["E402", "F403"] -"__init__.py" = ["E402", "F401"] +[tool.ruff.lint] +ignore = [ "E203", "E402", "E501", "C901",] +select = [ "E", "F", "C",] [tool.poetry.dependencies.nibabel] optional = true @@ -129,6 +127,7 @@ version = "^2.5.1" [tool.poetry.dependencies.torchvision] optional = true version = "^0.20.1" + [tool.poetry.dependencies.black] optional = true version = "^24.4.2" @@ -176,3 +175,7 @@ version = ">=0.4.7,<0.10.0" [tool.poetry.dependencies.validate-pyproject] optional = true version = ">=0.15,<0.24" + +[tool.ruff.lint.per-file-ignores] +"**/{tests,docs,tools}/*" = [ "E402", "F403",] +"__init__.py" = [ "E402", "F401",]