Skip to content

Commit c6e4aa9

Browse files
[pre-commit.ci] pre-commit autoupdate (#220)
<!--pre-commit.ci start--> updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](astral-sh/ruff-pre-commit@v0.1.14...v0.2.0) <!--pre-commit.ci end--> --------- Signed-off-by: Alexander Piskun <bigcat88@icloud.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Alexander Piskun <bigcat88@icloud.com>
1 parent d862b65 commit c6e4aa9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ repos:
4141
- id: pyproject-fmt
4242

4343
- repo: https://github.com/astral-sh/ruff-pre-commit
44-
rev: v0.1.14
44+
rev: v0.2.0
4545
hooks:
4646
- id: ruff
4747

nc_py_api/user_status.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self, raw_status: dict):
3939
self.status_id = raw_status["id"]
4040
self.icon = raw_status["icon"]
4141
self.message = raw_status["message"]
42-
clear_at_raw = raw_status.get("clearAt", None)
42+
clear_at_raw = raw_status.get("clearAt")
4343
if clear_at_raw:
4444
self.clear_at = ClearAt(clear_at_raw)
4545
else:

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,20 +110,20 @@ preview = true
110110
[tool.ruff]
111111
line-length = 120
112112
target-version = "py310"
113-
select = ["A", "B", "C", "D", "E", "F", "G", "I", "S", "SIM", "PIE", "Q", "RET", "RUF", "UP" , "W"]
114-
extend-ignore = ["D107", "D105", "D203", "D213", "D401", "I001", "RUF100"]
113+
lint.select = ["A", "B", "C", "D", "E", "F", "G", "I", "S", "SIM", "PIE", "Q", "RET", "RUF", "UP" , "W"]
114+
lint.extend-ignore = ["D107", "D105", "D203", "D213", "D401", "I001", "RUF100"]
115115

116-
[tool.ruff.per-file-ignores]
116+
[tool.ruff.lint.per-file-ignores]
117117
"nc_py_api/__init__.py" = ["F401"]
118118
"nc_py_api/ex_app/__init__.py" = ["F401"]
119119

120-
[tool.ruff.extend-per-file-ignores]
121-
"benchmarks/**/*.py" = ["D"]
120+
[tool.ruff.lint.extend-per-file-ignores]
121+
"benchmarks/**/*.py" = ["D", "SIM"]
122122
"docs/**/*.py" = ["D"]
123123
"examples/**/*.py" = ["D", "S106", "S311"]
124124
"tests/**/*.py" = ["D", "E402", "S", "UP"]
125125

126-
[tool.ruff.mccabe]
126+
[tool.ruff.lint.mccabe]
127127
max-complexity = 16
128128

129129
[tool.isort]

0 commit comments

Comments
 (0)