Skip to content

Commit 60c624f

Browse files
authored
:rotating light: Fix linting for setup.py (#2158)
* 🚨 Fix linting for setup.py - F401 'os' imported but unused - E303 too many blank lines (3) - E302 expected 2 blank lines, found 1 - E305 expected 2 blank lines after class or function definition, found 1 - E251 unexpected spaces around keyword / parameter equals * 👌 Add setup.py to flake8 tests
1 parent 41b363c commit 60c624f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from io import open # for open(..,encoding=...) parameter in python 2
44
from os import walk
55
from os.path import join, dirname, sep
6-
import os
76
import re
87
from setuptools import setup, find_packages
98

@@ -17,7 +16,6 @@
1716
data_files = []
1817

1918

20-
2119
# must be a single statement since buildozer is currently parsing it, refs:
2220
# https://github.com/kivy/buildozer/issues/722
2321
install_reqs = [
@@ -27,6 +25,7 @@
2725
]
2826
# (pep517 and toml are used by pythonpackage.py)
2927

28+
3029
# By specifying every file manually, package_data will be able to
3130
# include them in binary distributions. Note that we have to add
3231
# everything as a 'pythonforandroid' rule, using '' apparently doesn't
@@ -42,6 +41,7 @@ def recursively_include(results, directory, patterns):
4241
results[directory] = []
4342
results[directory].append(join(*filename.split(sep)[1:]))
4443

44+
4545
recursively_include(package_data, 'pythonforandroid/recipes',
4646
['*.patch', 'Setup*', '*.pyx', '*.py', '*.c', '*.h',
4747
'*.mk', '*.jam', ])
@@ -104,7 +104,7 @@ def recursively_include(results, directory, patterns):
104104
'aar = pythonforandroid.bdistapk:BdistAAR',
105105
],
106106
},
107-
classifiers = [
107+
classifiers=[
108108
'Development Status :: 5 - Production/Stable',
109109
'Intended Audience :: Developers',
110110
'License :: OSI Approved :: MIT License',

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ commands =
2222

2323
[testenv:pep8]
2424
deps = flake8
25-
commands = flake8 pythonforandroid/ tests/ ci/
25+
commands = flake8 pythonforandroid/ tests/ ci/ setup.py
2626

2727
[flake8]
2828
ignore =

0 commit comments

Comments
 (0)