Skip to content

Commit

Permalink
chore(deps): update dependency dev/ruff to v0.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: JP-Ellis <[email protected]>
  • Loading branch information
renovate[bot] authored and JP-Ellis committed Feb 7, 2024
1 parent 7d112f3 commit 2d28a51
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion examples/.ruff.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
extend = "../pyproject.toml"

[lint]
ignore = [
"S101", # Forbid assert statements
"D103", # Require docstring in public function
"D104", # Require docstring in public package
]

[per-file-ignores]
[lint.per-file-ignores]
"tests/**.py" = [
"INP001", # Forbid implicit namespaces
]
4 changes: 2 additions & 2 deletions hatch_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ def _pact_bin_extract(self, artifact: Path) -> None:
"""
if str(artifact).endswith(".zip"):
with zipfile.ZipFile(artifact) as f:
f.extractall(ROOT_DIR)
f.extractall(ROOT_DIR) # noqa: S202

if str(artifact).endswith(".tar.gz"):
with tarfile.open(artifact) as f:
f.extractall(ROOT_DIR)
f.extractall(ROOT_DIR) # noqa: S202

# Cleanup the extract `README.md`
(ROOT_DIR / "pact" / "README.md").unlink()
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ test = [
"pytest-cov ~= 4.0",
"testcontainers ~= 3.0",
]
dev = ["pact-python[types]", "pact-python[test]", "ruff==0.1.15"]
dev = ["pact-python[types]", "pact-python[test]", "ruff==0.2.1"]

################################################################################
## Hatch Build Configuration
Expand Down Expand Up @@ -122,9 +122,9 @@ extra-dependencies = [
]

[tool.hatch.envs.default.scripts]
lint = "ruff check --show-source --show-fixes {args}"
lint = "ruff check --output-format=full --show-fixes {args}"
typecheck = "mypy {args:.}"
format = "ruff format --diff {args}"
format = "ruff format {args}"
test = "pytest tests/ {args}"
example = "pytest examples/ {args}"
all = ["format", "lint", "typecheck", "test", "example"]
Expand Down Expand Up @@ -242,10 +242,10 @@ keep-runtime-typing = true
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["pact"]

[tool.ruff.flake8-tidy-imports]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "all"

[tool.ruff.format]
Expand Down
2 changes: 2 additions & 0 deletions tests/ruff.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
extend = "../pyproject.toml"

[lint]
ignore = [
"D103", # Require docstrings on public functions
"INP001", # Forbid implicit namespaces
Expand Down

0 comments on commit 2d28a51

Please sign in to comment.