jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
Do not exclude userscripts directory from pycodestyles

This directory is empty by default. Whether the user choses to put
codes in it that are PEP8 compliant or not is up to the user. So,
the choice of whether to exclude this directory from pycodestyles
should also be up to the user.

This reverts Ic97089c806a5eacc332f30750431adf67be3cb56

Additionally, do not exclude user-config.py from the flake8 checks
for the same reason.

Bug: T253873
Change-Id: Ied5f8d5eca71d510269336757bab9f6f7e3dd081
---
M tox.ini
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tox.ini b/tox.ini
index d34bd55..58bada6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -102,7 +102,7 @@

ignore = D105,D211,D401,D413,D412,FI12,FI13,FI15,FI16,FI17,FI5,H101,H236,H301,H404,H405,H903,P101,P102,P103,W503
enable-extensions = H203,H204,H205
-exclude = .tox,.git,./*.egg,build,user-config.py,scripts/archive/*,./scripts/i18n/*,scripts/userscripts/*
+exclude = .tox,.git,./*.egg,build,scripts/archive/*,./scripts/i18n/*
min-version = 2.7
accept-encodings = utf-8
require-code = true
@@ -245,7 +245,7 @@
tests/xmlreader_tests.py: N802

[pycodestyle]
-exclude = .tox,.git,./*.egg,build,user-config.py,scripts/archive/*,./scripts/i18n/*,scripts/userscripts/*
+exclude = .tox,.git,./*.egg,build,scripts/archive/*,./scripts/i18n/*

[pep257]
# see explanations above

To view, visit change 599345. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ied5f8d5eca71d510269336757bab9f6f7e3dd081
Gerrit-Change-Number: 599345
Gerrit-PatchSet: 4
Gerrit-Owner: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: Framawiki <framawiki@tools.wmflabs.org>
Gerrit-Reviewer: Huji <huji.huji@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: Dvorapa <dvorapa@seznam.cz>