Update pylintrc file and remove warning overrides for new limits

This commit is contained in:
davidmezzetti
2026-09-29 07:11:03 -04:00
parent 45d334f4ce
commit 5cba72c88a
24 changed files with 2 additions and 23 deletions
+2
View File
@@ -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
-1
View File
@@ -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.
-1
View File
@@ -18,7 +18,6 @@ from ..util import Library
yaml = Library().yaml()
# pylint: disable=R0904
class Application:
"""
Builds YAML-configured txtai applications.
-1
View File
@@ -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
-1
View File
@@ -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
-1
View File
@@ -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
-1
View File
@@ -24,7 +24,6 @@ from .base import Graph
from .query import Query
# pylint: disable=R0904
class NetworkX(Graph):
"""
Graph instance backed by NetworkX.
-1
View File
@@ -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.
-1
View File
@@ -27,7 +27,6 @@ llm:
"""
# pylint: disable=R0904
class TestAgent(unittest.TestCase):
"""
API tests for agents.
-1
View File
@@ -147,7 +147,6 @@ reranker:
"""
# pylint: disable=R0904
class TestEmbeddings(unittest.TestCase):
"""
API tests for embeddings indices.
-1
View File
@@ -74,7 +74,6 @@ upload:
"""
# pylint: disable=R0904
class TestPipeline(unittest.TestCase):
"""
API tests for pipelines.
-1
View File
@@ -18,7 +18,6 @@ mcp: True
"""
# pylint: disable=R0904
class TestMCP(unittest.TestCase):
"""
API tests for model context protocol (MCP)
-1
View File
@@ -54,7 +54,6 @@ workflow:
"""
# pylint: disable=R0904
class TestOpenAI(unittest.TestCase):
"""
Tests for OpenAI-compatible API endpoint for txtai.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -15,7 +15,6 @@ from txtai.embeddings import Embeddings, Reducer
from txtai.serialize import SerializeFactory
# pylint: disable=R0904
class TestEmbeddings(unittest.TestCase):
"""
Embeddings tests.
-1
View File
@@ -16,7 +16,6 @@ from txtai.graph.topics import Topics
from txtai.serialize import SerializeFactory
# pylint: disable=R0904
class TestGraph(unittest.TestCase):
"""
Graph tests.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -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.
-1
View File
@@ -38,7 +38,6 @@ from txtai.workflow import (
from utils import Utils
# pylint: disable=R0904
class TestWorkflow(unittest.TestCase):
"""
Workflow tests.