Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency dev/ruff to v0.2.1 #536

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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