Skip to content

Commit 3f5ecae

Browse files
committed
Add ruff rules for no-pep420
1 parent 67cfd38 commit 3f5ecae

File tree

8 files changed

+16
-2
lines changed

8 files changed

+16
-2
lines changed

examples/evaluation/__init__.py

Whitespace-only changes.

libs/knowledge-store/tests/integration_tests/__init__.py

Whitespace-only changes.

libs/knowledge-store/tests/unit_tests/__init__.py

Whitespace-only changes.

libs/ragulate/colbert_chunk_size_and_k.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: T201
1+
# ruff: noqa: INP001, T201
22
import logging
33
import os
44
import time

libs/ragulate/open_ai_chunk_size_and_k.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ruff: noqa: T201
1+
# ruff: noqa: INP001, T201
22
import os
33

44
from langchain_astradb import AstraDBVectorStore

libs/ragulate/scripts/test_integration_runner.py

100644100755
+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
#!/usr/bin/env python
12
import sys
23

34
import pytest
45

56

67
def main():
78
sys.exit(pytest.main(["tests/integration_tests"]))
9+
10+
11+
if __name__ == "__main__":
12+
main()

libs/ragulate/scripts/test_unit_runner.py

100644100755
+5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
#!/usr/bin/env python
12
import sys
23

34
import pytest
45

56

67
def main():
78
sys.exit(pytest.main(["tests/unit_tests"]))
9+
10+
11+
if __name__ == "__main__":
12+
main()

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ select = [
8282
"G",
8383
"I",
8484
"ICN",
85+
"INP",
8586
"INT",
8687
"ISC",
8788
"LOG",
@@ -116,6 +117,9 @@ select = [
116117
"scripts/*" = [
117118
"T20",
118119
]
120+
"docker/examples/*" = [
121+
"INP001",
122+
]
119123

120124
[build-system]
121125
requires = ["poetry-core"]

0 commit comments

Comments
 (0)