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

Side by Side Diff: tox.ini

Issue 29569630: Noissue - Added flake8-docstrings (sitescripts) (Closed)
Patch Set: Created Oct. 9, 2017, 1:32 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 [tox] 1 [tox]
2 envlist = py27 2 envlist = py27
3 skipsdist = true 3 skipsdist = true
4 4
5 [pytest] 5 [pytest]
6 # The names of the test files here don't start with 'test_' so we need 6 # The names of the test files here don't start with 'test_' so we need
7 # to instruct pytest to load tests from all files. 7 # to instruct pytest to load tests from all files.
8 python_files = *.py 8 python_files = *.py
9 9
10 [run] 10 [run]
11 # Exclude tests from coverage. 11 # Exclude tests from coverage.
12 omit = */test/* 12 omit = */test/*
13 13
14 [flake8] 14 [flake8]
15 ignore = D1
Sebastian Noack 2017/10/09 01:56:17 D1 is for missing docstrings. I think enforcing do
Vasily Kuznetsov 2017/10/09 20:39:47 We should decide what the policy should be for new
Sebastian Noack 2017/10/10 04:38:32 For library projects, I completely agree. However,
15 per-file-ignores = 16 per-file-ignores =
16 sitescripts/content_blocker_lists/bin/generate_lists.py : A107,E501 17 sitescripts/content_blocker_lists/bin/generate_lists.py : A107,E501
17 sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806 18 sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806
18 sitescripts/crawler/bin/import_sites.py : A105,A206,E501 19 sitescripts/crawler/bin/import_sites.py : A105,A206,E501
19 sitescripts/crawler/web/crawler.py : A107,A108,A206,E501 20 sitescripts/crawler/web/crawler.py : A107,A108,A206,E501
20 sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A302,E50 1,F841,N802,N806,N812 21 sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A302,D20 0,D202,D205,D208,D400,D401,D403,E501,F841,N802,N806,N812
21 sitescripts/extensions/bin/updateUpdateManifests.py : A107,A206,E501,N802,N8 06 22 sitescripts/extensions/bin/updateUpdateManifests.py : A107,A206,D200,D202,D2 05,D400,D401,D403,E501,N802,N806
22 sitescripts/extensions/utils.py : A107,A206,A301,A302,E501,E711,F401,N802,N8 03,N805,N806 23 sitescripts/extensions/test/conftest.py : D200,D400
24 sitescripts/extensions/test/test_createNightlies.py : D400
25 sitescripts/extensions/test/test_updateManifests.py : D401
26 sitescripts/extensions/utils.py : A107,A206,A301,A302,D200,D202,D204,D205,D2 08,D400,D401,D403,E501,E711,F401,N802,N803,N805,N806
23 sitescripts/extensions/web/adblockbrowserUpdates.py : A107,E501 27 sitescripts/extensions/web/adblockbrowserUpdates.py : A107,E501
24 sitescripts/extensions/web/downloads.py : E501,F401 28 sitescripts/extensions/web/downloads.py : E501,F401
25 sitescripts/formmail/web/formmail.py : A301,E501,E713,N802 29 sitescripts/formmail/web/formmail.py : A301,E501,E713,N802
30 sitescripts/formmail/test/test_formmail2.py : D210,D400,D401
26 sitescripts/hg/bin/irchook.py : A104 31 sitescripts/hg/bin/irchook.py : A104
27 sitescripts/hg/test/update_issues.py : N802 32 sitescripts/hg/test/update_issues.py : N802
28 sitescripts/management/bin/generateHgAuth.py : A107,E501,E711 33 sitescripts/management/bin/generateHgAuth.py : A107,E501,E711
29 sitescripts/management/bin/generateNotifications.py : A301,E501 34 sitescripts/management/bin/generateNotifications.py : A301,E501
30 sitescripts/management/bin/installChanges.py : A102,A107,E501,E713,N802,N803 ,N806 35 sitescripts/management/bin/installChanges.py : A102,A107,E501,E713,N802,N803 ,N806
31 sitescripts/management/bin/start_services.py : A107,E501 36 sitescripts/management/bin/start_services.py : A107,E501
32 sitescripts/notifications/parser.py : A101,A102,A107,E501,E713 37 sitescripts/notifications/parser.py : A101,A102,A107,E501,E713
33 sitescripts/notifications/test/notification.py : E501 38 sitescripts/notifications/test/notification.py : E501
34 sitescripts/notifications/test/parser.py : A107 39 sitescripts/notifications/test/parser.py : A107
35 sitescripts/notifications/web/notification.py : A101,A107,E501 40 sitescripts/notifications/web/notification.py : A101,A107,E501
36 sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711, F401,N802,N806 41 sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711, F401,N802,N806
37 sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,E 501,E711,F401,N802,N803,N806 42 sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,E 501,E711,F401,N802,N803,N806
38 sitescripts/reports/bin/processReports.py : E501,F401,N802,N806 43 sitescripts/reports/bin/processReports.py : E501,F401,N802,N806
39 sitescripts/reports/bin/removeOldReports.py : E501,N802 44 sitescripts/reports/bin/removeOldReports.py : E501,N802
40 sitescripts/reports/bin/removeOldUsers.py : E501,N802 45 sitescripts/reports/bin/removeOldUsers.py : E501,N802
41 sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N80 2,N806 46 sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N80 2,N806
42 sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802 47 sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802
43 sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806 48 sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806
44 sitescripts/reports/web/showDigest.py : A206,A301,A302,E501,F401,N802,N806 49 sitescripts/reports/web/showDigest.py : A206,A301,A302,E501,F401,N802,N806
45 sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802 50 sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802
46 sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806 51 sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806
47 sitescripts/reports/web/updateReport.py : A301,E501,E711,F401,N802,N806 52 sitescripts/reports/web/updateReport.py : A301,E501,E711,F401,N802,N806
48 sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A204,A206,A301,A 302,E501,E711,F401,N806 53 sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A204,A206,A301,A 302,D202,D205,D208,D400,D401,E501,E711,F401,N806
49 sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A301,A302,E501,E711, F401,N806 54 sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A301,A302,E501,E711, F401,N806
50 sitescripts/stats/common.py : A107,A112,E501 55 sitescripts/stats/common.py : A107,A112,D200,D205,D208,D400,D401,E501
51 sitescripts/stats/countrycodes.py : E501 56 sitescripts/stats/countrycodes.py : E501
52 sitescripts/stats/test/common.py : A107,A112,A301,E501 57 sitescripts/stats/test/common.py : A107,A112,A301,E501
53 sitescripts/stats/test/logprocessor.py : A101,A107,A112,E501 58 sitescripts/stats/test/logprocessor.py : A101,A107,A112,E501
54 sitescripts/submit_email/web/submit_email.py : E501 59 sitescripts/submit_email/web/submit_email.py : E501
55 sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,E 713,F401,N802,N803,N806 60 sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,E 713,F401,N802,N803,N806
56 sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806 61 sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806
57 sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501 62 sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501
58 sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,F401 ,F841,N802 63 sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,F401 ,F841,N802
59 sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : E501,F401 64 sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : E501,F401
60 sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501 65 sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501
61 sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A206 ,A301,A302,E501,E713 66 sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A206 ,A301,A302,E501,E713
62 sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N8 02,N806 67 sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N8 02,N806
63 sitescripts/subscriptions/subscriptionParser.py : A102,A107,A206,A302,E501,E 711,N802,N803,N805 68 sitescripts/subscriptions/subscriptionParser.py : A102,A107,A206,A302,E501,E 711,N802,N803,N805
69 sitescripts/subscriptions/test/test_updateMalwareDomainsList.py : D400,D401
64 sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N8 06 70 sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N8 06
65 sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N80 3,N806 71 sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N80 3,N806
66 sitescripts/testpages/web/sitekey_frame.py : A107 72 sitescripts/testpages/web/sitekey_frame.py : A107
67 sitescripts/urlfixer/bin/forceDomains.py : A206,E501,N802 73 sitescripts/urlfixer/bin/forceDomains.py : A206,D205,D400,E501,N802
68 sitescripts/urlfixer/bin/topDomains.py : A206,E501,E711,F401,N802 74 sitescripts/urlfixer/bin/topDomains.py : A206,D205,D400,E501,E711,F401,N802
69 sitescripts/urlfixer/web/submitData.py : A206,E501,E711,F401,F841,N802,N806 75 sitescripts/urlfixer/web/submitData.py : A206,E501,E711,F401,F841,N802,N806
70 sitescripts/utils.py : A107,A301,E501,N801,N802,N806 76 sitescripts/utils.py : A107,A301,D200,D202,D205,D208,D400,D401,E501,N801,N80 2,N806
71 sitescripts/web.py : A107,E501,N802 77 sitescripts/web.py : A107,E501,N802
72 multiplexer.py : A107,E501 78 multiplexer.py : A107,E501
73 79
74 [testenv] 80 [testenv]
75 basepython=python2 81 basepython=python2
76 deps = 82 deps =
77 pytest 83 pytest
78 pytest-cov 84 pytest-cov
79 mock 85 mock
80 pytest-mock 86 pytest-mock
81 wsgi_intercept 87 wsgi_intercept
82 jinja2 88 jinja2
83 pycrypto 89 pycrypto
84 pysed 90 pysed
85 flake8 91 flake8
86 flake8-per-file-ignores 92 flake8-per-file-ignores
93 flake8-docstrings
87 pep8-naming 94 pep8-naming
88 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo 95 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo
89 96
90 setenv = 97 setenv =
91 SITESCRIPTS_CONFIG = ./.sitescripts.test 98 SITESCRIPTS_CONFIG = ./.sitescripts.test
92 whitelist_externals = cp 99 whitelist_externals = cp
93 commands = 100 commands =
94 cp .sitescripts.example .sitescripts.test 101 cp .sitescripts.example .sitescripts.test
95 pysed \ 102 pysed \
96 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \ 103 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \
97 '' .sitescripts.test --write 104 '' .sitescripts.test --write
98 python ensure_dependencies.py 105 python ensure_dependencies.py
99 py.test \ 106 py.test \
100 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip ts \ 107 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip ts \
101 sitescripts/hg/test \ 108 sitescripts/hg/test \
102 sitescripts/notifications/test \ 109 sitescripts/notifications/test \
103 sitescripts/stats/test \ 110 sitescripts/stats/test \
104 sitescripts/formmail/test \ 111 sitescripts/formmail/test \
105 sitescripts/extensions/test \ 112 sitescripts/extensions/test \
106 sitescripts/subscriptions/test \ 113 sitescripts/subscriptions/test \
107 tests 114 tests
108 flake8 sitescripts multiplexer.py multiplexer.fcgi 115 flake8 sitescripts multiplexer.py multiplexer.fcgi
OLDNEW

Powered by Google App Engine
This is Rietveld