Skip to content

Commit 364e494

Browse files
committed
Fix linter errors
1 parent 82aec05 commit 364e494

File tree

7 files changed

+6
-9
lines changed

7 files changed

+6
-9
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
exclude = .venv
3+
ignore = E501

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from setuptools import setup
22

33
if __name__ == "__main__":
4-
setup()
4+
setup()

src/llm_accounting/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-

src/llm_accounting/models/request.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
# Removed: from sqlalchemy.ext.declarative import declarative_base # Redundant
99

10+
1011
class APIRequest(Base):
1112
__tablename__ = "api_requests"
1213

tests/accounting/test_global_limits.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
from datetime import datetime, timedelta, timezone
1+
from datetime import datetime, timezone
22

33
import pytest
4-
from sqlalchemy import create_engine
5-
from sqlalchemy.orm import sessionmaker
64

75
from llm_accounting import LLMAccounting
86
from llm_accounting.backends.sqlite import SQLiteBackend

tests/accounting/test_model_limits.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
from llm_accounting import LLMAccounting
66
from llm_accounting.backends.sqlite import SQLiteBackend
7-
from llm_accounting.models.base import Base
87
from llm_accounting.models.limits import (LimitScope, LimitType, TimeInterval,
98
UsageLimit)
10-
from llm_accounting.models.request import APIRequest
119

1210

1311
@pytest.fixture

tests/accounting/test_user_caller_limits.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44

55
from llm_accounting import LLMAccounting
66
from llm_accounting.backends.sqlite import SQLiteBackend
7-
from llm_accounting.models.base import Base
87
from llm_accounting.models.limits import (LimitScope, LimitType, TimeInterval,
98
UsageLimit)
10-
from llm_accounting.models.request import APIRequest
119

1210

1311
@pytest.fixture

0 commit comments

Comments
 (0)