Remove pylint from the project

This commit is contained in:
Alexander Hess 2021-01-09 17:47:45 +01:00
commit 9196c88ed4
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
25 changed files with 9 additions and 172 deletions

View file

@ -121,8 +121,6 @@ class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
flags to adapt how the `Order` is created.
"""
# pylint:disable=too-many-instance-attributes
class Meta:
model = db.Order
sqlalchemy_get_or_create = ('id',)
@ -282,7 +280,7 @@ class AdHocOrderFactory(alchemy.SQLAlchemyModelFactory):
)
@factory.post_generation
def post( # noqa:C901,WPS23 pylint:disable=unused-argument
def post( # noqa:C901,WPS231
obj, create, extracted, **kwargs, # noqa:B902,N805
):
"""Discard timestamps that occur after cancellation."""

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Address` model."""
# pylint:disable=no-self-use,protected-access
import pytest
import sqlalchemy as sqla

View file

@ -8,7 +8,6 @@ Implementation notes:
code associated with it. Therefore, we test it here as non-e2e tests and do
not measure its coverage.
"""
# pylint:disable=no-self-use
import pytest
import sqlalchemy as sqla

View file

@ -1,5 +1,4 @@
"""Test the ORM's `City` model."""
# pylint:disable=no-self-use
import pytest

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Courier` model."""
# pylint:disable=no-self-use
import pytest
from sqlalchemy import exc as sa_exc

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Customer` model."""
# pylint:disable=no-self-use
import pytest

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Forecast` model."""
# pylint:disable=no-self-use
import datetime

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Grid` model."""
# pylint:disable=no-self-use
import pytest
import sqlalchemy as sqla

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Order` model."""
# pylint:disable=no-self-use,protected-access
import datetime
import random
@ -49,8 +48,6 @@ class TestProperties:
and provided by the `make_order` fixture.
"""
# pylint:disable=no-self-use,too-many-public-methods
def test_is_ad_hoc(self, order):
"""Test `Order.scheduled` property."""
assert order.ad_hoc is True

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Pixel` model."""
# pylint:disable=no-self-use
import pytest
import sqlalchemy as sqla

View file

@ -1,5 +1,4 @@
"""Test the ORM's `Restaurant` model."""
# pylint:disable=no-self-use
import pytest
import sqlalchemy as sqla

View file

@ -1,5 +1,4 @@
"""Test the `Location` class."""
# pylint:disable=no-self-use
import pytest
@ -97,7 +96,6 @@ class TestSpecialMethods:
def test_compare_utm_coordinates_to_themselves(self, location):
"""Test `Location.__eq__()`."""
# pylint:disable=comparison-with-itself
result = location == location # noqa:WPS312
assert result is True