mirror of
https://github.com/neuml/txtai.git
synced 2026-10-11 21:39:55 +00:00
Update pylintrc file and remove warning overrides for new limits
This commit is contained in:
@@ -12,6 +12,8 @@ max-locals=40
|
||||
max-returns=10
|
||||
max-attributes=20
|
||||
min-public-methods=0
|
||||
max-public-methods=80
|
||||
|
||||
[FORMAT]
|
||||
max-line-length=150
|
||||
max-module-lines=1500
|
||||
|
||||
@@ -24,7 +24,6 @@ from ...util import Library
|
||||
np = Library().numpy()
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class PGVector(ANN):
|
||||
"""
|
||||
Builds an ANN index backed by a Postgres database.
|
||||
|
||||
@@ -18,7 +18,6 @@ from ..util import Library
|
||||
yaml = Library().yaml()
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class Application:
|
||||
"""
|
||||
Builds YAML-configured txtai applications.
|
||||
|
||||
@@ -9,7 +9,6 @@ from .base import Database
|
||||
from .schema import Statement
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class RDBMS(Database):
|
||||
"""
|
||||
Base relational database class. A relational database uses SQL to insert, update, delete and select from a
|
||||
|
||||
@@ -18,7 +18,6 @@ from .index import Action, Configuration, Functions, Indexes, IndexIds, Reducer,
|
||||
from .search import Explain, Ids, Query, Search, Terms
|
||||
|
||||
|
||||
# pylint: disable=C0302,R0904
|
||||
class Embeddings:
|
||||
"""
|
||||
Embeddings databases are the engine that delivers semantic search. Data is transformed into embeddings vectors where similar concepts
|
||||
|
||||
@@ -7,7 +7,6 @@ from collections import Counter
|
||||
from .topics import Topics
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class Graph:
|
||||
"""
|
||||
Base class for Graph instances. This class builds graph networks. Supports topic modeling
|
||||
|
||||
@@ -24,7 +24,6 @@ from .base import Graph
|
||||
from .query import Query
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class NetworkX(Graph):
|
||||
"""
|
||||
Graph instance backed by NetworkX.
|
||||
|
||||
@@ -22,7 +22,6 @@ from txtai.ann.dense.ggml import GGMLTensors
|
||||
from txtai.serialize import SerializeFactory
|
||||
|
||||
|
||||
# pylint: disable=C0302,R0904
|
||||
class TestDense(unittest.TestCase):
|
||||
"""
|
||||
Dense ANN tests.
|
||||
|
||||
@@ -27,7 +27,6 @@ llm:
|
||||
"""
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestAgent(unittest.TestCase):
|
||||
"""
|
||||
API tests for agents.
|
||||
|
||||
@@ -147,7 +147,6 @@ reranker:
|
||||
"""
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestEmbeddings(unittest.TestCase):
|
||||
"""
|
||||
API tests for embeddings indices.
|
||||
|
||||
@@ -74,7 +74,6 @@ upload:
|
||||
"""
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestPipeline(unittest.TestCase):
|
||||
"""
|
||||
API tests for pipelines.
|
||||
|
||||
@@ -18,7 +18,6 @@ mcp: True
|
||||
"""
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestMCP(unittest.TestCase):
|
||||
"""
|
||||
API tests for model context protocol (MCP)
|
||||
|
||||
@@ -54,7 +54,6 @@ workflow:
|
||||
"""
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestOpenAI(unittest.TestCase):
|
||||
"""
|
||||
Tests for OpenAI-compatible API endpoint for txtai.
|
||||
|
||||
@@ -11,7 +11,6 @@ from txtai.embeddings import Embeddings
|
||||
from .testrdbms import Common
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestClient(Common.TestRDBMS):
|
||||
"""
|
||||
Embeddings with content stored in a client RDBMS.
|
||||
|
||||
@@ -10,7 +10,6 @@ from txtai.embeddings import Embeddings
|
||||
from .testrdbms import Common
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestDuckDB(Common.TestRDBMS):
|
||||
"""
|
||||
Embeddings with content stored in DuckDB.
|
||||
|
||||
@@ -19,7 +19,6 @@ class Common:
|
||||
Wraps common file database tests to prevent unit test discovery for this class.
|
||||
"""
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestRDBMS(unittest.TestCase):
|
||||
"""
|
||||
Embeddings with content stored in a file database tests.
|
||||
|
||||
@@ -8,7 +8,6 @@ from txtai.database import DatabaseFactory, SQL, SQLError
|
||||
from txtai.database.sql import Aggregate
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestSQL(unittest.TestCase):
|
||||
"""
|
||||
Test SQL parsing and generation.
|
||||
|
||||
@@ -7,7 +7,6 @@ from txtai.embeddings import Embeddings
|
||||
from .testrdbms import Common
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestSQLite(Common.TestRDBMS):
|
||||
"""
|
||||
Embeddings with content stored in SQLite tests.
|
||||
|
||||
@@ -15,7 +15,6 @@ from txtai.embeddings import Embeddings, Reducer
|
||||
from txtai.serialize import SerializeFactory
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestEmbeddings(unittest.TestCase):
|
||||
"""
|
||||
Embeddings tests.
|
||||
|
||||
@@ -16,7 +16,6 @@ from txtai.graph.topics import Topics
|
||||
from txtai.serialize import SerializeFactory
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestGraph(unittest.TestCase):
|
||||
"""
|
||||
Graph tests.
|
||||
|
||||
@@ -18,7 +18,6 @@ from txtai.models.pooling.lemur import Activation
|
||||
from txtai.pipeline import LemurTrainer
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestPooling(unittest.TestCase):
|
||||
"""
|
||||
Pooling tests.
|
||||
|
||||
@@ -11,7 +11,6 @@ from unittest.mock import patch
|
||||
from txtai.scoring import Normalize, ScoringFactory, Scoring
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestKeyword(unittest.TestCase):
|
||||
"""
|
||||
Sparse keyword scoring tests.
|
||||
|
||||
@@ -12,7 +12,6 @@ from unittest.mock import patch
|
||||
from txtai.scoring import ScoringFactory
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestSparse(unittest.TestCase):
|
||||
"""
|
||||
Sparse vector scoring tests.
|
||||
|
||||
@@ -38,7 +38,6 @@ from txtai.workflow import (
|
||||
from utils import Utils
|
||||
|
||||
|
||||
# pylint: disable=R0904
|
||||
class TestWorkflow(unittest.TestCase):
|
||||
"""
|
||||
Workflow tests.
|
||||
|
||||
Reference in New Issue
Block a user