Skip to content

Commit acea30a

Browse files
committed
Fixing PEP8 issues
readding F401 detection Signed-off-by: Fabian Haase <[email protected]>
1 parent d1be499 commit acea30a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

doc/source/contributing_docstring.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -685,8 +685,8 @@ shown:
685685

686686
.. code-block:: python
687687
688-
import numpy as np
689-
import pandas as pd
688+
import numpy as np # noqa: F401
689+
import pandas as pd # noqa: F401
690690
691691
Any other module used in the examples must be explicitly imported, one per line (as
692692
recommended in :pep:`8#imports`)

doc/source/io.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5350,7 +5350,6 @@ And here's the code:
53505350
import pandas as pd
53515351
import sqlite3
53525352
from numpy.random import randn
5353-
from pandas.io import sql
53545353
53555354
sz = 1000000
53565355
df = pd.DataFrame({'A': randn(sz), 'B': [1] * sz})

pandas/core/accessor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,9 @@ def decorator(accessor):
201201
202202
.. code-block:: python
203203
204-
def __init__(self, pandas_object):
205-
204+
def __init__(self, pandas_object): # noqa: E999
205+
...
206+
206207
For consistency with pandas methods, you should raise an ``AttributeError``
207208
if the data passed to your accessor has an incorrect dtype.
208209

setup.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ exclude =
3434
[flake8-rst]
3535
ignore =
3636
F821, # undefined name
37-
F401, # imported but unused
3837
W391, # blank line at end of file [Seems to be a bug (v0.4.1)]
3938

4039

0 commit comments

Comments
 (0)