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

Side by Side Diff: tox.ini

Issue 29833582: Issue 4954 - Implement a downloader script supporting OAuth2 authentication/authorization (Closed)
Patch Set: Created July 18, 2018, 1:41 p.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 test from all files.
8 python_files = *.py 8 python_files = *.py
9 9
10 [run] 10 [run]
11 # Exclude tests from coverage. 11 # Exclude test 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,D2 00,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
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,N 806 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,N8 03,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,N8 02,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/oauth2dl/bin/oauth2dl.py: D413, E501, A301
Vasily Kuznetsov 2018/07/20 21:00:01 It would be better not to add exceptions for new c
Tudor Avram 2018/07/31 09:20:18 Done.
81 /sitescripts/oauth2dl/test/test_oauth2dl.py: A110
82 sitescripts/oauth2dl/utils/dummy_wsgi_app.py: A206
80 83
81 [testenv] 84 [testenv]
82 basepython=python2 85 basepython=python2
83 deps = 86 deps =
84 cryptography 87 cryptography
85 pytest 88 pytest
86 pytest-cov 89 pytest-cov
87 mock 90 mock
88 pytest-mock 91 pytest-mock
89 wsgi_intercept 92 wsgi_intercept
90 jinja2 93 jinja2
91 pycrypto 94 pycrypto
92 pysed 95 pysed
93 flake8 96 flake8
94 flake8-per-file-ignores>=0.4 97 flake8-per-file-ignores>=0.4
95 flake8-docstrings 98 flake8-docstrings
96 flake8-commas 99 flake8-commas
97 pep8-naming 100 pep8-naming
98 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo 101 hg+https://hg.adblockplus.org/codingtools#egg=flake8-eyeo&subdirectory=flake 8-eyeo
102 httplib2
Vasily Kuznetsov 2018/07/20 21:00:01 Do we need httplib2 for the new script? Do Google
Tudor Avram 2018/07/23 19:29:03 Yeah, the google library requires an `httplib2.Htt
Tudor Avram 2018/07/31 09:20:19 Done.
103 oauth2client
99 104
100 setenv = 105 setenv =
101 SITESCRIPTS_CONFIG = ./.sitescripts.test 106 SITESCRIPTS_CONFIG = ./.sitescripts.test
102 whitelist_externals = cp 107 whitelist_externals = cp
103 commands = 108 commands =
104 cp .sitescripts.example .sitescripts.test 109 cp .sitescripts.example .sitescripts.test
105 pysed \ 110 pysed \
106 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \ 111 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \
107 '' .sitescripts.test --write 112 '' .sitescripts.test --write
108 python ensure_dependencies.py 113 python ensure_dependencies.py
109 py.test \ 114 py.test \
110 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip ts \ 115 --cov-config tox.ini --cov-report html --cov-report term --cov sitescrip ts \
111 sitescripts/hg/test \ 116 sitescripts/hg/test \
112 sitescripts/notifications/test \ 117 sitescripts/notifications/test \
113 sitescripts/stats/test \ 118 sitescripts/stats/test \
114 sitescripts/formmail/test \ 119 sitescripts/formmail/test \
115 sitescripts/extensions/test \ 120 sitescripts/extensions/test \
116 sitescripts/subscriptions/test \ 121 sitescripts/subscriptions/test \
117 sitescripts/reports/tests \ 122 sitescripts/reports/tests \
123 sitescripts/oauth2dl/test/test_oauth2dl.py \
Vasily Kuznetsov 2018/07/20 21:00:01 Would be neater to keep consistent indentation.
Tudor Avram 2018/07/23 19:29:03 Acknowledged.
Tudor Avram 2018/07/31 09:20:18 Done.
118 tests 124 tests
119 flake8 sitescripts multiplexer.py multiplexer.fcgi 125 flake8 sitescripts multiplexer.py multiplexer.fcgi
OLDNEW
« sitescripts/oauth2dl/utils/dummy_wsgi_app.py ('K') | « sitescripts/oauth2dl/utils/dummy_wsgi_app.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld