Skip to content

Commit

Permalink
PEP8 fixes
Browse files Browse the repository at this point in the history
Fixed some I am reasponsible for (setup and conf), and some I am not responsible for (space before line continuation)
but did not fix all I wasn't responsible for.
  • Loading branch information
Julian-O committed Nov 26, 2023
1 parent 9233225 commit 5b79359
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
5 changes: 4 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,10 @@
texinfo_documents = [(
'index', 'Plyer', u'Plyer Documentation',
u'Kivy Team and other contributors',
'Plyer', 'Plyer is a platform-independent Python API for accessing features of various hardware platforms, especially Android and iOS devices.', 'Miscellaneous'
'Plyer',
'Plyer is a platform-independent Python API for accessing features of '
'various hardware platforms, especially Android and iOS devices.',
'Miscellaneous'
), ]

# Documents to append as an appendix to all manuals.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
from kivy.uix.widget import Widget
from kivy.uix.label import Label
from kivy.uix.stencilview import StencilView
from kivy.properties import NumericProperty, BooleanProperty,\
BoundedNumericProperty, StringProperty, ListProperty, ObjectProperty,\
DictProperty, AliasProperty
from kivy.properties import (NumericProperty, BooleanProperty,
BoundedNumericProperty, StringProperty, ListProperty, ObjectProperty,
DictProperty, AliasProperty)
from kivy.clock import Clock
from kivy.graphics import Mesh, Color
from kivy.graphics.transformation import Matrix
Expand Down
2 changes: 1 addition & 1 deletion examples/compass/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_field(self, dt):

def get_field_uncalib(self, dt):
if self.facade.field_uncalib != (None, None, None, None, None, None):
self.x_field, self.y_field, self.z_field, self.x_iron,\
self.x_field, self.y_field, self.z_field, self.x_iron, \
self.y_iron, self.z_iron = self.facade.field_uncalib


Expand Down
2 changes: 1 addition & 1 deletion examples/gyroscope/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get_rotation_uncalib(self, dt):
empty = tuple([None for i in range(6)])

if self.facade.rotation_uncalib != empty:
self.x_speed, self.y_speed, self.z_speed, self.x_drift,\
self.x_speed, self.y_speed, self.z_speed, self.x_drift, \
self.y_drift, self.z_drift = self.facade.rotation_uncalib


Expand Down
9 changes: 5 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
setup(
name='plyer',
version=plyer.__version__,
description='A platform-independent Python API for accessing features of various hardware platforms, especially Android and iOS devices.',
description='A platform-independent Python API for accessing features of '
'various hardware platforms, especially Android and iOS '
'devices.',
long_description=README + u"\n\n" + CHANGELOG + u"\n\n",
long_description_content_type='text/markdown',
author='Kivy team',
Expand All @@ -81,11 +83,10 @@
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
project_urls = {
project_urls={
'Documentation': "https://plyer.readthedocs.io",
'Source': "https://github.com/kivy/plyer",
'Bug Reports': "https://github.com/kivy/plyer/issues",
},

**EXTRA_OPTIONS
**EXTRA_OPTIONS
)

0 comments on commit 5b79359

Please sign in to comment.