Skip to content

Commit 3d6264b

Browse files
committed
[qa] Switched to double quotes (black formatter)
1 parent 89a3fe7 commit 3d6264b

169 files changed

Lines changed: 7680 additions & 7688 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/developer/extending.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,7 @@ Once you have created the models, add the following to your
206206
OPENWISP_RADIUS_RADIUSGROUP_MODEL = "myradius.RadiusGroup"
207207
OPENWISP_RADIUS_RADIUSTOKEN_MODEL = "myradius.RadiusToken"
208208
OPENWISP_RADIUS_PHONETOKEN_MODEL = "myradius.PhoneToken"
209-
OPENWISP_RADIUS_ORGANIZATIONRADIUSSETTINGS_MODEL = (
210-
"myradius.OrganizationRadiusSettings"
211-
)
209+
OPENWISP_RADIUS_ORGANIZATIONRADIUSSETTINGS_MODEL = "myradius.OrganizationRadiusSettings"
212210
OPENWISP_RADIUS_REGISTEREDUSER_MODEL = "myradius.RegisteredUser"
213211
214212
# You will need to change AUTH_USER_MODEL if you are extending openwisp_users
@@ -315,9 +313,7 @@ resort to monkey patching, you can proceed as follows:
315313
RadiusGroupCheck = load_model("openwisp_radius", "RadiusGroupCheck")
316314
RadiusGroupReply = load_model("openwisp_radius", "RadiusGroupReply")
317315
RadiusUserGroup = load_model("openwisp_radius", "RadiusUserGroup")
318-
OrganizationRadiusSettings = load_model(
319-
"openwisp_radius", "OrganizationRadiusSettings"
320-
)
316+
OrganizationRadiusSettings = load_model("openwisp_radius", "OrganizationRadiusSettings")
321317
User = get_user_model()
322318
323319
admin.site.unregister(RadiusCheck)

docs/user/settings.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -539,9 +539,7 @@ means that the global setting specified in ``settings.py`` will be used.
539539

540540
.. code-block:: python
541541
542-
{
543-
"__all__": "https://{site}/{organization}/password/reset/confirm/{uid}/{token}"
544-
}
542+
{"__all__": "https://{site}/{organization}/password/reset/confirm/{uid}/{token}"}
545543
546544
A dictionary representing the frontend URLs through which end users can
547545
complete the password reset operation.
@@ -871,9 +869,7 @@ type in the API response for ``ChilliSpot-Max-Input-Octets`` attribute:
871869

872870
.. code-block:: python
873871
874-
OPENWISP_RADIUS_RADIUS_ATTRIBUTES_TYPE_MAP = {
875-
"ChilliSpot-Max-Input-Octets": "bytes"
876-
}
872+
OPENWISP_RADIUS_RADIUS_ATTRIBUTES_TYPE_MAP = {"ChilliSpot-Max-Input-Octets": "bytes"}
877873
878874
.. _radius_social_login_settings:
879875

openwisp_radius/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
VERSION = (1, 2, 0, 'alpha')
1+
VERSION = (1, 2, 0, "alpha")
22
__version__ = VERSION # alias
33

44

55
def get_version():
6-
version = '%s.%s' % (VERSION[0], VERSION[1])
6+
version = "%s.%s" % (VERSION[0], VERSION[1])
77
if VERSION[2]:
8-
version = '%s.%s' % (version, VERSION[2])
9-
if VERSION[3:] == ('alpha', 0):
10-
version = '%s pre-alpha' % version
8+
version = "%s.%s" % (version, VERSION[2])
9+
if VERSION[3:] == ("alpha", 0):
10+
version = "%s pre-alpha" % version
1111
else:
12-
if VERSION[3] != 'final':
12+
if VERSION[3] != "final":
1313
try:
1414
rev = VERSION[4]
1515
except IndexError:
1616
rev = 0
17-
version = '%s%s%s' % (version, VERSION[3][0:1], rev)
17+
version = "%s%s%s" % (version, VERSION[3][0:1], rev)
1818
return version

0 commit comments

Comments
 (0)