Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tox.ini

Issue 29345179: Noissue - Add flake8-abp and pep8-naming extensions, use flake8-putty for more granular ignores (Closed)
Patch Set: Created May 28, 2016, 11:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tox.ini
===================================================================
--- a/tox.ini
+++ b/tox.ini
@@ -11,6 +11,70 @@
# Exclude tests from coverage.
omit = */test/*
+[flake8]
+putty-ignore =
+ sitescripts/__init__.py : A110
+ sitescripts/content_blocker_lists/bin/generate_lists.py : A107,A110,E501
+ sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806
+ sitescripts/crawler/bin/import_sites.py : A105,A110,A206,E501
+ sitescripts/crawler/web/crawler.py : A107,A108,A110,A206,E501
+ sitescripts/docs/bin/generate_docs.py : A110
+ sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A109,A110,A302,E501,F401,F841,N802,N806,N812
+ sitescripts/extensions/bin/updateRecommendations.py : E501,N802
+ sitescripts/extensions/bin/updateUpdateManifests.py : A107,A110,A206,E501,N802,N806
+ sitescripts/extensions/utils.py : A107,A110,A206,A301,A302,E501,E711,F401,N802,N803,N805,N806
+ sitescripts/extensions/web/adblockbrowserUpdates.py : A107,A110,E501
+ sitescripts/extensions/web/downloads.py : A110,E501,F401
+ sitescripts/formmail/web/formmail.py : A301,E501,E713,N802
+ sitescripts/hg/bin/irchook.py : A104
+ sitescripts/hg/test/update_issues.py : N802
+ sitescripts/management/bin/generateHgAuth.py : A107,E501,E711
+ sitescripts/management/bin/generateNotifications.py : A110,A301,E501
+ sitescripts/management/bin/installChanges.py : A102,A107,A111,E501,E713,N802,N803,N806
+ sitescripts/management/bin/start_services.py : A107,A110,E501
+ sitescripts/notifications/parser.py : A101,A102,A107,A110,E501,E713
+ sitescripts/notifications/test/notification.py : A110,E501
+ sitescripts/notifications/test/parser.py : A107,A110
+ sitescripts/notifications/web/notification.py : A101,A107,A110,E501
+ sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711,F401,N802,N806
+ sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,E501,E711,F401,N802,N803,N806
+ sitescripts/reports/bin/processReports.py : E501,F401,N802,N806
+ sitescripts/reports/bin/removeOldReports.py : E501,N802
+ sitescripts/reports/bin/removeOldUsers.py : E501,N802
+ sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N802,N806
+ sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802
+ sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806
+ sitescripts/reports/web/showDigest.py : A110,A206,A301,A302,E501,F401,N802,N806
+ sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802
+ sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806
+ sitescripts/reports/web/updateReport.py : A111,A301,E501,E711,F401,N802,N806
+ sitescripts/send_installation_link/web/send_installation_link.py : A110
+ sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A110,A204,A206,A301,A302,E501,E711,F401,N806
+ sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A110,A301,A302,E501,E711,F401,N806
+ sitescripts/stats/common.py : A107,A110,A112,E501
+ sitescripts/stats/countrycodes.py : A110,E501
+ sitescripts/stats/test/common.py : A107,A110,A112,A301,E501
+ sitescripts/stats/test/logprocessor.py : A101,A107,A110,A112,E501
+ sitescripts/submit_email/web/submit_email.py : E501
+ sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,E713,F401,N802,N803,N806
+ sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806
+ sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501
+ sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,F401,F841,N802
+ sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : A110,E501,F401
+ sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501
+ sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A110,A206,A301,A302,E501,E713
+ sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N802,N806
+ sitescripts/subscriptions/subscriptionParser.py : A102,A107,A110,A206,A302,E501,E711,N802,N803,N805
+ sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N806
+ sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N803,N806
+ sitescripts/testpages/web/sitekey_frame.py : A107,A110
+ sitescripts/urlfixer/bin/forceDomains.py : A110,A203,A206,E501,N802
+ sitescripts/urlfixer/bin/topDomains.py : A110,A203,A206,E501,E711,F401,N802
+ sitescripts/urlfixer/web/submitData.py : A110,A206,E501,E711,F401,F841,N802,N806
+ sitescripts/utils.py : A107,A109,A110,A301,E501,E713,N801,N802,N806
+ sitescripts/web.py : A107,A110,E501,N802
+ multiplexer.py : A107,A110,E501
+
[testenv]
basepython=python2
deps =
@@ -18,8 +82,11 @@
pytest-cov
mock
jinja2
+ pysed
flake8
- pysed
+ flake8-putty
+ pep8-naming
+ hg+https://hg.adblockplus.org/codingtools#egg=flake8-abp&subdirectory=flake8-abp
setenv =
SITESCRIPTS_CONFIG = ./.sitescripts.test
@@ -35,5 +102,4 @@
sitescripts/hg/test \
sitescripts/notifications/test \
sitescripts/stats/test
- flake8 --ignore=E501,E711,E713,F401,F841 \
- sitescripts multiplexer.py multiplexer.fcgi
+ flake8 sitescripts multiplexer.py multiplexer.fcgi
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld