---
source: crates/ruff/tests/cli/show_settings.rs
info:
program: ruff
args:
- check
- "--show-settings"
- test.py
---
success: true
exit_code: 0
----- stdout -----
Resolved settings for: "[TMP]/test.py"
Settings path: "[TMP]/pyproject.toml"
# General Settings
cache_dir = "[TMP]/.ruff_cache"
fix = false
fix_only = false
output_format = full
output_prefer_rule_codes = false
show_fixes = false
unsafe_fixes = hint
# File Resolver Settings
file_resolver.exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"dist",
"node_modules",
"site-packages",
"venv",
]
file_resolver.extend_exclude = []
file_resolver.force_exclude = false
file_resolver.include = [
"*.py",
"*.pyi",
"*.ipynb",
"**/pyproject.toml",
"**/ruff.toml",
"**/.ruff.toml",
"*.md",
]
file_resolver.extend_include = []
file_resolver.respect_gitignore = true
file_resolver.project_root = "[TMP]/"
# Linter Settings
linter.exclude = []
linter.project_root = "[TMP]/"
linter.rules.enabled = [
sys-version-slice3 (YTT101),
sys-version2 (YTT102),
sys-version-cmp-str3 (YTT103),
sys-version-info0-eq3 (YTT201),
six-py3 (YTT202),
sys-version-info1-cmp-int (YTT203),
sys-version-info-minor-cmp-int (YTT204),
sys-version0 (YTT301),
sys-version-cmp-str10 (YTT302),
sys-version-slice1 (YTT303),
cancel-scope-no-checkpoint (ASYNC100),
trio-sync-call (ASYNC105),
async-zero-sleep (ASYNC115),
long-sleep-not-forever (ASYNC116),
blocking-http-call-in-async-function (ASYNC210),
create-subprocess-in-async-function (ASYNC220),
run-process-in-async-function (ASYNC221),
wait-for-process-in-async-function (ASYNC222),
blocking-open-call-in-async-function (ASYNC230),
blocking-sleep-in-async-function (ASYNC251),
exec-builtin (S102),
try-except-pass (S110),
try-except-continue (S112),
blind-except (BLE001),
unary-prefix-increment-decrement (B002),
assignment-to-os-environ (B003),
unreliable-callable-check (B004),
strip-with-multi-characters (B005),
mutable-argument-default (B006),
function-call-in-default-argument (B008),
get-attr-with-constant (B009),
set-attr-with-constant (B010),
jump-statement-in-finally (B012),
redundant-tuple-in-exception-handler (B013),
duplicate-handler-exception (B014),
useless-comparison (B015),
raise-literal (B016),
assert-raises-exception (B017),
useless-expression (B018),
cached-instance-method (B019),
loop-variable-overrides-iterator (B020),
f-string-docstring (B021),
useless-contextlib-suppress (B022),
function-uses-loop-variable (B023),
duplicate-try-block-exception (B025),
star-arg-unpacking-after-keyword-arg (B026),
except-with-empty-tuple (B029),
except-with-non-exception-classes (B030),
reuse-of-groupby-generator (B031),
unintentional-type-annotation (B032),
duplicate-value (B033),
static-key-dict-comprehension (B035),
mutable-contextvar-default (B039),
unnecessary-generator-list (C400),
unnecessary-generator-set (C401),
unnecessary-generator-dict (C402),
unnecessary-list-comprehension-set (C403),
unnecessary-list-comprehension-dict (C404),
unnecessary-literal-set (C405),
unnecessary-literal-dict (C406),
unnecessary-collection-call (C408),
unnecessary-literal-within-tuple-call (C409),
unnecessary-literal-within-list-call (C410),
unnecessary-list-call (C411),
unnecessary-call-around-sorted (C413),
unnecessary-double-cast-or-process (C414),
unnecessary-subscript-reversal (C415),
unnecessary-map (C417),
unnecessary-literal-within-dict-call (C418),
unnecessary-comprehension-in-call (C419),
call-datetime-without-tzinfo (DTZ001),
call-datetime-today (DTZ002),
call-datetime-utcnow (DTZ003),
call-datetime-utcfromtimestamp (DTZ004),
call-datetime-now-without-tzinfo (DTZ005),
call-datetime-fromtimestamp (DTZ006),
call-datetime-strptime-without-zone (DTZ007),
call-date-today (DTZ011),
call-date-fromtimestamp (DTZ012),
datetime-min-max (DTZ901),
debugger (T100),
shebang-not-executable (EXE001),
shebang-missing-executable-file (EXE002),
shebang-leading-whitespace (EXE004),
shebang-not-first-line (EXE005),
future-rewritable-type-annotation (FA100),
future-required-type-annotation (FA102),
f-string-in-get-text-func-call (INT001),
format-in-get-text-func-call (INT002),
printf-in-get-text-func-call (INT003),
implicit-string-concatenation-in-collection-literal (ISC004),
direct-logger-instantiation (LOG001),
invalid-get-logger-argument (LOG002),
undocumented-warn (LOG009),
exc-info-outside-except-handler (LOG014),
root-logger-call (LOG015),
logging-warn (G010),
logging-extra-attr-clash (G101),
logging-exc-info (G201),
logging-redundant-exc-info (G202),
unnecessary-placeholder (PIE790),
duplicate-class-field-definition (PIE794),
non-unique-enums (PIE796),
unnecessary-spread (PIE800),
unnecessary-dict-kwargs (PIE804),
reimplemented-container-builtin (PIE807),
unnecessary-range-start (PIE808),
multiple-starts-ends-with (PIE810),
unprefixed-type-param (PYI001),
complex-if-statement-in-stub (PYI002),
unrecognized-version-info-check (PYI003),
patch-version-comparison (PYI004),
wrong-tuple-length-version-comparison (PYI005),
bad-version-info-comparison (PYI006),
unrecognized-platform-check (PYI007),
unrecognized-platform-name (PYI008),
pass-statement-stub-body (PYI009),
non-empty-stub-body (PYI010),
pass-in-class-body (PYI012),
ellipsis-in-non-empty-class-body (PYI013),
assignment-default-in-stub (PYI015),
duplicate-union-member (PYI016),
complex-assignment-in-stub (PYI017),
unused-private-type-var (PYI018),
custom-type-var-for-self (PYI019),
quoted-annotation-in-stub (PYI020),
unaliased-collections-abc-set-import (PYI025),
type-alias-without-annotation (PYI026),
str-or-repr-defined-in-stub (PYI029),
unnecessary-literal-union (PYI030),
any-eq-ne-annotation (PYI032),
legacy-type-comment (PYI033),
non-self-return-type (PYI034),
unassigned-special-variable-in-stub (PYI035),
bad-exit-annotation (PYI036),
redundant-numeric-union (PYI041),
snake-case-type-alias (PYI042),
t-suffixed-type-alias (PYI043),
future-annotations-in-stub (PYI044),
iter-method-return-iterable (PYI045),
unused-private-protocol (PYI046),
unused-private-type-alias (PYI047),
stub-body-multiple-statements (PYI048),
unused-private-typed-dict (PYI049),
no-return-argument-annotation-in-stub (PYI050),
unannotated-assignment-in-stub (PYI052),
unnecessary-type-union (PYI055),
byte-string-usage (PYI057),
generator-return-from-iter-method (PYI058),
generic-not-last-base-class (PYI059),
redundant-none-literal (PYI061),
duplicate-literal-member (PYI062),
pep484-style-positional-only-parameter (PYI063),
redundant-final-literal (PYI064),
bad-version-info-order (PYI066),
pytest-raises-without-exception (PT010),
pytest-duplicate-parametrize-test-cases (PT014),
pytest-deprecated-yield-fixture (PT020),
pytest-erroneous-use-fixtures-on-fixture (PT025),
pytest-use-fixtures-without-parameters (PT026),
pytest-warns-with-multiple-statements (PT031),
unnecessary-return-none (RET501),
duplicate-isinstance-call (SIM101),
collapsible-if (SIM102),
needless-bool (SIM103),
return-in-try-except-finally (SIM107),
enumerate-for-loop (SIM113),
if-with-same-arms (SIM114),
open-file-with-context-handler (SIM115),
multiple-with-statements (SIM117),
in-dict-keys (SIM118),
negate-equal-op (SIM201),
negate-not-equal-op (SIM202),
double-negation (SIM208),
if-expr-with-true-false (SIM210),
if-expr-with-false-true (SIM211),
expr-and-not-expr (SIM220),
expr-or-not-expr (SIM221),
expr-or-true (SIM222),
expr-and-false (SIM223),
if-else-block-instead-of-dict-get (SIM401),
split-static-string (SIM905),
zip-dict-keys-and-values (SIM911),
runtime-import-in-type-checking-block (TC004),
empty-type-checking-block (TC005),
unquoted-type-alias (TC007),
runtime-string-union (TC010),
py-path (PTH124),
invalid-pathlib-with-suffix (PTH210),
static-join-to-f-string (FLY002),
unsorted-imports (I001),
invalid-module-name (N999),
unnecessary-list-cast (PERF101),
incorrect-dict-iterator (PERF102),
manual-list-copy (PERF402),
bare-except (E722),
io-error (E902),
invalid-escape-sequence (W605),
empty-docstring (D419),
unused-import (F401),
import-shadowed-by-loop-var (F402),
late-future-import (F404),
future-feature-not-defined (F407),
percent-format-invalid-format (F501),
percent-format-expected-mapping (F502),
percent-format-expected-sequence (F503),
percent-format-extra-named-arguments (F504),
percent-format-missing-argument (F505),
percent-format-mixed-positional-and-named (F506),
percent-format-positional-count-mismatch (F507),
percent-format-star-requires-sequence (F508),
percent-format-unsupported-format-character (F509),
string-dot-format-invalid-format (F521),
string-dot-format-extra-named-arguments (F522),
string-dot-format-extra-positional-arguments (F523),
string-dot-format-missing-arguments (F524),
string-dot-format-mixing-automatic (F525),
f-string-missing-placeholders (F541),
multi-value-repeated-key-literal (F601),
multi-value-repeated-key-variable (F602),
expressions-in-star-assignment (F621),
multiple-starred-expressions (F622),
assert-tuple (F631),
is-literal (F632),
invalid-print-syntax (F633),
if-tuple (F634),
break-outside-loop (F701),
continue-outside-loop (F702),
yield-outside-function (F704),
return-outside-function (F706),
default-except-not-last (F707),
redefined-while-unused (F811),
undefined-name (F821),
undefined-export (F822),
undefined-local (F823),
unused-variable (F841),
unused-annotation (F842),
raise-not-implemented (F901),
invalid-mock-access (PGH005),
type-name-incorrect-variance (PLC0105),
type-bivariance (PLC0131),
type-param-name-mismatch (PLC0132),
single-string-slots (PLC0205),
dict-index-missing-items (PLC0206),
iteration-over-set (PLC0208),
useless-import-alias (PLC0414),
unnecessary-direct-lambda-call (PLC3002),
yield-in-init (PLE0100),
return-in-init (PLE0101),
nonlocal-and-global (PLE0115),
continue-in-finally (PLE0116),
nonlocal-without-binding (PLE0117),
load-before-global-declaration (PLE0118),
invalid-length-return-type (PLE0303),
invalid-bool-return-type (PLE0304),
invalid-index-return-type (PLE0305),
invalid-str-return-type (PLE0307),
invalid-bytes-return-type (PLE0308),
invalid-hash-return-type (PLE0309),
invalid-all-object (PLE0604),
invalid-all-format (PLE0605),
potential-index-error (PLE0643),
misplaced-bare-raise (PLE0704),
repeated-keyword-argument (PLE1132),
await-outside-async (PLE1142),
logging-too-many-args (PLE1205),
logging-too-few-args (PLE1206),
bad-string-format-character (PLE1300),
bad-string-format-type (PLE1307),
bad-str-strip-call (PLE1310),
invalid-envvar-value (PLE1507),
singledispatch-method (PLE1519),
singledispatchmethod-function (PLE1520),
yield-from-in-async-function (PLE1700),
bidirectional-unicode (PLE2502),
invalid-character-backspace (PLE2510),
invalid-character-sub (PLE2512),
invalid-character-esc (PLE2513),
invalid-character-nul (PLE2514),
invalid-character-zero-width-space (PLE2515),
comparison-with-itself (PLR0124),
comparison-of-constant (PLR0133),
property-with-parameters (PLR0206),
manual-from-import (PLR0402),
redefined-argument-from-local (PLR1704),
stop-iteration-return (PLR1708),
useless-return (PLR1711),
boolean-chained-comparison (PLR1716),
sys-exit-alias (PLR1722),
if-stmt-min-max (PLR1730),
unnecessary-dict-index-lookup (PLR1733),
unnecessary-list-index-lookup (PLR1736),
empty-comment (PLR2044),
useless-else-on-loop (PLW0120),
self-assigning-variable (PLW0127),
redeclared-assigned-name (PLW0128),
assert-on-string-literal (PLW0129),
named-expr-without-context (PLW0131),
useless-exception-statement (PLW0133),
nan-comparison (PLW0177),
bad-staticmethod-argument (PLW0211),
super-without-brackets (PLW0245),
import-self (PLW0406),
global-variable-not-assigned (PLW0602),
global-at-module-level (PLW0604),
self-or-cls-assignment (PLW0642),
binary-op-exception (PLW0711),
bad-open-mode (PLW1501),
shallow-copy-environ (PLW1507),
invalid-envvar-default (PLW1508),
subprocess-popen-preexec-fn (PLW1509),
subprocess-run-without-check (PLW1510),
useless-with-lock (PLW2101),
useless-metaclass-type (UP001),
type-of-primitive (UP003),
useless-object-inheritance (UP004),
deprecated-unittest-alias (UP005),
non-pep585-annotation (UP006),
non-pep604-annotation-union (UP007),
super-call-with-parameters (UP008),
utf8-encoding-declaration (UP009),
unnecessary-future-import (UP010),
lru-cache-without-parameters (UP011),
unnecessary-encode-utf8 (UP012),
convert-named-tuple-functional-to-class (UP014),
datetime-timezone-utc (UP017),
native-literals (UP018),
typing-text-str-alias (UP019),
open-alias (UP020),
replace-universal-newlines (UP021),
replace-stdout-stderr (UP022),
deprecated-c-element-tree (UP023),
os-error-alias (UP024),
unicode-kind-prefix (UP025),
deprecated-mock-import (UP026),
yield-in-for-loop (UP028),
unnecessary-builtin-import (UP029),
format-literals (UP030),
printf-string-formatting (UP031),
f-string (UP032),
lru-cache-with-maxsize-none (UP033),
extraneous-parentheses (UP034),
deprecated-import (UP035),
outdated-version-block (UP036),
quoted-annotation (UP037),
unnecessary-class-parentheses (UP039),
non-pep695-type-alias (UP040),
timeout-error-alias (UP041),
unnecessary-default-type-args (UP043),
non-pep646-unpack (UP044),
non-pep604-annotation-optional (UP045),
non-pep695-generic-class (UP046),
non-pep695-generic-function (UP047),
private-type-parameter (UP049),
useless-class-metaclass-type (UP050),
print-empty-string (FURB105),
for-loop-writes (FURB122),
readlines-in-for (FURB129),
check-and-remove-from-set (FURB132),
if-expr-min-max (FURB136),
verbose-decimal-constructor (FURB157),
bit-count (FURB161),
fromisoformat-replace-z (FURB162),
redundant-log-base (FURB163),
int-on-sliced-str (FURB166),
regex-flag-alias (FURB167),
isinstance-type-none (FURB168),
type-none-comparison (FURB169),
implicit-cwd (FURB177),
hashlib-digest-hex (FURB181),
slice-to-remove-prefix-or-suffix (FURB188),
sorted-min-max (FURB192),
zip-instead-of-pairwise (RUF007),
mutable-dataclass-default (RUF008),
function-call-in-dataclass-default-argument (RUF009),
explicit-f-string-type-conversion (RUF010),
mutable-class-default (RUF012),
implicit-optional (RUF013),
unnecessary-iterable-allocation-for-first-element (RUF015),
invalid-index-type (RUF016),
quadratic-list-summation (RUF017),
assignment-in-assert (RUF018),
unnecessary-key-check (RUF019),
never-union (RUF020),
unsorted-dunder-all (RUF022),
unsorted-dunder-slots (RUF023),
mutable-fromkeys-value (RUF024),
default-factory-kwarg (RUF026),
invalid-formatter-suppression-comment (RUF028),
assert-with-print-message (RUF030),
decimal-from-float-literal (RUF032),
post-init-default (RUF033),
useless-if-else (RUF034),
invalid-assert-message-literal-argument (RUF040),
unnecessary-nested-literal (RUF041),
unnecessary-cast-to-int (RUF046),
map-int-version-parsing (RUF048),
dataclass-enum (RUF049),
if-key-in-dict-del (RUF051),
class-with-mixed-type-vars (RUF053),
unnecessary-round (RUF057),
starmap-zip (RUF058),
unused-unpacked-variable (RUF059),
access-annotations-from-class-dict (RUF063),
duplicate-entry-in-dunder-all (RUF068),
unused-noqa (RUF100),
redirected-noqa (RUF101),
invalid-pyproject-toml (RUF200),
raise-vanilla-class (TRY002),
type-check-without-type-error (TRY004),
verbose-raise (TRY201),
useless-try-except (TRY203),
verbose-log-message (TRY401),
]
linter.rules.should_fix = [
sys-version-slice3 (YTT101),
sys-version2 (YTT102),
sys-version-cmp-str3 (YTT103),
sys-version-info0-eq3 (YTT201),
six-py3 (YTT202),
sys-version-info1-cmp-int (YTT203),
sys-version-info-minor-cmp-int (YTT204),
sys-version0 (YTT301),
sys-version-cmp-str10 (YTT302),
sys-version-slice1 (YTT303),
cancel-scope-no-checkpoint (ASYNC100),
trio-sync-call (ASYNC105),
async-zero-sleep (ASYNC115),
long-sleep-not-forever (ASYNC116),
blocking-http-call-in-async-function (ASYNC210),
create-subprocess-in-async-function (ASYNC220),
run-process-in-async-function (ASYNC221),
wait-for-process-in-async-function (ASYNC222),
blocking-open-call-in-async-function (ASYNC230),
blocking-sleep-in-async-function (ASYNC251),
exec-builtin (S102),
try-except-pass (S110),
try-except-continue (S112),
blind-except (BLE001),
unary-prefix-increment-decrement (B002),
assignment-to-os-environ (B003),
unreliable-callable-check (B004),
strip-with-multi-characters (B005),
mutable-argument-default (B006),
function-call-in-default-argument (B008),
get-attr-with-constant (B009),
set-attr-with-constant (B010),
jump-statement-in-finally (B012),
redundant-tuple-in-exception-handler (B013),
duplicate-handler-exception (B014),
useless-comparison (B015),
raise-literal (B016),
assert-raises-exception (B017),
useless-expression (B018),
cached-instance-method (B019),
loop-variable-overrides-iterator (B020),
f-string-docstring (B021),
useless-contextlib-suppress (B022),
function-uses-loop-variable (B023),
duplicate-try-block-exception (B025),
star-arg-unpacking-after-keyword-arg (B026),
except-with-empty-tuple (B029),
except-with-non-exception-classes (B030),
reuse-of-groupby-generator (B031),
unintentional-type-annotation (B032),
duplicate-value (B033),
static-key-dict-comprehension (B035),
mutable-contextvar-default (B039),
unnecessary-generator-list (C400),
unnecessary-generator-set (C401),
unnecessary-generator-dict (C402),
unnecessary-list-comprehension-set (C403),
unnecessary-list-comprehension-dict (C404),
unnecessary-literal-set (C405),
unnecessary-literal-dict (C406),
unnecessary-collection-call (C408),
unnecessary-literal-within-tuple-call (C409),
unnecessary-literal-within-list-call (C410),
unnecessary-list-call (C411),
unnecessary-call-around-sorted (C413),
unnecessary-double-cast-or-process (C414),
unnecessary-subscript-reversal (C415),
unnecessary-map (C417),
unnecessary-literal-within-dict-call (C418),
unnecessary-comprehension-in-call (C419),
call-datetime-without-tzinfo (DTZ001),
call-datetime-today (DTZ002),
call-datetime-utcnow (DTZ003),
call-datetime-utcfromtimestamp (DTZ004),
call-datetime-now-without-tzinfo (DTZ005),
call-datetime-fromtimestamp (DTZ006),
call-datetime-strptime-without-zone (DTZ007),
call-date-today (DTZ011),
call-date-fromtimestamp (DTZ012),
datetime-min-max (DTZ901),
debugger (T100),
shebang-not-executable (EXE001),
shebang-missing-executable-file (EXE002),
shebang-leading-whitespace (EXE004),
shebang-not-first-line (EXE005),
future-rewritable-type-annotation (FA100),
future-required-type-annotation (FA102),
f-string-in-get-text-func-call (INT001),
format-in-get-text-func-call (INT002),
printf-in-get-text-func-call (INT003),
implicit-string-concatenation-in-collection-literal (ISC004),
direct-logger-instantiation (LOG001),
invalid-get-logger-argument (LOG002),
undocumented-warn (LOG009),
exc-info-outside-except-handler (LOG014),
root-logger-call (LOG015),
logging-warn (G010),
logging-extra-attr-clash (G101),
logging-exc-info (G201),
logging-redundant-exc-info (G202),
unnecessary-placeholder (PIE790),
duplicate-class-field-definition (PIE794),
non-unique-enums (PIE796),
unnecessary-spread (PIE800),
unnecessary-dict-kwargs (PIE804),
reimplemented-container-builtin (PIE807),
unnecessary-range-start (PIE808),
multiple-starts-ends-with (PIE810),
unprefixed-type-param (PYI001),
complex-if-statement-in-stub (PYI002),
unrecognized-version-info-check (PYI003),
patch-version-comparison (PYI004),
wrong-tuple-length-version-comparison (PYI005),
bad-version-info-comparison (PYI006),
unrecognized-platform-check (PYI007),
unrecognized-platform-name (PYI008),
pass-statement-stub-body (PYI009),
non-empty-stub-body (PYI010),
pass-in-class-body (PYI012),
ellipsis-in-non-empty-class-body (PYI013),
assignment-default-in-stub (PYI015),
duplicate-union-member (PYI016),
complex-assignment-in-stub (PYI017),
unused-private-type-var (PYI018),
custom-type-var-for-self (PYI019),
quoted-annotation-in-stub (PYI020),
unaliased-collections-abc-set-import (PYI025),
type-alias-without-annotation (PYI026),
str-or-repr-defined-in-stub (PYI029),
unnecessary-literal-union (PYI030),
any-eq-ne-annotation (PYI032),
legacy-type-comment (PYI033),
non-self-return-type (PYI034),
unassigned-special-variable-in-stub (PYI035),
bad-exit-annotation (PYI036),
redundant-numeric-union (PYI041),
snake-case-type-alias (PYI042),
t-suffixed-type-alias (PYI043),
future-annotations-in-stub (PYI044),
iter-method-return-iterable (PYI045),
unused-private-protocol (PYI046),
unused-private-type-alias (PYI047),
stub-body-multiple-statements (PYI048),
unused-private-typed-dict (PYI049),
no-return-argument-annotation-in-stub (PYI050),
unannotated-assignment-in-stub (PYI052),
unnecessary-type-union (PYI055),
byte-string-usage (PYI057),
generator-return-from-iter-method (PYI058),
generic-not-last-base-class (PYI059),
redundant-none-literal (PYI061),
duplicate-literal-member (PYI062),
pep484-style-positional-only-parameter (PYI063),
redundant-final-literal (PYI064),
bad-version-info-order (PYI066),
pytest-raises-without-exception (PT010),
pytest-duplicate-parametrize-test-cases (PT014),
pytest-deprecated-yield-fixture (PT020),
pytest-erroneous-use-fixtures-on-fixture (PT025),
pytest-use-fixtures-without-parameters (PT026),
pytest-warns-with-multiple-statements (PT031),
unnecessary-return-none (RET501),
duplicate-isinstance-call (SIM101),
collapsible-if (SIM102),
needless-bool (SIM103),
return-in-try-except-finally (SIM107),
enumerate-for-loop (SIM113),
if-with-same-arms (SIM114),
open-file-with-context-handler (SIM115),
multiple-with-statements (SIM117),
in-dict-keys (SIM118),
negate-equal-op (SIM201),
negate-not-equal-op (SIM202),
double-negation (SIM208),
if-expr-with-true-false (SIM210),
if-expr-with-false-true (SIM211),
expr-and-not-expr (SIM220),
expr-or-not-expr (SIM221),
expr-or-true (SIM222),
expr-and-false (SIM223),
if-else-block-instead-of-dict-get (SIM401),
split-static-string (SIM905),
zip-dict-keys-and-values (SIM911),
runtime-import-in-type-checking-block (TC004),
empty-type-checking-block (TC005),
unquoted-type-alias (TC007),
runtime-string-union (TC010),
py-path (PTH124),
invalid-pathlib-with-suffix (PTH210),
static-join-to-f-string (FLY002),
unsorted-imports (I001),
invalid-module-name (N999),
unnecessary-list-cast (PERF101),
incorrect-dict-iterator (PERF102),
manual-list-copy (PERF402),
bare-except (E722),
io-error (E902),
invalid-escape-sequence (W605),
empty-docstring (D419),
unused-import (F401),
import-shadowed-by-loop-var (F402),
late-future-import (F404),
future-feature-not-defined (F407),
percent-format-invalid-format (F501),
percent-format-expected-mapping (F502),
percent-format-expected-sequence (F503),
percent-format-extra-named-arguments (F504),
percent-format-missing-argument (F505),
percent-format-mixed-positional-and-named (F506),
percent-format-positional-count-mismatch (F507),
percent-format-star-requires-sequence (F508),
percent-format-unsupported-format-character (F509),
string-dot-format-invalid-format (F521),
string-dot-format-extra-named-arguments (F522),
string-dot-format-extra-positional-arguments (F523),
string-dot-format-missing-arguments (F524),
string-dot-format-mixing-automatic (F525),
f-string-missing-placeholders (F541),
multi-value-repeated-key-literal (F601),
multi-value-repeated-key-variable (F602),
expressions-in-star-assignment (F621),
multiple-starred-expressions (F622),
assert-tuple (F631),
is-literal (F632),
invalid-print-syntax (F633),
if-tuple (F634),
break-outside-loop (F701),
continue-outside-loop (F702),
yield-outside-function (F704),
return-outside-function (F706),
default-except-not-last (F707),
redefined-while-unused (F811),
undefined-name (F821),
undefined-export (F822),
undefined-local (F823),
unused-variable (F841),
unused-annotation (F842),
raise-not-implemented (F901),
invalid-mock-access (PGH005),
type-name-incorrect-variance (PLC0105),
type-bivariance (PLC0131),
type-param-name-mismatch (PLC0132),
single-string-slots (PLC0205),
dict-index-missing-items (PLC0206),
iteration-over-set (PLC0208),
useless-import-alias (PLC0414),
unnecessary-direct-lambda-call (PLC3002),
yield-in-init (PLE0100),
return-in-init (PLE0101),
nonlocal-and-global (PLE0115),
continue-in-finally (PLE0116),
nonlocal-without-binding (PLE0117),
load-before-global-declaration (PLE0118),
invalid-length-return-type (PLE0303),
invalid-bool-return-type (PLE0304),
invalid-index-return-type (PLE0305),
invalid-str-return-type (PLE0307),
invalid-bytes-return-type (PLE0308),
invalid-hash-return-type (PLE0309),
invalid-all-object (PLE0604),
invalid-all-format (PLE0605),
potential-index-error (PLE0643),
misplaced-bare-raise (PLE0704),
repeated-keyword-argument (PLE1132),
await-outside-async (PLE1142),
logging-too-many-args (PLE1205),
logging-too-few-args (PLE1206),
bad-string-format-character (PLE1300),
bad-string-format-type (PLE1307),
bad-str-strip-call (PLE1310),
invalid-envvar-value (PLE1507),
singledispatch-method (PLE1519),
singledispatchmethod-function (PLE1520),
yield-from-in-async-function (PLE1700),
bidirectional-unicode (PLE2502),
invalid-character-backspace (PLE2510),
invalid-character-sub (PLE2512),
invalid-character-esc (PLE2513),
invalid-character-nul (PLE2514),
invalid-character-zero-width-space (PLE2515),
comparison-with-itself (PLR0124),
comparison-of-constant (PLR0133),
property-with-parameters (PLR0206),
manual-from-import (PLR0402),
redefined-argument-from-local (PLR1704),
stop-iteration-return (PLR1708),
useless-return (PLR1711),
boolean-chained-comparison (PLR1716),
sys-exit-alias (PLR1722),
if-stmt-min-max (PLR1730),
unnecessary-dict-index-lookup (PLR1733),
unnecessary-list-index-lookup (PLR1736),
empty-comment (PLR2044),
useless-else-on-loop (PLW0120),
self-assigning-variable (PLW0127),
redeclared-assigned-name (PLW0128),
assert-on-string-literal (PLW0129),
named-expr-without-context (PLW0131),
useless-exception-statement (PLW0133),
nan-comparison (PLW0177),
bad-staticmethod-argument (PLW0211),
super-without-brackets (PLW0245),
import-self (PLW0406),
global-variable-not-assigned (PLW0602),
global-at-module-level (PLW0604),
self-or-cls-assignment (PLW0642),
binary-op-exception (PLW0711),
bad-open-mode (PLW1501),
shallow-copy-environ (PLW1507),
invalid-envvar-default (PLW1508),
subprocess-popen-preexec-fn (PLW1509),
subprocess-run-without-check (PLW1510),
useless-with-lock (PLW2101),
useless-metaclass-type (UP001),
type-of-primitive (UP003),
useless-object-inheritance (UP004),
deprecated-unittest-alias (UP005),
non-pep585-annotation (UP006),
non-pep604-annotation-union (UP007),
super-call-with-parameters (UP008),
utf8-encoding-declaration (UP009),
unnecessary-future-import (UP010),
lru-cache-without-parameters (UP011),
unnecessary-encode-utf8 (UP012),
convert-named-tuple-functional-to-class (UP014),
datetime-timezone-utc (UP017),
native-literals (UP018),
typing-text-str-alias (UP019),
open-alias (UP020),
replace-universal-newlines (UP021),
replace-stdout-stderr (UP022),
deprecated-c-element-tree (UP023),
os-error-alias (UP024),
unicode-kind-prefix (UP025),
deprecated-mock-import (UP026),
yield-in-for-loop (UP028),
unnecessary-builtin-import (UP029),
format-literals (UP030),
printf-string-formatting (UP031),
f-string (UP032),
lru-cache-with-maxsize-none (UP033),
extraneous-parentheses (UP034),
deprecated-import (UP035),
outdated-version-block (UP036),
quoted-annotation (UP037),
unnecessary-class-parentheses (UP039),
non-pep695-type-alias (UP040),
timeout-error-alias (UP041),
unnecessary-default-type-args (UP043),
non-pep646-unpack (UP044),
non-pep604-annotation-optional (UP045),
non-pep695-generic-class (UP046),
non-pep695-generic-function (UP047),
private-type-parameter (UP049),
useless-class-metaclass-type (UP050),
print-empty-string (FURB105),
for-loop-writes (FURB122),
readlines-in-for (FURB129),
check-and-remove-from-set (FURB132),
if-expr-min-max (FURB136),
verbose-decimal-constructor (FURB157),
bit-count (FURB161),
fromisoformat-replace-z (FURB162),
redundant-log-base (FURB163),
int-on-sliced-str (FURB166),
regex-flag-alias (FURB167),
isinstance-type-none (FURB168),
type-none-comparison (FURB169),
implicit-cwd (FURB177),
hashlib-digest-hex (FURB181),
slice-to-remove-prefix-or-suffix (FURB188),
sorted-min-max (FURB192),
zip-instead-of-pairwise (RUF007),
mutable-dataclass-default (RUF008),
function-call-in-dataclass-default-argument (RUF009),
explicit-f-string-type-conversion (RUF010),
mutable-class-default (RUF012),
implicit-optional (RUF013),
unnecessary-iterable-allocation-for-first-element (RUF015),
invalid-index-type (RUF016),
quadratic-list-summation (RUF017),
assignment-in-assert (RUF018),
unnecessary-key-check (RUF019),
never-union (RUF020),
unsorted-dunder-all (RUF022),
unsorted-dunder-slots (RUF023),
mutable-fromkeys-value (RUF024),
default-factory-kwarg (RUF026),
invalid-formatter-suppression-comment (RUF028),
assert-with-print-message (RUF030),
decimal-from-float-literal (RUF032),
post-init-default (RUF033),
useless-if-else (RUF034),
invalid-assert-message-literal-argument (RUF040),
unnecessary-nested-literal (RUF041),
unnecessary-cast-to-int (RUF046),
map-int-version-parsing (RUF048),
dataclass-enum (RUF049),
if-key-in-dict-del (RUF051),
class-with-mixed-type-vars (RUF053),
unnecessary-round (RUF057),
starmap-zip (RUF058),
unused-unpacked-variable (RUF059),
access-annotations-from-class-dict (RUF063),
duplicate-entry-in-dunder-all (RUF068),
unused-noqa (RUF100),
redirected-noqa (RUF101),
invalid-pyproject-toml (RUF200),
raise-vanilla-class (TRY002),
type-check-without-type-error (TRY004),
verbose-raise (TRY201),
useless-try-except (TRY203),
verbose-log-message (TRY401),
]
linter.per_file_ignores = {}
linter.safety_table.forced_safe = []
linter.safety_table.forced_unsafe = []
linter.unresolved_target_version = 3.7
linter.per_file_target_version = {}
linter.preview = disabled
linter.explicit_preview_rules = false
linter.extension = ExtensionMapping({})
linter.allowed_confusables = []
linter.builtins = []
linter.dummy_variable_rgx = ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$
linter.external = []
linter.ignore_init_module_imports = true
linter.logger_objects = []
linter.namespace_packages = []
linter.src = [
"[TMP]/",
"[TMP]/src",
]
linter.tab_size = 4
linter.line_length = 100
linter.task_tags = [
TODO,
FIXME,
XXX,
]
linter.typing_modules = []
linter.typing_extensions = true
# Linter Plugins
linter.flake8_annotations.mypy_init_return = false
linter.flake8_annotations.suppress_dummy_args = false
linter.flake8_annotations.suppress_none_returning = false
linter.flake8_annotations.allow_star_arg_any = false
linter.flake8_annotations.ignore_fully_untyped = false
linter.flake8_bandit.hardcoded_tmp_directory = [
/tmp,
/var/tmp,
/dev/shm,
]
linter.flake8_bandit.check_typed_exception = false
linter.flake8_bandit.extend_markup_names = []
linter.flake8_bandit.allowed_markup_calls = []
linter.flake8_bugbear.extend_immutable_calls = []
linter.flake8_builtins.allowed_modules = []
linter.flake8_builtins.ignorelist = []
linter.flake8_builtins.strict_checking = false
linter.flake8_comprehensions.allow_dict_calls_with_keyword_arguments = false
linter.flake8_copyright.notice_rgx = (?i)Copyright\s+((?:\(C\)|©)\s+)?\d{4}((-|,\s)\d{4})*
linter.flake8_copyright.author = none
linter.flake8_copyright.min_file_size = 0
linter.flake8_errmsg.max_string_length = 0
linter.flake8_gettext.function_names = [
_,
gettext,
ngettext,
]
linter.flake8_implicit_str_concat.allow_multiline = true
linter.flake8_import_conventions.aliases = {
altair = alt,
holoviews = hv,
matplotlib = mpl,
matplotlib.pyplot = plt,
networkx = nx,
numpy = np,
numpy.typing = npt,
pandas = pd,
panel = pn,
plotly.express = px,
polars = pl,
pyarrow = pa,
seaborn = sns,
tensorflow = tf,
tkinter = tk,
xml.etree.ElementTree = ET,
}
linter.flake8_import_conventions.banned_aliases = {}
linter.flake8_import_conventions.banned_from = []
linter.flake8_pytest_style.fixture_parentheses = false
linter.flake8_pytest_style.parametrize_names_type = tuple
linter.flake8_pytest_style.parametrize_values_type = list
linter.flake8_pytest_style.parametrize_values_row_type = tuple
linter.flake8_pytest_style.raises_require_match_for = [
BaseException,
Exception,
ValueError,
OSError,
IOError,
EnvironmentError,
socket.error,
]
linter.flake8_pytest_style.raises_extend_require_match_for = []
linter.flake8_pytest_style.mark_parentheses = false
linter.flake8_quotes.inline_quotes = double
linter.flake8_quotes.multiline_quotes = double
linter.flake8_quotes.docstring_quotes = double
linter.flake8_quotes.avoid_escape = true
linter.flake8_self.ignore_names = [
_make,
_asdict,
_replace,
_fields,
_field_defaults,
_name_,
_value_,
]
linter.flake8_tidy_imports.ban_relative_imports = "parents"
linter.flake8_tidy_imports.banned_api = {}
linter.flake8_tidy_imports.banned_module_level_imports = []
linter.flake8_tidy_imports.require_lazy = []
linter.flake8_tidy_imports.ban_lazy = []
linter.flake8_type_checking.strict = false
linter.flake8_type_checking.exempt_modules = [
typing,
typing_extensions,
]
linter.flake8_type_checking.runtime_required_base_classes = []
linter.flake8_type_checking.runtime_required_decorators = []
linter.flake8_type_checking.quote_annotations = false
linter.flake8_unused_arguments.ignore_variadic_names = false
linter.isort.required_imports = []
linter.isort.combine_as_imports = false
linter.isort.force_single_line = false
linter.isort.force_sort_within_sections = false
linter.isort.detect_same_package = true
linter.isort.case_sensitive = false
linter.isort.force_wrap_aliases = false
linter.isort.force_to_top = []
linter.isort.known_modules = {}
linter.isort.order_by_type = true
linter.isort.relative_imports_order = furthest_to_closest
linter.isort.single_line_exclusions = []
linter.isort.split_on_trailing_comma = true
linter.isort.classes = []
linter.isort.constants = []
linter.isort.variables = []
linter.isort.no_lines_before = []
linter.isort.import_headings = {}
linter.isort.lines_after_imports = -1
linter.isort.lines_between_types = 0
linter.isort.forced_separate = []
linter.isort.section_order = [
known { type = future },
known { type = standard_library },
known { type = third_party },
known { type = first_party },
known { type = local_folder },
]
linter.isort.default_section = known { type = third_party }
linter.isort.no_sections = false
linter.isort.from_first = false
linter.isort.length_sort = false
linter.isort.length_sort_straight = false
linter.mccabe.max_complexity = 10
linter.pep8_naming.ignore_names = [
setUp,
tearDown,
setUpClass,
tearDownClass,
setUpModule,
tearDownModule,
asyncSetUp,
asyncTearDown,
setUpTestData,
failureException,
longMessage,
maxDiff,
]
linter.pep8_naming.classmethod_decorators = []
linter.pep8_naming.staticmethod_decorators = []
linter.pycodestyle.max_line_length = 100
linter.pycodestyle.max_doc_length = none
linter.pycodestyle.ignore_overlong_task_comments = false
linter.pyflakes.extend_generics = []
linter.pyflakes.allowed_unused_imports = []
linter.pylint.allow_magic_value_types = [
str,
bytes,
]
linter.pylint.allow_dunder_method_names = []
linter.pylint.max_args = 5
linter.pylint.max_positional_args = 5
linter.pylint.max_returns = 6
linter.pylint.max_bool_expr = 5
linter.pylint.max_branches = 12
linter.pylint.max_statements = 50
linter.pylint.max_statements_in_try = 5
linter.pylint.max_public_methods = 20
linter.pylint.max_locals = 15
linter.pylint.max_nested_blocks = 5
linter.pyupgrade.keep_runtime_typing = false
linter.ruff.parenthesize_tuple_in_subscript = false
linter.ruff.strictly_empty_init_modules = false
# Formatter Settings
formatter.exclude = []
formatter.unresolved_target_version = 3.7
formatter.per_file_target_version = {}
formatter.preview = disabled
formatter.line_width = 100
formatter.line_ending = auto
formatter.indent_style = space
formatter.indent_width = 4
formatter.quote_style = double
formatter.nested_string_quote_style = alternating
formatter.magic_trailing_comma = respect
formatter.docstring_code_format = disabled
formatter.docstring_code_line_width = dynamic
# Analyze Settings
analyze.exclude = []
analyze.preview = disabled
analyze.target_version = 3.7
analyze.string_imports = disabled
analyze.extension = ExtensionMapping({})
analyze.include_dependencies = {}
analyze.type_checking_imports = true
----- stderr -----