Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed wrong casing of __all__ #339

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion netbox_dns/api/nested_serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from netbox_dns.api.serializers_.view import ViewSerializer


__ALL__ = (
__all__ = (
"NestedZoneSerializer",
"NestedRecordSerializer",
"NestedZoneTemplateSerializer",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/api/serializers_/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox_dns.models import Contact


__ALL__ = ("ContactSerializer",)
__all__ = ("ContactSerializer",)


class ContactSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/api/serializers_/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from ..nested_serializers import NestedZoneSerializer


__ALL__ = ("NameServerSerializer",)
__all__ = ("NameServerSerializer",)


class NameServerSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/api/serializers_/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from ..nested_serializers import NestedZoneSerializer, NestedRecordSerializer


__ALL__ = ("RecordSerializer",)
__all__ = ("RecordSerializer",)


class RecordSerializer(NetBoxModelSerializer):
Expand Down
3 changes: 2 additions & 1 deletion netbox_dns/api/serializers_/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

from ..nested_serializers import NestedZoneTemplateSerializer

__ALL__ = ("RecordTemplateSerializer",)

__all__ = ("RecordTemplateSerializer",)


class RecordTemplateSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/api/serializers_/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox_dns.models import Registrar


__ALL__ = ("RegistrarSerializer",)
__all__ = ("RegistrarSerializer",)


class RegistrarSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/api/serializers_/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from netbox_dns.models import View


__ALL__ = ("ViewSerializer",)
__all__ = ("ViewSerializer",)


class ViewSerializer(NetBoxModelSerializer):
Expand Down
3 changes: 2 additions & 1 deletion netbox_dns/api/serializers_/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

from netbox_dns.models import Zone

__ALL__ = ("NameServerSerializer",)

__all__ = ("ZoneSerializer",)


class ZoneSerializer(NetBoxModelSerializer):
Expand Down
3 changes: 2 additions & 1 deletion netbox_dns/api/serializers_/zone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from .registrar import RegistrarSerializer
from .contact import ContactSerializer

__ALL__ = ("ZoneTemplateSerializer",)

__all__ = ("ZoneTemplateSerializer",)


class ZoneTemplateSerializer(NetBoxModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/choices/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize_choice_names(cls):
return cls


__ALL__ = (
__all__ = (
"RecordTypeChoices",
"RecordClassChoices",
"RecordStatusChoices",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/choices/zone.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from utilities.choices import ChoiceSet


__ALL__ = ("ZoneStatusChoices",)
__all__ = ("ZoneStatusChoices",)


class ZoneStatusChoices(ChoiceSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/fields/address.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netaddr import AddrFormatError, IPAddress


__ALL__ = (
__all__ = (
"AddressFormField",
"AddressField",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/fields/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from netaddr import AddrFormatError, IPNetwork


__ALL__ = ()
__all__ = ("NetworkField",)


class NetContains(Lookup):
Expand Down
5 changes: 4 additions & 1 deletion netbox_dns/fields/rfc2317.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
INVALID_RFC2317 = "RFC2317 requires an IPv4 prefix with a length of at least 25 bits."


__ALL__ = ()
__all__ = (
"RFC2317NetworkField",
"RFC2317NetworkFormField",
)


class RFC2317NetworkFormField(forms.Field):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox_dns.models import Contact


__ALL__ = ("ContactFilterSet",)
__all__ = ("ContactFilterSet",)


class ContactFilterSet(NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from netbox_dns.models import NameServer, Zone


__ALL__ = ("NameServerFilterSet",)
__all__ = ("NameServerFilterSet",)


class NameServerFilterSet(TenancyFilterSet, NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from netbox_dns.choices import RecordTypeChoices, RecordStatusChoices


__ALL__ = ("RecordFilterSet",)
__all__ = ("RecordFilterSet",)


class RecordFilterSet(TenancyFilterSet, NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from netbox_dns.choices import RecordTypeChoices, RecordStatusChoices


__ALL__ = ("RecordTemplateFilterSet",)
__all__ = ("RecordTemplateFilterSet",)


class RecordTemplateFilterSet(TenancyFilterSet, NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox_dns.models import Registrar


__ALL__ = ("RegistrarFilterSet",)
__all__ = ("RegistrarFilterSet",)


class RegistrarFilterSet(NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from netbox_dns.models import View


__ALL__ = ("ViewFilterSet",)
__all__ = ("ViewFilterSet",)


class ViewFilterSet(NetBoxModelFilterSet, TenancyFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from netbox_dns.choices import ZoneStatusChoices


__ALL__ = ("ZoneFilterSet",)
__all__ = ("ZoneFilterSet",)


class ZoneFilterSet(TenancyFilterSet, NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/filtersets/zone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
)


__ALL__ = ("ZoneTemplateFilterSet",)
__all__ = ("ZoneTemplateFilterSet",)


class ZoneTemplateFilterSet(TenancyFilterSet, NetBoxModelFilterSet):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from netbox_dns.models import Contact


__ALL__ = (
__all__ = (
"ContactForm",
"ContactFilterForm",
"ContactImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from netbox_dns.utilities import name_to_unicode


__ALL__ = (
__all__ = (
"NameServerForm",
"NameServerFilterForm",
"NameServerImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from netbox_dns.utilities import name_to_unicode


__ALL__ = (
__all__ = (
"RecordForm",
"RecordFilterForm",
"RecordImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from netbox_dns.utilities import name_to_unicode


__ALL__ = (
__all__ = (
"RecordTemplateForm",
"RecordTemplateFilterForm",
"RecordTemplateImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from netbox_dns.models import Registrar


__ALL__ = (
__all__ = (
"RegistrarForm",
"RegistrarFilterForm",
"RegistrarImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from netbox_dns.models import View


__ALL__ = (
__all__ = (
"ViewForm",
"ViewFilterForm",
"ViewImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
from netbox_dns.validators import validate_ipv4, validate_prefix, validate_rfc2317


__ALL__ = (
__all__ = (
"ZoneForm",
"ZoneFilterForm",
"ZoneImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/forms/zone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
)


__ALL__ = (
__all__ = (
"ZoneTemplateForm",
"ZoneTemplateFilterForm",
"ZoneTemplateImportForm",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/mixins/object_modification.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from netbox.models import NetBoxModel


__ALL__ = ("ObjectModificationMixin",)
__all__ = ("ObjectModificationMixin",)


class ObjectModificationMixin:
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from taggit.managers import TaggableManager


__ALL__ = (
__all__ = (
"Contact",
"ContactIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from .record import Record


__ALL__ = (
__all__ = (
"NameServer",
"NameServerIndex",
)
Expand Down
3 changes: 2 additions & 1 deletion netbox_dns/models/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
# -
from netbox_dns.models import zone

__ALL__ = (

__all__ = (
"Record",
"RecordIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .record import Record


__ALL__ = (
__all__ = (
"RecordTemplate",
"RecordTemplateIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/registrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox.search import SearchIndex, register_search


__ALL__ = (
__all__ = (
"Registrar",
"RegistrarIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from netbox_dns.mixins import ObjectModificationMixin


__ALL__ = (
__all__ = (
"View",
"ViewIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from .nameserver import NameServer


__ALL__ = (
__all__ = (
"Zone",
"ZoneIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/models/zone_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox.search import SearchIndex, register_search


__ALL__ = (
__all__ = (
"ZoneTemplate",
"ZoneTemplateIndex",
)
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/tables/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from netbox_dns.models import Contact


__ALL__ = ("ContactTable",)
__all__ = ("ContactTable",)


class ContactTable(NetBoxTable):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/tables/nameserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from netbox_dns.models import NameServer


__ALL__ = ("NameServerTable",)
__all__ = ("NameServerTable",)


class NameServerTable(TenancyColumnsMixin, NetBoxTable):
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/tables/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from netbox_dns.utilities import value_to_unicode


__ALL__ = (
__all__ = (
"RecordTable",
"ManagedRecordTable",
"RelatedRecordTable",
Expand Down
2 changes: 1 addition & 1 deletion netbox_dns/tables/record_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from netbox_dns.utilities import value_to_unicode


__ALL__ = (
__all__ = (
"RecordTemplateTable",
"RecordTemplateDisplayTable",
)
Expand Down
Loading