You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -29,24 +29,46 @@ members = ["packages/*"]
29
29
[tool.setuptools]
30
30
include-package-data = false
31
31
32
+
package-dir = { "" = "localstack-sdk-python"}
33
+
32
34
[tool.setuptools.packages.find]
33
-
where = ["src"]
34
-
include = ["*"]
35
+
where = ["localstack-sdk-python/"]
36
+
include = ["localstack*"]
35
37
exclude = ["tests*"]
36
38
37
39
[tool.ruff]
38
-
# Extend the ruff config in the root dir
39
-
extend = "../ruff.toml"
40
40
# Always generate Python 3.8-compatible code.
41
41
target-version = "py38"
42
42
line-length = 100
43
-
src = ["tests", "localstack"]
43
+
src = ["localstack-sdk-python", "tests"]
44
44
exclude = [
45
45
".venv*",
46
46
"venv*",
47
47
"dist",
48
48
"build",
49
49
"target",
50
50
"*.egg-info",
51
+
"localstack-sdk-python/*.egg-info",
51
52
".git",
52
-
]
53
+
]
54
+
55
+
[tool.ruff.lint]
56
+
ignore = [
57
+
"B007", # TODO Loop control variable x not used within loop body
58
+
"B017", # TODO `pytest.raises(Exception)` should be considered evil
59
+
"B019", # TODO Use of `functools.lru_cache` or `functools.cache` on methods can lead to memory leaks
60
+
"B022", # TODO No arguments passed to `contextlib.suppress`. No exceptions will be suppressed and therefore this context manager is redundant
61
+
"B023", # TODO Function definition does not bind loop variable `server`
62
+
"B024", # TODO x is an abstract base class, but it has no abstract methods
63
+
"B027", # TODO `Server.do_shutdown` is an empty method in an abstract base class, but has no abstract decorator
64
+
"B904", # TODO Within an `except` clause, raise exceptions with `raise ... from err` or `raise ... from None` to distinguish them from errors in exception handling
65
+
"C408", # TODO Unnecessary `list` call (rewrite as a literal)
66
+
"C416", # TODO Unnecessary `set` comprehension
67
+
"C901", # TODO function is too complex
68
+
"E402", # TODO Module level import not at top of file
69
+
"E501", # E501 Line too long - handled by black, see https://docs.astral.sh/ruff/faq/#is-ruff-compatible-with-black
70
+
"E721", # TODO Do not compare types, use `isinstance()`
0 commit comments