Skip to content

Commit de87146

Browse files
format and lint
1 parent a6f2531 commit de87146

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

lib/models/motor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from pydantic import PrivateAttr, model_validator
44

55
from lib.models.interface import ApiBaseModel
6-
from lib.models.sub.tanks import MotorTank, TankFluids, TankKinds, InterpolationMethods, TankCoordinateSystemOrientation, MotorTank
6+
from lib.models.sub.tanks import MotorTank, InterpolationMethods, TankCoordinateSystemOrientation
77

88

99
class MotorKinds(str, Enum):

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ disable = """
4747
too-many-arguments,
4848
redefined-outer-name,
4949
too-many-positional-arguments,
50+
no-member,
51+
protected-access,
5052
"""
5153

5254
[tool.ruff]
@@ -55,7 +57,7 @@ target-version = "py312"
5557

5658
[tool.ruff.lint]
5759
select = ["E", "F", "N", "Q"]
58-
ignore = ["N815", "E501", "Q000", "E402"]
60+
ignore = ["N815", "E501", "Q000", "E402", "N802"]
5961
fixable = [
6062
"F401",
6163
]

tests/test_controllers/test_controller_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def stub_controller(stub_model):
2727

2828
@pytest.mark.asyncio
2929
async def test_controller_exception_handler_no_exception(stub_model):
30-
async def method(self, model, *args, **kwargs):
30+
async def method(self, model, *args, **kwargs): # pylint: disable=unused-argument
3131
return stub_model, args, kwargs
3232

3333
test_controller = Mock(method=method)

tests/test_repositories/test_repository_interface.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def mock_model():
2222

2323
@pytest_asyncio.fixture
2424
def mock_db_interface(stub_loaded_model):
25-
async def async_gen(*args, **kwargs):
25+
async def async_gen(*args, **kwargs): # pylint: disable=unused-argument
2626
yield stub_loaded_model
2727
yield stub_loaded_model
2828

@@ -39,7 +39,7 @@ async def async_gen(*args, **kwargs):
3939

4040
@pytest_asyncio.fixture
4141
def mock_db_interface_empty_find():
42-
async def async_gen(*args, **kwargs):
42+
async def async_gen(*args, **kwargs): # pylint: disable=unused-argument
4343
if False: # pylint: disable=using-constant-test
4444
yield
4545

@@ -74,7 +74,7 @@ def stub_repository_invalid_model():
7474

7575
@pytest.mark.asyncio
7676
async def test_repository_exception_handler_no_exception():
77-
async def method(self, *args, **kwargs):
77+
async def method(self, *args, **kwargs): # pylint: disable=unused-argument
7878
return args, kwargs
7979

8080
mock_kwargs = {'foo': 'bar'}

0 commit comments

Comments
 (0)