OLD | NEW |
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 | 15 ignore = D1 |
16 per-file-ignores = | 16 per-file-ignores = |
17 sitescripts/content_blocker_lists/bin/generate_lists.py : A107,E501 | 17 /sitescripts/content_blocker_lists/bin/generate_lists.py : A107,E501 |
18 sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806 | 18 /sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806 |
19 sitescripts/crawler/bin/import_sites.py : A105,A206,E501 | 19 /sitescripts/crawler/bin/import_sites.py : A105,A206,E501 |
20 sitescripts/crawler/web/crawler.py : A107,A108,A206,E501 | 20 /sitescripts/crawler/web/crawler.py : A107,A108,A206,E501 |
21 sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A302,D20
0,D202,D205,D208,D400,D401,D403,E501,E722,F841,N802,N806,N812 | 21 /sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A302,D2
00,D202,D205,D208,D400,D401,D403,E501,E722,F841,N802,N806,N812 |
22 sitescripts/extensions/bin/updateUpdateManifests.py : A107,A206,D200,D202,D2
05,D400,D401,D403,E501,N802,N806 | 22 /sitescripts/extensions/bin/updateUpdateManifests.py : A107,A206,D200,D202,D
205,D400,D401,D403,E501,N802,N806 |
23 sitescripts/extensions/test/conftest.py : D200,D400 | 23 /sitescripts/extensions/test/conftest.py : D200,D400 |
24 sitescripts/extensions/test/test_createNightlies.py : D400 | 24 /sitescripts/extensions/test/test_createNightlies.py : D400 |
25 sitescripts/extensions/test/test_updateManifests.py : D401 | 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,E722,F401,N802,N803,N805,N806 | 26 /sitescripts/extensions/utils.py : A107,A206,A301,A302,D200,D202,D204,D205,D
208,D400,D401,D403,E501,E711,E722,F401,N802,N803,N805,N806 |
27 sitescripts/extensions/web/adblockbrowserUpdates.py : A107,E501,E722 | 27 /sitescripts/extensions/web/adblockbrowserUpdates.py : A107,E501,E722 |
28 sitescripts/extensions/web/downloads.py : E501,E722,F401 | 28 /sitescripts/extensions/web/downloads.py : E501,E722,F401 |
29 sitescripts/formmail/web/formmail.py : A301,E501,E713,E722,N802 | 29 /sitescripts/formmail/web/formmail.py : A301,E501,E713,E722,N802 |
30 sitescripts/formmail/web/formmail2.py : E722 | 30 /sitescripts/formmail/web/formmail2.py : E722 |
31 sitescripts/formmail/test/test_formmail2.py : D210,D400,D401 | 31 /sitescripts/formmail/test/test_formmail2.py : D210,D400,D401 |
32 sitescripts/hg/bin/irchook.py : A104 | 32 /sitescripts/hg/bin/irchook.py : A104 |
33 sitescripts/hg/test/update_issues.py : N802 | 33 /sitescripts/hg/test/update_issues.py : N802 |
34 sitescripts/management/bin/generateHgAuth.py : A107,E501,E711 | 34 /sitescripts/management/bin/generateHgAuth.py : A107,E501,E711 |
35 sitescripts/management/bin/generateNotifications.py : A301,E501 | 35 /sitescripts/management/bin/generateNotifications.py : A301,E501 |
36 sitescripts/management/bin/installChanges.py : A102,A107,E501,E713,N802,N803
,N806 | 36 /sitescripts/management/bin/installChanges.py : A102,A107,E501,E713,N802,N80
3,N806 |
37 sitescripts/management/bin/start_services.py : A107,E501 | 37 /sitescripts/management/bin/start_services.py : A107,E501 |
38 sitescripts/notifications/parser.py : A101,A102,A107,E501,E713,E722 | 38 /sitescripts/notifications/parser.py : A101,A102,A107,E501,E713,E722 |
39 sitescripts/notifications/test/notification.py : E501 | 39 /sitescripts/notifications/test/notification.py : E501 |
40 sitescripts/notifications/test/parser.py : A107 | 40 /sitescripts/notifications/test/parser.py : A107 |
41 sitescripts/notifications/web/notification.py : A101,A107,E501 | 41 /sitescripts/notifications/web/notification.py : A101,A107,E501 |
42 sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711,
F401,N802,N806 | 42 /sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711
,F401,N802,N806 |
43 sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,E
501,E711,E722,F401,N802,N803,N806 | 43 /sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,
E501,E711,E722,F401,N802,N803,N806 |
44 sitescripts/reports/bin/processReports.py : E501,F401,N802,N806 | 44 /sitescripts/reports/bin/processReports.py : E501,F401,N802,N806 |
45 sitescripts/reports/bin/removeOldReports.py : E501,N802 | 45 /sitescripts/reports/bin/removeOldReports.py : E501,N802 |
46 sitescripts/reports/bin/removeOldUsers.py : E501,N802 | 46 /sitescripts/reports/bin/removeOldUsers.py : E501,N802 |
47 sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N80
2,N806 | 47 /sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N8
02,N806 |
48 sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802 | 48 /sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802 |
49 sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806 | 49 /sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806 |
50 sitescripts/reports/web/showDigest.py : A206,A301,A302,E501,F401,N802,N806 | 50 /sitescripts/reports/web/showDigest.py : A206,A301,A302,E501,F401,N802,N806 |
51 sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802 | 51 /sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802 |
52 sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806 | 52 /sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806 |
53 sitescripts/reports/web/updateReport.py : A301,E501,E711,E722,F401,N802,N806 | 53 /sitescripts/reports/web/updateReport.py : A301,E501,E711,E722,F401,N802,N80
6 |
54 sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A204,A206,A301,A
302,D202,D205,D208,D400,D401,E501,E711,E722,F401,N806 | 54 /sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A204,A206,A301,
A302,D202,D205,D208,D400,D401,E501,E711,E722,F401,N806 |
55 sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A301,A302,E501,E711,
F401,N806 | 55 /sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A301,A302,E501,E711
,F401,N806 |
56 sitescripts/stats/common.py : A107,A112,D200,D205,D208,D400,D401,E501 | 56 /sitescripts/stats/common.py : A107,A112,D200,D205,D208,D400,D401,E501 |
57 sitescripts/stats/countrycodes.py : E501 | 57 /sitescripts/stats/countrycodes.py : E501 |
58 sitescripts/stats/test/common.py : A107,A112,A301,E501 | 58 /sitescripts/stats/test/common.py : A107,A112,A301,E501 |
59 sitescripts/stats/test/logprocessor.py : A101,A107,A112,E501 | 59 /sitescripts/stats/test/logprocessor.py : A101,A107,A112,E501 |
60 sitescripts/submit_email/web/submit_email.py : E501 | 60 /sitescripts/submit_email/web/submit_email.py : E501 |
61 sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,E
713,F401,N802,N803,N806 | 61 /sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,
E713,F401,N802,N803,N806 |
62 sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806 | 62 /sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806 |
63 sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501 | 63 /sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501 |
64 sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,E722
,F401,F841,N802 | 64 /sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,E72
2,F401,F841,N802 |
65 sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : E501,F401 | 65 /sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : E501,F401 |
66 sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501 | 66 /sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501 |
67 sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A206
,A301,A302,E501,E713,E722 | 67 /sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A20
6,A301,A302,E501,E713,E722 |
68 sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N8
02,N806 | 68 /sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N
802,N806 |
69 sitescripts/subscriptions/subscriptionParser.py : A102,A107,A206,A302,E501,E
711,E722,N802,N803,N805 | 69 /sitescripts/subscriptions/subscriptionParser.py : A102,A107,A206,A302,E501,
E711,E722,N802,N803,N805 |
70 sitescripts/subscriptions/test/test_updateMalwareDomainsList.py : D400,D401 | 70 /sitescripts/subscriptions/test/test_updateMalwareDomainsList.py : D400,D401 |
71 sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N8
06 | 71 /sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N
806 |
72 sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N80
3,N806 | 72 /sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N8
03,N806 |
73 sitescripts/testpages/web/sitekey_frame.py : A107 | 73 /sitescripts/testpages/web/sitekey_frame.py : A107 |
74 sitescripts/urlfixer/bin/forceDomains.py : A206,D205,D400,E501,N802 | 74 /sitescripts/urlfixer/bin/forceDomains.py : A206,D205,D400,E501,N802 |
75 sitescripts/urlfixer/bin/topDomains.py : A206,D205,D400,E501,E711,F401,N802 | 75 /sitescripts/urlfixer/bin/topDomains.py : A206,D205,D400,E501,E711,F401,N802 |
76 sitescripts/urlfixer/web/submitData.py : A206,E501,E711,F401,F841,N802,N806 | 76 /sitescripts/urlfixer/web/submitData.py : A206,E501,E711,F401,F841,N802,N806 |
77 sitescripts/utils.py : A107,A301,D200,D202,D205,D208,D400,D401,E501,N801,N80
2,N806 | 77 /sitescripts/utils.py : A107,A301,D200,D202,D205,D208,D400,D401,E501,N801,N8
02,N806 |
78 sitescripts/web.py : A107,E501,N802 | 78 /sitescripts/web.py : A107,E501,N802 |
79 multiplexer.py : A107,E501 | 79 /multiplexer.py : A107,E501 |
80 sitescripts/extensions/bin/legacy/packagerSafari.py : A107,A302,E501,N802,N8
03,N806 | 80 /sitescripts/extensions/bin/legacy/packagerSafari.py : A107,A302,E501,N802,N
803,N806 |
81 | 81 |
82 [testenv] | 82 [testenv] |
83 basepython=python2 | 83 basepython=python2 |
84 deps = | 84 deps = |
85 cryptography | 85 cryptography |
86 pytest | 86 pytest |
87 pytest-cov | 87 pytest-cov |
88 mock | 88 mock |
89 pytest-mock | 89 pytest-mock |
90 wsgi_intercept | 90 wsgi_intercept |
91 jinja2 | 91 jinja2 |
92 pycrypto | 92 pycrypto |
93 pysed | 93 pysed |
94 flake8 | 94 flake8 |
95 flake8-per-file-ignores | 95 flake8-per-file-ignores>=0.4 |
96 flake8-docstrings | 96 flake8-docstrings |
97 pep8-naming | 97 pep8-naming |
98 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake
8-eyeo | 98 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake
8-eyeo |
99 | 99 |
100 setenv = | 100 setenv = |
101 SITESCRIPTS_CONFIG = ./.sitescripts.test | 101 SITESCRIPTS_CONFIG = ./.sitescripts.test |
102 whitelist_externals = cp | 102 whitelist_externals = cp |
103 commands = | 103 commands = |
104 cp .sitescripts.example .sitescripts.test | 104 cp .sitescripts.example .sitescripts.test |
105 pysed \ | 105 pysed \ |
106 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \ | 106 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \ |
107 '' .sitescripts.test --write | 107 '' .sitescripts.test --write |
108 python ensure_dependencies.py | 108 python ensure_dependencies.py |
109 py.test \ | 109 py.test \ |
110 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip
ts \ | 110 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip
ts \ |
111 sitescripts/hg/test \ | 111 sitescripts/hg/test \ |
112 sitescripts/notifications/test \ | 112 sitescripts/notifications/test \ |
113 sitescripts/stats/test \ | 113 sitescripts/stats/test \ |
114 sitescripts/formmail/test \ | 114 sitescripts/formmail/test \ |
115 sitescripts/extensions/test \ | 115 sitescripts/extensions/test \ |
116 sitescripts/subscriptions/test \ | 116 sitescripts/subscriptions/test \ |
117 sitescripts/reports/tests \ | 117 sitescripts/reports/tests \ |
118 tests | 118 tests |
119 flake8 sitescripts multiplexer.py multiplexer.fcgi | 119 flake8 sitescripts multiplexer.py multiplexer.fcgi |
OLD | NEW |