There should be no spaces before or after the =
in a function definition.
Anti-pattern
def func(key1 = 'val1',
key2 = 'val2'):
return key1, key2
Best practice
def func(key1='val1',
key2='val2'):
return key1, key2
Additional links
- https://www.python.org/dev/peps/pep-0008/#other-recommendations
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
parasit opened this issue
Jun 20, 2010
· 6 comments
Closed
Problems with whitespaces E251 and E202
#12
parasit opened this issue
Jun 20, 2010
· 6 comments
Comments
When i check source i got:
pep8.exe —show-source bazarviews.py
bazarviews.py:20:38: E251 no spaces around keyword / parameter equals
p = Category.objects.get(id = categoryId)
^
bazarviews.py:97:42: E202 whitespace before ‘)’
customData = json.dumps(resp)
But in both cases something is wrong, in first there are spaces, and in second dont.
Its error in checker or its my mistake?
Source in UTF-8 with unix (n) end of lines.
pep8 v. 0.5.0
python 2.6.1
OS: WinXP
For the first one (E251), the message says that the correct syntax is:
p = Category.objects.get(id=categoryId)
For the E202 case, it complains about an extra whitespace before ‘)’.
If you can reproduce this issue with a very short snippet, please paste it here.
(or use a pastebin)
I’ve faced the same problem in my code.
Here’s a snippet:
def set_cookie(self, uid):
'''Sets user cookie based on uid.'''
response.set_cookie(
'__utmb',
uid,
secret = self.COOKIE_SECRET_KEY,
expires = time.time() + (3600 * 24 * 365),
domain = '.mydomain.com',
path = '/'
)
And here is a traceback:
users.py:163:23: E251 no spaces around keyword / parameter equals
secret = self.COOKIE_SECRET_KEY,
^
pep8 0.6.1, python 2.7.2
My mistake, I have found error.
@aristidesfl when using keyword arguments/parameters in function calls you should not have spaces around the equal sign as per PEP8.
It should be
# snip secret=self.COOKIE_SECRET_KEY, expires=time.time() + (3600 * 24 * 365), domain='.mydomain.com', path='/'
I hope that helps.
Перейти к контенту
I’m a Python beginner, I read pep standards which must follow while programming in python
http://legacy.python.org/dev/peps/pep-0008
Now I have a doubt. As they have mentioned that you should not put spaces around the equal sign while using keyword argument or a default parameter value in functions or Dict.
For example
YES
def myfunc(key1=val1, key2=val2, key3=val3)
NO
def myfunc(key1 = val1, key2 = val2, key3 = val3)
Thats fine but what if I break down these in multiple lines. something like this(when we have many parameters or long name)
def myfunc(key1=val1,
key2=val2,
key3=val3)
In this case, I think, we should put space around the equal sign. am I correct. because these all are about readability but I’m just curious if there is standard for this too. Looking for best practices.
Same thing for Dict.
new_dict= Dict(
key1=val1,
key2=val2,
key3=val3
)
And should I put a comma after last argument in dict unlike example mentioned above, I didn’t put a comma after last value (key3=val3)
asked Jul 17, 2014 at 18:18
user3810188user3810188
3011 gold badge3 silver badges14 bronze badges
1
Thats fine but what if I break down these in multiple lines. something like this(when we have many parameters or long name)
def myfunc(key1=val1, key2=val2, key3=val3)
In the code you give, you are not putting whitespace around the =
, so you are complying with pep8 in respect of operator spacing (your indentation does not comply with pep8).
In general, you can write your code however you like. If you don’t comply with pep8, other people generally won’t find your code as easy to read. If you have local standards within your company, that should supercede pep8. If you don’t have standards that direct you to violate pep8, your colleagues will likely hate you for breaking pep8.
If you don’t have a standard at all, future you will also hate present you.
answered Jul 17, 2014 at 18:23
MarcinMarcin
47.9k17 gold badges127 silver badges199 bronze badges
PEP8 clearly says:
Don’t use spaces around the = sign when used to indicate a keyword
argument or a default parameter value.
You don’t need to put white spaces around the equal sign in both cases.
If you are not sure whether your code follows PEP8 standard or not, use flake8
static code analysis tool. It would raise warnings in case of code style violations.
Example:
Consider you have extra whitespaces around the equal signs:
def myfunc(key1 = 'val1',
key2 = 'val2',
key3 = 'val3'):
return key1, key2, key3
flake8
outputs a warning for every unexpected whitespace:
$ flake8 test.py
test.py:3:16: E251 unexpected spaces around keyword / parameter equals
test.py:3:18: E251 unexpected spaces around keyword / parameter equals
test.py:4:16: E251 unexpected spaces around keyword / parameter equals
test.py:4:18: E251 unexpected spaces around keyword / parameter equals
test.py:5:16: E251 unexpected spaces around keyword / parameter equals
test.py:5:18: E251 unexpected spaces around keyword / parameter equals
answered Jul 17, 2014 at 18:26
alecxealecxe
455k116 gold badges1061 silver badges1180 bronze badges
7
No. Don’t put spaces around equal signs when declaring kwargs. Think of it this way: If you are just skimming lines of code, you want to train your eyes to see the difference between the assignment operator used during ordinary program flow (spam = True) and a kwarg, especially if it’s on its own line (spam=True).
As for a trailing comma, I have always felt that a trailing comma suggests to a fellow team member or reader that I feel the list, dict, set of args, etc. might be subject to expansion in the future. If I’m fairly certain that the structure represents its mature state, I remove it.
answered Jul 17, 2014 at 18:23
jMylesjMyles
11.6k6 gold badges42 silver badges56 bronze badges
1
Я начинающий Python, я читаю стандарты pep, которые должны следовать при программировании на python. Http://legacy.python.org/dev/peps/pep-0008
Теперь у меня есть сомнения. Поскольку они упомянули, что вы не должны помещать пробелы вокруг знака равенства при использовании аргумента ключевого слова или значения параметра по умолчанию в функциях или в Dict.
Например
ДА
def myfunc(key1=val1, key2=val2, key3=val3)
НЕТ
def myfunc(key1 = val1, key2 = val2, key3 = val3)
Thats штраф, но что, если я сломаю их в несколько строк. что-то вроде этого (когда у нас много параметров или длинное имя)
def myfunc(key1=val1, key2=val2, key3=val3)
В этом случае, я думаю, мы должны положить пространство вокруг знака равенства. я прав. потому что все это о читаемости, но мне просто любопытно, есть ли для этого стандарт. Ищите лучшие практики.
То же самое для Дикта.
new_dict= Dict(
key1=val1,
key2=val2,
key3=val3
)
И я должен поместить запятую после последнего аргумента в dict в отличие от упомянутого выше примера, я не поместил запятую после последнего значения (key3 = val3)
17 июль 2014, в 20:41
Поделиться
Источник
3 ответа
PEP8 четко говорит:
Не используйте пробелы вокруг знака = при использовании для указания аргумента ключевого слова или значения параметра по умолчанию.
В обоих случаях вам не нужно помещать пробелы вокруг знака равенства.
Если вы не уверены, соответствует ли ваш код стандарту PEP8 или нет, используйте инструмент анализа статического кода flake8
. Это приведет к предупреждению в случае нарушения стиля кода.
Пример:
У вас есть дополнительные пробелы вокруг равных знаков:
def myfunc(key1 = 'val1',
key2 = 'val2',
key3 = 'val3'):
return key1, key2, key3
flake8
выводит предупреждение для каждого неожиданного пробела:
$ flake8 test.py
test.py:3:16: E251 unexpected spaces around keyword / parameter equals
test.py:3:18: E251 unexpected spaces around keyword / parameter equals
test.py:4:16: E251 unexpected spaces around keyword / parameter equals
test.py:4:18: E251 unexpected spaces around keyword / parameter equals
test.py:5:16: E251 unexpected spaces around keyword / parameter equals
test.py:5:18: E251 unexpected spaces around keyword / parameter equals
alecxe
17 июль 2014, в 16:21
Поделиться
Thats штраф, но что, если я сломаю их в несколько строк. что-то вроде этого (когда у нас много параметров или длинное имя)
def myfunc(key1=val1, key2=val2, key3=val3)
В коде, который вы указываете, вы не помещаете пробелы вокруг =
, так что вы соблюдаете pep8 в отношении расстояния между операторами (ваш отступ не соответствует pep8).
В общем, вы можете написать свой код, как вам нравится. Если вы не согласны с pep8, другие люди обычно не смогут найти ваш код как легко читаемый. Если у вас есть локальные стандарты в вашей компании, это должно быть отменено pep8. Если у вас нет стандартов, которые заставляют вас нарушать pep8, ваши коллеги, скорее всего, ненавидят вас за нарушение pep8.
Если у вас нет стандарта вообще, в будущем вы также будете ненавидеть подарок.
Marcin
17 июль 2014, в 16:36
Поделиться
Нет. Не помещайте пробелы вокруг равных знаков при объявлении kwargs. Подумайте об этом так: если вы просто просматриваете строки кода, вы хотите тренировать свои глаза, чтобы увидеть разницу между оператором присваивания, используемым во время обычного потока программы (спам = True) и kwarg, особенно если он на собственной линии (спам = True).
Что касается конечной запятой, я всегда чувствовал, что конечная запятая предлагает коллеге или читателю, что я чувствую, что список, dict, множество аргументов и т.д. Могут быть подвержены расширению в будущем. Если я достаточно уверен, что структура представляет его зрелое состояние, я удаляю его.
jMyles
17 июль 2014, в 15:41
Поделиться
Ещё вопросы
- 0Разделить QString на — (тире) символ, доступ к элементу списка
- 0IE8: странная граница вокруг HTML-элемента кнопки
- 1Невозможно загрузить библиотеку native-hadoop для вашей платформы … с использованием встроенных классов java, где это применимо
- 0Включение еще одного объединения в таблицу MYSQL
- 1Группировка результатов Solr в Solr 3.6.1 API вызывает исключение NullPointerException при разборе результата
- 0клиент c ++ с сервером мониторинга php
- 0Как запретить просмотр кода сайта
- 0fullcalendar установить цвет отброшенного div
- 0Синтаксически неправильно использовать html-конвертер в jsView следующим образом: data-link = «html {: property}» вместо data-link = «{html: property}»?
- 1Как отдельный класс GUI будет взаимодействовать с классами логики?
- 0объединить с двумя столбцами и получить значения полей из их внешнего ключа с помощью одного запроса SQL
- 1Событие инициализации страницы framework7 не срабатывает
- 1Как перечислить git коммиты для релиза Android?
- 1Обнаружение исключений в родительском классе
- 1Взаимодействие — вызывать ли родной из управляемых или наоборот
- 0Выставленный литерал объекта службы Angular не обновляется?
- 1Точность застряла на 50% керас
- 0JQuery if заявление, основанное на ширине
- 1Числовой эквивалент if / elif / else, который сохраняет последнее значение, если условие не выполняется
- 0Мой первый столбец кода в простой консольной программе (c ++) заканчивается как мой последний столбец
- 1Изменить шаблон панели приложения и селектора длинных списков из Viewmodel
- 1Программа Android для отправки сообщений
- 0С ++ Шаблонный Функтор
- 1Промывка в репозиториях
- 1Хранимая процедура CLR возвращает SqlDataReader, но тип метода void
- 0Laravel 5 Internal Server Error 500 и TokenMismatchException для обновления базы данных с помощью AngularsJS
- 0JQuery Удалить массив из массива массивов
- 1javafx, реализующий и показывающий ListView
- 1Как извлечь конкретное число в строку, окруженную цифрами и текстом C #
- 0Выровняйте меню вправо, если lithth child равен 1 или 2
- 0symfony2 рендеринг формы как тип формы
- 1регистрация пользователя
- 0Пожалуйста, подождите, пока панель загрузки при нажатии кнопки не отображается
- 1Широковещательное сообщение на Java
- 1Мониторинг файлов WMI с использованием C #
- 0Найти первый элемент с классом, использовать класс, чтобы добавить элемент заголовка
- 1Сгруппируйте столбец, если ни одна из строк не является уникальной, используя панд
- 1Преобразовать исключение HttpException в ответ HTTP 404 (страница не найдена)
- 1Укажите язык в Octokit.net для Gist
- 1Умножение на Python ijk, почему мы используем следующую запись присваивания или строку кода?
- 0.hasOwnProperty … и значение?
- 0Могу ли я использовать функцию eval в этом случае?
- 1Создание плавающего, редактируемого и прокручиваемого списка в Android
- 1отсортировать массив с элементом, ближайшим к двум в середине и другими крайностями на другой стороне — js
- 1Тренировочный набор для распознавания лиц
- 1Воспроизведение SoftKeyboard на Android
- 0Перегрузка перегруженного метода: есть ли упрощение?
- 0Как удалить содержимое div?
- 1Это правильная конфигурация Kafka Consumer — при этой настройке Kafka?
- 0Html5 полноэкранный браузер Toggle Button
E1
Indentation
E101
indentation contains mixed spaces and tabs
E111
indentation is not a multiple of four
E112
expected an indented block
E113
unexpected indentation
E114
indentation is not a multiple of four (comment)
E115
expected an indented block (comment)
E116
unexpected indentation (comment)
E121 (*^)
continuation line under-indented for hanging indent
E122 (^)
continuation line missing indentation or outdented
E123 (*)
closing bracket does not match indentation of opening bracket’s line
E124 (^)
closing bracket does not match visual indentation
E125 (^)
continuation line with same indent as next logical line
E126 (*^)
continuation line over-indented for hanging indent
E127 (^)
continuation line over-indented for visual indent
E128 (^)
continuation line under-indented for visual indent
E129 (^)
visually indented line with same indent as next logical line
E131 (^)
continuation line unaligned for hanging indent
E133 (*)
closing bracket is missing indentation
E2
Whitespace
E201
whitespace after ‘(‘
E202
whitespace before ‘)’
E203
whitespace before ‘:’
E211
whitespace before ‘(‘
E221
multiple spaces before operator
E222
multiple spaces after operator
E223
tab before operator
E224
tab after operator
E225
missing whitespace around operator
E226 (*)
missing whitespace around arithmetic operator
E227
missing whitespace around bitwise or shift operator
E228
missing whitespace around modulo operator
E231
missing whitespace after ‘,’, ‘;’, or ‘:’
E241 (*)
multiple spaces after ‘,’
E242 (*)
tab after ‘,’
E251
unexpected spaces around keyword / parameter equals
E261
at least two spaces before inline comment
E262
inline comment should start with ‘# ‘
E265
block comment should start with ‘# ‘
E266
too many leading ‘#’ for block comment
E271
multiple spaces after keyword
E272
multiple spaces before keyword
E273
tab after keyword
E274
tab before keyword
E275
missing whitespace after keyword
E3
Blank line
E301
expected 1 blank line, found 0
E302
expected 2 blank lines, found 0
E303
too many blank lines (3)
E304
blank lines found after function decorator
E305
expected 2 blank lines after end of function or class
E306
expected 1 blank line before a nested definition
E4
Import
E401
multiple imports on one line
E402
module level import not at top of file
E5
Line length
E501 (^)
line too long (82 > 79 characters)
E502
the backslash is redundant between brackets
E7
Statement
E701
multiple statements on one line (colon)
E702
multiple statements on one line (semicolon)
E703
statement ends with a semicolon
E704 (*)
multiple statements on one line (def)
E711 (^)
comparison to None should be ‘if cond is None:’
E712 (^)
comparison to True should be ‘if cond is True:’ or ‘if cond:’
E713
test for membership should be ‘not in’
E714
test for object identity should be ‘is not’
E721 (^)
do not compare types, use ‘isinstance()’
E722
do not use bare except, specify exception instead
E731
do not assign a lambda expression, use a def
E741
do not use variables named ‘l’, ‘O’, or ‘I’
E742
do not define classes named ‘l’, ‘O’, or ‘I’
E743
do not define functions named ‘l’, ‘O’, or ‘I’
E9
Runtime
E901
SyntaxError or IndentationError
E902
IOError
W1
Indentation warning
W191
indentation contains tabs
W2
Whitespace warning
W291
trailing whitespace
W292
no newline at end of file
W293
blank line contains whitespace
W3
Blank line warning
W391
blank line at end of file
W5
Line break warning
W503 (*)
line break before binary operator
W504 (*)
line break after binary operator
W505 (*^)
doc line too long (82 > 79 characters)
W6
Deprecation warning
W601
.has_key() is deprecated, use ‘in’
W602
deprecated form of raising exception
W603
‘<>’ is deprecated, use ‘!=’
W604
backticks are deprecated, use ‘repr()’
W605
invalid escape sequence ‘x’
W606
‘async’ and ‘await’ are reserved keywords starting with Python 3.7
palachevskiy 0 / 0 / 0 Регистрация: 15.05.2020 Сообщений: 9 |
||||
1 |
||||
15.05.2020, 16:57. Показов 7149. Ответов 4 Метки нет (Все метки)
./solution.py:3:12: E203 whitespace before ‘:’
__________________ 0 |
5403 / 3827 / 1214 Регистрация: 28.10.2013 Сообщений: 9,554 Записей в блоге: 1 |
|
15.05.2020, 17:05 |
2 |
отфармотировать по стандарту PEP8 Может, сначала сдашь русский? И еще: ты видел, что люди выкладывают сюда код в тегах Python кода, а не тупой нечитабельной лапшой? 1 |
Просто Лис 4830 / 3152 / 991 Регистрация: 17.05.2012 Сообщений: 9,186 Записей в блоге: 9 |
|
15.05.2020, 17:28 |
3 |
PyCharm -> ctrl+L 0 |
unfindable_404 683 / 466 / 204 Регистрация: 22.03.2020 Сообщений: 1,051 |
||||
15.05.2020, 17:54 |
4 |
|||
Дело не в PEP8. Код, который вы запускаете, поддерживается только Python3.8. Но вы запускаете его на Python более старой версии. Отсюда и ошибки. Я поправил.
2 |
Нарушитель 14040 / 8228 / 2485 Регистрация: 21.10.2017 Сообщений: 19,708 |
|
16.05.2020, 18:38 |
5 |
PyCharm -> ctrl+L Ctrl+Alt+L 2 |
I’m a Python beginner, I read pep standards which must follow while programming in python
http://legacy.python.org/dev/peps/pep-0008
Now I have a doubt. As they have mentioned that you should not put spaces around the equal sign while using keyword argument or a default parameter value in functions or Dict.
For example
YES
def myfunc(key1=val1, key2=val2, key3=val3)
NO
def myfunc(key1 = val1, key2 = val2, key3 = val3)
Thats fine but what if I break down these in multiple lines. something like this(when we have many parameters or long name)
def myfunc(key1=val1,
key2=val2,
key3=val3)
In this case, I think, we should put space around the equal sign. am I correct. because these all are about readability but I’m just curious if there is standard for this too. Looking for best practices.
Same thing for Dict.
new_dict= Dict(
key1=val1,
key2=val2,
key3=val3
)
And should I put a comma after last argument in dict unlike example mentioned above, I didn’t put a comma after last value (key3=val3)
asked Jul 17, 2014 at 18:18
user3810188user3810188
3011 gold badge3 silver badges14 bronze badges
2
Thats fine but what if I break down these in multiple lines. something like this(when we have many parameters or long name)
def myfunc(key1=val1, key2=val2, key3=val3)
In the code you give, you are not putting whitespace around the =
, so you are complying with pep8 in respect of operator spacing (your indentation does not comply with pep8).
In general, you can write your code however you like. If you don’t comply with pep8, other people generally won’t find your code as easy to read. If you have local standards within your company, that should supercede pep8. If you don’t have standards that direct you to violate pep8, your colleagues will likely hate you for breaking pep8.
If you don’t have a standard at all, future you will also hate present you.
answered Jul 17, 2014 at 18:23
MarcinMarcin
48.2k18 gold badges127 silver badges200 bronze badges
PEP8 clearly says:
Don’t use spaces around the = sign when used to indicate a keyword
argument or a default parameter value.
You don’t need to put white spaces around the equal sign in both cases.
If you are not sure whether your code follows PEP8 standard or not, use flake8
static code analysis tool. It would raise warnings in case of code style violations.
Example:
Consider you have extra whitespaces around the equal signs:
def myfunc(key1 = 'val1',
key2 = 'val2',
key3 = 'val3'):
return key1, key2, key3
flake8
outputs a warning for every unexpected whitespace:
$ flake8 test.py
test.py:3:16: E251 unexpected spaces around keyword / parameter equals
test.py:3:18: E251 unexpected spaces around keyword / parameter equals
test.py:4:16: E251 unexpected spaces around keyword / parameter equals
test.py:4:18: E251 unexpected spaces around keyword / parameter equals
test.py:5:16: E251 unexpected spaces around keyword / parameter equals
test.py:5:18: E251 unexpected spaces around keyword / parameter equals
answered Jul 17, 2014 at 18:26
alecxealecxe
460k120 gold badges1076 silver badges1185 bronze badges
7
No. Don’t put spaces around equal signs when declaring kwargs. Think of it this way: If you are just skimming lines of code, you want to train your eyes to see the difference between the assignment operator used during ordinary program flow (spam = True) and a kwarg, especially if it’s on its own line (spam=True).
As for a trailing comma, I have always felt that a trailing comma suggests to a fellow team member or reader that I feel the list, dict, set of args, etc. might be subject to expansion in the future. If I’m fairly certain that the structure represents its mature state, I remove it.
answered Jul 17, 2014 at 18:23
jMylesjMyles
11.7k6 gold badges42 silver badges56 bronze badges
1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
bitranox opened this issue
Jul 25, 2019
· 2 comments
Comments
251 unexpected spaces around keyword / parameter equals
E251 unexpected spaces around keyword / parameter equals
def __init__(self, s_regexp: str = "", flags: Union[int, re.RegexFlag] = 0):
^
PIP environment :
Package Version
---------------------- --------------------------------------------------
apipkg 1.5
apturl 0.5.2
asn1crypto 0.24.0
atomicwrites 1.3.0
attrs 19.1.0
backcall 0.1.0
bleach 3.1.0
blinker 1.4
certifi 2018.8.24
chardet 3.0.4
coloredlogs 10.0
colouredlogs 10.0.1
command-not-found 0.3
coverage 4.5.3
cryptography 2.3
cupshelpers 1.0
decorator 4.4.0
defer 1.0.6
defusedxml 0.6.0
distro 1.4.0
distro-info 0.0.0
entrypoints 0.3
execnet 1.6.0
gobject 0.1.0
httplib2 0.11.3
humanfriendly 4.7
idna 2.6
importlib-metadata 0.18
ipykernel 5.1.1
ipython 7.6.1
ipython-genutils 0.2.0
ipywidgets 7.5.0
jedi 0.14.1
Jinja2 2.10.1
jsonschema 3.0.1
jupyter 1.0.0
jupyter-client 5.3.1
jupyter-console 6.0.0
jupyter-core 4.5.0
keyring 17.1.1
keyrings.alt 3.1.1
language-selector 0.1
launchpadlib 1.10.6
lazr.restfulclient 0.14.2
lazr.uri 1.0.3
lib-doctest-pycharm 0.0.1
macaroonbakery 1.2.1
MarkupSafe 1.1.1
mate-hud 18.10.1
mate-tweak 18.10.2
meld 3.20.0
mistune 0.8.4
more-itertools 7.2.0
mypy 0.730+dev.0a7cb9422d105c7099fdf4ef6a84765ffdcf3058
mypy-extensions 0.4.1
nbconvert 5.5.0
nbformat 4.4.0
netifaces 0.10.4
notebook 6.0.0
oauthlib 2.1.0
olefile 0.46
packaging 19.0
pandocfilters 1.4.2
parso 0.5.1
pep8 1.7.1
pexpect 4.6.0
pickleshare 0.7.5
Pillow 5.4.1
pip 19.3.dev0
pluggy 0.12.0
prometheus-client 0.7.1
prompt-toolkit 2.0.9
protobuf 3.6.1
psutil 5.5.1
ptyprocess 0.6.0
pulsemixer 1.4.0
py 1.8.0
pycairo 1.16.2
pycrypto 2.6.1
pycups 1.9.73
Pygments 2.4.2
PyGObject 3.32.0
PyJWT 1.7.0
pymacaroons 0.13.0
PyNaCl 1.3.0
pyparsing 2.4.1
pyRFC3339 1.1
pyrsistent 0.15.3
pytest 5.0.2.dev61+g13d857745
pytest-cache 1.0
pytest-pep8 1.0.7.dev1
pytest-runner 5.1
python-apt 1.8.4
python-dateutil 2.7.3
python-debian 0.1.34
python-xapp 1.2.0
python-xlib 0.23
pytz 2018.9
pyxdg 0.25
PyYAML 3.13
pyzmq 18.0.2
qtconsole 4.5.2
reportlab 3.5.18
requests 2.21.0
requests-unixsocket 0.1.5
SecretStorage 2.3.1
Send2Trash 1.5.0
setproctitle 1.1.10
setuptools 40.8.0
simplejson 3.16.0
six 1.12.0
ssh-import-id 5.7
system-service 0.3
terminado 0.8.2
testpath 0.4.2
tornado 6.0.3
traitlets 4.3.2
typed-ast 1.4.0
typing 3.7.4
typing-extensions 3.7.4
ubuntu-advantage-tools 19.2
ubuntu-drivers-common 0.0.0
ufw 0.36
unattended-upgrades 0.1
urllib3 1.25.3
usb-creator 0.3.3
wadllib 1.3.3
wcwidth 0.1.7
webencodings 0.5.1
wheel 0.32.3
widgetsnbextension 3.5.0
xkit 0.0.0
zipp 0.5.2
Pytest Version: 5.0.2.dev61+g13d857745
OS: disco
This isn’t coming from pytest — it’s probably coming from an old pytest-pep8 (or rather pep8 itself), which got renamed to pycodestyle
a while ago. You might want to switch to pytest-pycodestyle.
2 participants