Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Apr 25, 2024
1 parent 2b9cac2 commit d89e50e
Show file tree
Hide file tree
Showing 59 changed files with 58 additions and 1 deletion.
1 change: 1 addition & 0 deletions djstripe/admin/actions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Django Administration Custom Actions Module
"""

from django.contrib import admin
from django.contrib.admin import helpers
from django.contrib.admin.utils import quote
Expand Down
1 change: 1 addition & 0 deletions djstripe/admin/admin_inline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Django Administration Inline interface definitions
"""

from django.contrib import admin

from djstripe import models
Expand Down
1 change: 1 addition & 0 deletions djstripe/admin/filters.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Django Administration Custom Filters Module
"""

from django.contrib import admin

from djstripe import models
Expand Down
1 change: 1 addition & 0 deletions djstripe/admin/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe - Views related to the djstripe app.
"""

import logging

import stripe
Expand Down
1 change: 1 addition & 0 deletions djstripe/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe - Django + Stripe Made Easy
"""

from importlib.metadata import version

from django.apps import AppConfig
Expand Down
1 change: 1 addition & 0 deletions djstripe/checks.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe System Checks
"""

import re

from django.core import checks
Expand Down
1 change: 0 additions & 1 deletion djstripe/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ class SourceRedirectStatus(Enum):
failed = _("Failed")



class SubscriptionScheduleEndBehavior(Enum):
release = _("Release")
cancel = _("Cancel")
Expand Down
1 change: 1 addition & 0 deletions djstripe/fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Custom Field Definitions
"""

import decimal

from django.core.validators import MaxValueValidator, MinValueValidator
Expand Down
1 change: 1 addition & 0 deletions djstripe/management/commands/djstripe_init_customers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
init_customers command.
"""

from django.core.management.base import BaseCommand

from ...models import Customer
Expand Down
1 change: 1 addition & 0 deletions djstripe/management/commands/djstripe_sync_customers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
sync_customer command.
"""

from django.core.management.base import BaseCommand

from ...settings import djstripe_settings
Expand Down
1 change: 1 addition & 0 deletions djstripe/managers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe model managers
"""

import decimal

from django.db import models
Expand Down
1 change: 1 addition & 0 deletions djstripe/mixins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe mixins
"""

import sys
import traceback

Expand Down
1 change: 1 addition & 0 deletions djstripe/settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe settings
"""

import stripe
from django.apps import apps as django_apps
from django.conf import settings
Expand Down
1 change: 1 addition & 0 deletions djstripe/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Stripe docs for Webhooks: https://stripe.com/docs/webhooks
"""

from django.dispatch import Signal

# providing_args=["instance", "api_key"]
Expand Down
1 change: 1 addition & 0 deletions djstripe/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# url can be changed
# Call to 'djstripe.urls' and 'namespace' must stay as is
"""

from django.urls import path

from . import views
Expand Down
1 change: 1 addition & 0 deletions djstripe/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Utility functions related to the djstripe app.
"""

import datetime
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions djstripe/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe - Views related to the djstripe app.
"""

import logging

from django.http import HttpResponse, HttpResponseBadRequest
Expand Down
1 change: 1 addition & 0 deletions tests/test_account.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Account Tests.
"""

from copy import deepcopy
from unittest.mock import call, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Admin Tests.
"""

from copy import deepcopy
from typing import Sequence

Expand Down
1 change: 1 addition & 0 deletions tests/test_apikey.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe APIKey model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_balance_transaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe BalanceTransaction model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_bank_account.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Bank Account Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_charge.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Charge Model Tests.
"""

from copy import deepcopy
from decimal import Decimal
from unittest.mock import call, create_autospec, patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_discount.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Discount model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_dispute.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Dispute model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_fields.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Custom Field Tests.
"""

from datetime import datetime
from decimal import Decimal

Expand Down
1 change: 1 addition & 0 deletions tests/test_file_link.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe FileLink model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_file_upload.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe File model tests
"""

from copy import deepcopy
from unittest.mock import ANY, call, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_forms.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe form tests
"""

import pytest
from django import forms
from django.contrib.admin import helpers
Expand Down
1 change: 1 addition & 0 deletions tests/test_invoiceitem.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe InvoiceItem Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_line_item.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe LineItem Model Tests.
"""

from copy import deepcopy
from unittest.mock import PropertyMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_managers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Model Manager Tests.
"""

import datetime
import decimal
from copy import deepcopy
Expand Down
1 change: 1 addition & 0 deletions tests/test_migrations.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Migrations Tests
"""

import pytest
from django.conf import settings
from django.contrib.auth import get_user_model
Expand Down
1 change: 1 addition & 0 deletions tests/test_mixins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Mixin Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_order.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Order model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_payment_intent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe PaymentIntent Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_payout.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Payout Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_plan.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Plan Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_price.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Price model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_refund.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Charge Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_session.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Session Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_settings.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Settings Tests.
"""

from unittest.mock import patch

import stripe
Expand Down
1 change: 1 addition & 0 deletions tests/test_setup_intent.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe SetupIntent Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_shipping_rate.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe ShippingRate Model Tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_source.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe Source Model Tests.
"""

import sys
from copy import deepcopy
from unittest.mock import patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_sourcetransaction.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe SourceTransaction Model Tests.
"""

from copy import deepcopy
from unittest.mock import PropertyMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_stripe_model.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe StripeModel Model Tests.
"""

from unittest.mock import MagicMock, patch

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_subscription_item.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe SubscriptionItem model tests
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_subscription_schedule.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe SubscriptionSchedule model tests.
"""

from copy import deepcopy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_tax_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
dj-stripe TaxCode Model Tests.
"""

from copy import deepcopy

import pytest
Expand Down

0 comments on commit d89e50e

Please sign in to comment.