Skip to content

Commit

Permalink
feat: update github actions (#76)
Browse files Browse the repository at this point in the history
* feat: update github actions

Signed-off-by: Hayato Mizushima <[email protected]>

* fix: remove Removed Rules

Signed-off-by: Hayato Mizushima <[email protected]>

* chore: noqa PLC0206

Signed-off-by: Hayato Mizushima <[email protected]>

---------

Signed-off-by: Hayato Mizushima <[email protected]>
  • Loading branch information
hayato-m126 authored Jan 2, 2025
1 parent 54fce7b commit 3d6f9e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repos:
args: [--markdown-linebreak-ext=md]

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.42.0
rev: v0.43.0
hooks:
- id: markdownlint
args: [-c, .markdownlint.yaml, --fix, -i, CONTRIBUTING.md]
Expand Down Expand Up @@ -49,13 +49,13 @@ repos:
- id: shellcheck

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.10.0-1
rev: v3.10.0-2
hooks:
- id: shfmt
args: [-w, -s, -i=4]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.0 # Match the version used by the vscode extension. Otherwise, the editor and the command may say different things.
rev: v0.8.0 # Match the version used by the vscode extension. Otherwise, the editor and the command may say different things.
hooks:
- id: ruff
args: [--fix]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def set_frame(self, msg: DiagnosticArray) -> dict:
diag_array_class[class_name] = {}
diag_array_class[class_name].update(diag_dict)
# evaluate for each class
for class_name in diag_array_class:
for class_name in diag_array_class: # noqa PLC0206
if self.__container.get(class_name) is None:
# Add default ObjectMetricsClass for metrics aggregation
self.__container[class_name] = ObjectMetrics(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ output-format = "full"
[tool.ruff.lint]
# https://beta.ruff.rs/docs/rules/
select = ["A", "B", "C", "D", "E", "F", "G", "I", "N", "Q", "S", "T", "W", "ANN", "ARG", "BLE", "COM", "DJ", "DTZ", "EM", "ERA", "EXE", "FBT", "ICN", "ISC", "NPY", "PD", "PGH", "PIE", "PL", "PT", "PTH", "PYI", "RET", "RSE", "RUF", "SIM", "SLF", "TCH", "TID", "TRY", "UP", "YTT"]
ignore = ["Q000", "ANN101", "ANN102", "ANN401", "PGH004", "E501", "PLR0913", "S101", "S301", "S603", "SIM115", "D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D212", "D404", "D417", "PD011", "PD002", "PD901", "COM812", "ISC001"]
ignore = ["Q000", "ANN401", "PGH004", "E501", "PLR0913", "S101", "S301", "S603", "SIM115", "D100", "D101", "D102", "D103", "D104", "D105", "D106", "D107", "D203", "D212", "D404", "D417", "PD011", "PD002", "PD901", "COM812", "ISC001"]
fixable = ["D", "I", "ANN", "COM", "EXE", "PIE"]

[tool.ruff.lint.isort]
Expand Down

0 comments on commit 3d6f9e8

Please sign in to comment.