Skip to content

Commit

Permalink
ignore linting constraints that are initially not met
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrahimebrahim committed May 28, 2024
1 parent 9b2b072 commit 29756e4
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,35 @@ ignore = [
"PLR09", # Too many <...>
"PLR2004", # Magic value used in comparison
"ISC001", # Conflicts with formatter
"EXE002", # The file is executable but no shebang is present
"PTH118", # `os.path.join()` should be replaced by `Path` with `/` operator
"SIM108", # Use ternary operator `l = os.path.join if join else lambda x, y: y` instead of `if`-`else`-block
"E741", # Ambiguous variable name: `l`
"E731", # Do not assign a `lambda` expression, use a `def`
"EM101", # Exception must not use a string literal, assign to variable first
"ARG005", # Unused lambda argument: `x`
"RUF005", # Consider `[1, *list(new_shp)]` instead of concatenation
"ARG005", # Unused lambda argument: `loc`
"B008", # Do not perform function call `os.path.join` in argument defaults; instead, perform the call within the function, or read the default from a module-level singleton variable
"PTH113", # `os.path.isfile()` should be replaced by `Path.is_file()`
"RET505", # Unnecessary `else` after `return` statement
"PTH120", # `os.path.dirname()` should be replaced by `Path.parent`
"F841", # Local variable `params_file` is assigned to but never used
"PTH112", # `os.path.isdir()` should be replaced by `Path.is_dir()`
"PTH118", # `os.path.join()` should be replaced by `Path.joinpath()`
"PTH102", # `os.mkdir()` should be replaced by `Path.mkdir()`
"C414", # Unnecessary `list` call within `tuple()`
"PTH123", # `open()` should be replaced by `Path.open()`
"PTH111", # `os.path.expanduser()` should be replaced by `Path.expanduser()`
"RET504", # Unnecessary assignment to `x` before `return` statement
"UP008", # Use `super()` instead of `super(__class__, self)`
"PTH119", # `os.path.basename()` should be replaced by `Path.name`
"C419", # Unnecessary list comprehension
"SIM108", # Use ternary operator `x = 8 if do_mirroring else 1` instead of `if`-`else`-block
"T201", # `print` found
"B007", # Loop control variable `i` not used within loop body
"PTH100", # `os.path.abspath()` should be replaced by `Path.resolve()`
"PTH107", # `os.remove()` should be replaced by `Path.unlink()`
]
isort.required-imports = ["from __future__ import annotations"]
# Uncomment if using a _compat.typing backport
Expand All @@ -145,4 +174,21 @@ messages_control.disable = [
"missing-module-docstring",
"missing-function-docstring",
"wrong-import-position",
"missing-class-docstring",
"invalid-name",
"import-error",
"consider-using-f-string",
"consider-using-with",
"unnecessary-lambda-assignment",
"super-with-arguments",
"arguments-renamed",
"attribute-defined-outside-init",
"no-member",
"deprecated-module",
"no-else-return",
"use-a-generator",
"consider-using-enumerate",
"superfluous-parens",
"unused-variable",
"import-outside-toplevel",
]

0 comments on commit 29756e4

Please sign in to comment.