Skip to content

Commit 2d28a51

Browse files
renovate[bot]JP-Ellis
authored andcommitted
chore(deps): update dependency dev/ruff to v0.2.1
Signed-off-by: JP-Ellis <josh@jpellis.me>
1 parent 7d112f3 commit 2d28a51

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

examples/.ruff.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
extend = "../pyproject.toml"
22

3+
[lint]
34
ignore = [
45
"S101", # Forbid assert statements
56
"D103", # Require docstring in public function
67
"D104", # Require docstring in public package
78
]
89

9-
[per-file-ignores]
10+
[lint.per-file-ignores]
1011
"tests/**.py" = [
1112
"INP001", # Forbid implicit namespaces
1213
]

hatch_build.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ def _pact_bin_extract(self, artifact: Path) -> None:
193193
"""
194194
if str(artifact).endswith(".zip"):
195195
with zipfile.ZipFile(artifact) as f:
196-
f.extractall(ROOT_DIR)
196+
f.extractall(ROOT_DIR) # noqa: S202
197197

198198
if str(artifact).endswith(".tar.gz"):
199199
with tarfile.open(artifact) as f:
200-
f.extractall(ROOT_DIR)
200+
f.extractall(ROOT_DIR) # noqa: S202
201201

202202
# Cleanup the extract `README.md`
203203
(ROOT_DIR / "pact" / "README.md").unlink()

pyproject.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ test = [
7676
"pytest-cov ~= 4.0",
7777
"testcontainers ~= 3.0",
7878
]
79-
dev = ["pact-python[types]", "pact-python[test]", "ruff==0.1.15"]
79+
dev = ["pact-python[types]", "pact-python[test]", "ruff==0.2.1"]
8080

8181
################################################################################
8282
## Hatch Build Configuration
@@ -122,9 +122,9 @@ extra-dependencies = [
122122
]
123123

124124
[tool.hatch.envs.default.scripts]
125-
lint = "ruff check --show-source --show-fixes {args}"
125+
lint = "ruff check --output-format=full --show-fixes {args}"
126126
typecheck = "mypy {args:.}"
127-
format = "ruff format --diff {args}"
127+
format = "ruff format {args}"
128128
test = "pytest tests/ {args}"
129129
example = "pytest examples/ {args}"
130130
all = ["format", "lint", "typecheck", "test", "example"]
@@ -242,10 +242,10 @@ keep-runtime-typing = true
242242
[tool.ruff.lint.pydocstyle]
243243
convention = "google"
244244

245-
[tool.ruff.isort]
245+
[tool.ruff.lint.isort]
246246
known-first-party = ["pact"]
247247

248-
[tool.ruff.flake8-tidy-imports]
248+
[tool.ruff.lint.flake8-tidy-imports]
249249
ban-relative-imports = "all"
250250

251251
[tool.ruff.format]

tests/ruff.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
extend = "../pyproject.toml"
2+
3+
[lint]
24
ignore = [
35
"D103", # Require docstrings on public functions
46
"INP001", # Forbid implicit namespaces

0 commit comments

Comments
 (0)