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 a29e4dc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 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
]
8 changes: 4 additions & 4 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 @@ -124,7 +124,7 @@ extra-dependencies = [
[tool.hatch.envs.default.scripts]
lint = "ruff check --show-source --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 a29e4dc

Please sign in to comment.