Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
tmke8 committed Mar 23, 2024
2 parents 0ed0152 + 57e70d7 commit 966d167
Show file tree
Hide file tree
Showing 16 changed files with 274 additions and 270 deletions.
103 changes: 52 additions & 51 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

58 changes: 27 additions & 31 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@ version = "2.4.2"
description = "A toolkit facilitating machine-learning experimentation."
authors = ["PAL <[email protected]>"]
license = "Apache License 2.0"
packages = [
{ include = "ranzen" },
]
include=["ranzen/py.typed"]
classifiers=[
packages = [{ include = "ranzen" }]
include = ["ranzen/py.typed"]
classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Typing :: Typed",
]
keywords=["typing", "python"]
repository="https://github.com/wearepal/ranzen"
readme="README.md"
keywords = ["typing", "python"]
repository = "https://github.com/wearepal/ranzen"
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.10,<3.13"
Expand All @@ -27,7 +25,7 @@ numpy = "^1.23.2"

# wandb dependencies
pandas = { version = "^1.5.0", optional = true }
wandb = { version= ">=0.15", optional = true }
wandb = { version = ">=0.15", optional = true }

# logging dependencies
loguru = { version = "^0.6.0", optional = true }
Expand All @@ -44,7 +42,7 @@ hydra = ["attrs", "hydra-core", "neoconfigen"]
all = ["attrs", "hydra-core", "loguru", "neoconfigen", "pandas", "wandb"]

[tool.poetry.group.lint.dependencies]
ruff = ">=0.2"
ruff = ">=0.2.2"

[tool.poetry.group.docs]
optional = true
Expand Down Expand Up @@ -97,29 +95,30 @@ line-length = 100
target-version = "py310"

[tool.ruff.format]
quote-style = "preserve"
exclude = [".undodir/*"]

[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"FBT", # boolean trap
"I", # isort
# "N", # naming
"PLC", # pylint convention
"PLE", # pylint error
# "PLR", # pylint refactor
"PLW", # pylint warning
"PTH", # use-pathlib
# "UP", # pyupgrade
"UP035", # newer imports
"W",
"E", # pycodestyle
"F", # pyflakes
"FBT", # boolean trap
"I", # isort
# "N", # naming
"PLC", # pylint convention
"PLE", # pylint error
# "PLR", # pylint refactor
"PLW", # pylint warning
"PTH", # use-pathlib
# "UP", # pyupgrade
"UP035", # newer imports
"W",
]
ignore = [
"E501", # line length
"F541", # f-string without placeholder
"PLW2901", # overwriting loop variable
"PLC0105", # covariant typevars have to end in "_co"
"E501", # line length
"F541", # f-string without placeholder
"PLW2901", # overwriting loop variable
"PLC0105", # covariant typevars have to end in "_co"
]

[tool.ruff.lint.per-file-ignores]
Expand Down Expand Up @@ -148,10 +147,7 @@ extra-standard-library = ["typing_extensions"]
no-lines-before = ["future", "standard-library"]
force-sort-within-sections = true
split-on-trailing-comma = false
classes = [
"SAM",
"LAMB",
]
classes = ["SAM", "LAMB"]

[tool.pydoclint]
style = "sphinx"
Expand Down
4 changes: 2 additions & 2 deletions ranzen/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Decorator functions."""

from collections.abc import Callable
from enum import Enum
from typing import Any, Protocol, TypeVar
Expand All @@ -12,8 +13,7 @@


class IdentityFunction(Protocol[_T]):
def __call__(self, __x: _T) -> _T:
...
def __call__(self, __x: _T) -> _T: ...


@deprecated("Use 'typing_extensions.override' instead.")
Expand Down
Loading

0 comments on commit 966d167

Please sign in to comment.