Skip to content

Commit

Permalink
chore: disable S403, S404 globally
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizhiy committed Mar 4, 2024
1 parent db2f1cf commit 51ff3fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ line-length = 120
preview = true
select = ["A", "ARG", "B", "BLE", "C4", "COM", "E", "ERA", "F", "FBT", "FIX", "FLY", "FURB", "I", "IC", "INP", "ISC", "LOG", "N", "NPY", "PERF", "PIE", "PT", "PTH", "Q", "R", "RET", "RSE", "S", "SIM", "SLF", "T20", "TCH", "TD", "TID", "TRY", "UP", "W"]
fixable = ["ALL"]
ignore = ["A003", "E203", "FIX002", "FURB113", "N817", "PTH123", "RET503", "S113", "TD002", "TD003", "TRY003", "UP007", "UP035"]
ignore = ["A003", "E203", "FIX002", "FURB113", "N817", "PTH123", "RET503", "S113", "S403", "S404", "TD002", "TD003", "TRY003", "UP007", "UP035"]
[tool.ruff.lint.per-file-ignores]
"**/__init__.py" = [
"F401", # Allow unused imports in module files
Expand Down
2 changes: 1 addition & 1 deletion replete/consistent_hash.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import collections.abc
import contextlib
import datetime
import pickle # noqa S403, not loading anything here, only dumping
import pickle
from typing import TYPE_CHECKING

import xxhash
Expand Down
2 changes: 1 addition & 1 deletion replete/testing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import pickle # noqa: S403
import pickle
import warnings
from pathlib import Path

Expand Down

0 comments on commit 51ff3fa

Please sign in to comment.