Skip to content

Commit

Permalink
Merge branch 'main' into lp/rp-conditional-execution
Browse files Browse the repository at this point in the history
  • Loading branch information
zoido authored Jan 16, 2024
2 parents 7aa0dff + 773e2fe commit 7bd075f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,19 @@ template = "test"

[tool.hatch.envs.lint]
dependencies = [
"black==22.10.0",
"mypy~=1.1",
"ruff==0.0.286",
"ruff==0.1.11",
]

[tool.hatch.envs.lint.scripts]
check = [
"black --check .",
"ruff format --check .",
"ruff check .",
"mypy src",
]
fix = [
"ruff check --fix .",
"black .",
"ruff format .",
"check",
]

Expand All @@ -91,15 +90,16 @@ dependencies = [
[tool.hatch.envs.docs.scripts]
generate = "pydoc-markdown"

[tool.black]
skip-magic-trailing-comma = true

[tool.ruff]
extend-select = ["I", "B", "A", "ERA"]
line-length = 88 # Same as black.
src = ["src", "test"]
target-version = "py37"

[tool.ruff.format]
docstring-code-format = true
skip-magic-trailing-comma = true

[tool.ruff.isort]
case-sensitive = false
force-single-line = true
Expand Down
2 changes: 1 addition & 1 deletion src/h2o_discovery/_internal/lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def _discovery_uri_from_environment(environment: str):


def determine_local_config_path(
config_path: Optional[Optional[Union[str, bytes, os.PathLike]]] = None
config_path: Optional[Optional[Union[str, bytes, os.PathLike]]] = None,
) -> Optional[str]:
"""Uses passed parameter, environment variable and H2O CLI default to get the
path to the local config file.
Expand Down

0 comments on commit 7bd075f

Please sign in to comment.