Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Commit ef2a8f2

Browse files
committed
New flake8 config.
1 parent b436751 commit ef2a8f2

File tree

3 files changed

+27
-15
lines changed

3 files changed

+27
-15
lines changed

.flake8

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[flake8]
2+
show-source=true
3+
ignore = F403
4+
exclude = .git,__pycache__,.github
5+
max-line-length = 120
6+
per-file-ignores =
7+
discord/ext/buttons/__init__.py:F401

discord/ext/buttons/buttons.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@ async def _session_loop(self, ctx):
105105
_add = asyncio.ensure_future(ctx.bot.wait_for('raw_reaction_add', check=lambda _: self.check(_)(ctx)))
106106
_remove = asyncio.ensure_future(ctx.bot.wait_for('raw_reaction_remove', check=lambda _: self.check(_)(ctx)))
107107

108-
done, pending = await asyncio.wait((_add, _remove), return_when=asyncio.FIRST_COMPLETED, timeout=self.timeout)
108+
done, pending = await asyncio.wait(
109+
(_add, _remove),
110+
return_when=asyncio.FIRST_COMPLETED,
111+
timeout=self.timeout
112+
)
109113

110114
for future in pending:
111115
future.cancel()

setup.py

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,30 @@
3131

3232
version = '0.1.7'
3333

34-
readme = ''
3534
with open('README.rst') as f:
3635
readme = f.read()
3736

38-
setup(name='buttons',
39-
author='EvieePy',
40-
url='https://github.com/EvieePy/buttons',
41-
version=version,
42-
packages=['discord/ext/buttons'],
43-
license='MIT',
44-
description='A simple to use, interactive session and paginator with custom buttons for discord.py.',
45-
long_description=readme,
46-
include_package_data=True,
47-
install_requires=requirements,
48-
classifiers=[
37+
setup(
38+
name='buttons',
39+
author='EvieePy',
40+
url='https://github.com/EvieePy/buttons',
41+
version=version,
42+
packages=['discord/ext/buttons'],
43+
license='MIT',
44+
description='A simple to use, interactive session and paginator with custom buttons for discord.py.',
45+
long_description=readme,
46+
include_package_data=True,
47+
install_requires=requirements,
48+
classifiers=[
4949
'License :: OSI Approved :: MIT License',
5050
'Intended Audience :: Developers',
5151
'Natural Language :: English',
5252
'Operating System :: OS Independent',
53-
'Programming Language :: Python :: 3.6',
5453
'Programming Language :: Python :: 3.7',
54+
'Programming Language :: Python :: 3.6',
5555
'Topic :: Internet',
5656
'Topic :: Software Development :: Libraries',
5757
'Topic :: Software Development :: Libraries :: Python Modules',
5858
'Topic :: Utilities',
59-
])
59+
]
60+
)

0 commit comments

Comments
 (0)