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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]
15 putty-ignore =
16 sitescripts/__init__.py : A110
17 sitescripts/content_blocker_lists/bin/generate_lists.py : A107,A110,E501
18 sitescripts/crashes/web/submitCrash.py : A302,E501,E711,F401,N802,N806
19 sitescripts/crawler/bin/import_sites.py : A105,A110,A206,E501
20 sitescripts/crawler/web/crawler.py : A107,A108,A110,A206,E501
21 sitescripts/docs/bin/generate_docs.py : A110
22 sitescripts/extensions/bin/createNightlies.py : A102,A104,A107,A108,A109,A11 0,A302,E501,F401,F841,N802,N806,N812
23 sitescripts/extensions/bin/updateRecommendations.py : E501,N802
24 sitescripts/extensions/bin/updateUpdateManifests.py : A107,A110,A206,E501,N8 02,N806
25 sitescripts/extensions/utils.py : A107,A110,A206,A301,A302,E501,E711,F401,N8 02,N803,N805,N806
26 sitescripts/extensions/web/adblockbrowserUpdates.py : A107,A110,E501
27 sitescripts/extensions/web/downloads.py : A110,E501,F401
28 sitescripts/formmail/web/formmail.py : A301,E501,E713,N802
29 sitescripts/hg/bin/irchook.py : A104
30 sitescripts/hg/test/update_issues.py : N802
31 sitescripts/management/bin/generateHgAuth.py : A107,E501,E711
32 sitescripts/management/bin/generateNotifications.py : A110,A301,E501
33 sitescripts/management/bin/installChanges.py : A102,A107,A111,E501,E713,N802 ,N803,N806
34 sitescripts/management/bin/start_services.py : A107,A110,E501
35 sitescripts/notifications/parser.py : A101,A102,A107,A110,E501,E713
36 sitescripts/notifications/test/notification.py : A110,E501
37 sitescripts/notifications/test/parser.py : A107,A110
38 sitescripts/notifications/web/notification.py : A101,A107,A110,E501
39 sitescripts/reports/bin/mailDigests.py : A102,A104,A107,A201,A302,E501,E711, F401,N802,N806
40 sitescripts/reports/bin/parseNewReports.py : A107,A108,A112,A201,A206,A302,E 501,E711,F401,N802,N803,N806
41 sitescripts/reports/bin/processReports.py : E501,F401,N802,N806
42 sitescripts/reports/bin/removeOldReports.py : E501,N802
43 sitescripts/reports/bin/removeOldUsers.py : E501,N802
44 sitescripts/reports/bin/updateDigests.py : A201,A301,A302,E501,E713,F401,N80 2,N806
45 sitescripts/reports/bin/updateSubscriptionList.py : A302,E501,E711,N802
46 sitescripts/reports/utils.py : A206,A302,E501,E711,N802,N803,N806
47 sitescripts/reports/web/showDigest.py : A110,A206,A301,A302,E501,F401,N802,N 806
48 sitescripts/reports/web/showUser.py : A301,A302,E501,E711,N802
49 sitescripts/reports/web/submitReport.py : A301,A302,E501,F401,N802,N806
50 sitescripts/reports/web/updateReport.py : A111,A301,E501,E711,F401,N802,N806
51 sitescripts/send_installation_link/web/send_installation_link.py : A110
52 sitescripts/stats/bin/logprocessor.py : A101,A102,A104,A107,A110,A204,A206,A 301,A302,E501,E711,F401,N806
53 sitescripts/stats/bin/pagegenerator.py : A102,A104,A107,A110,A301,A302,E501, E711,F401,N806
54 sitescripts/stats/common.py : A107,A110,A112,E501
55 sitescripts/stats/countrycodes.py : A110,E501
56 sitescripts/stats/test/common.py : A107,A110,A112,A301,E501
57 sitescripts/stats/test/logprocessor.py : A101,A107,A110,A112,E501
58 sitescripts/submit_email/web/submit_email.py : E501
59 sitescripts/subscriptions/bin/generateReport.py : A104,A107,A201,A301,E501,E 713,F401,N802,N803,N806
60 sitescripts/subscriptions/bin/processTemplate.py : E501,E711,N802,N803,N806
61 sitescripts/subscriptions/bin/updateMalwareDomainsList.py : A107,A301,E501
62 sitescripts/subscriptions/bin/updateStatusPage.py : A101,A206,E501,E711,F401 ,F841,N802
63 sitescripts/subscriptions/bin/updateSubscriptionDownloads.py : A110,E501,F40 1
64 sitescripts/subscriptions/bin/updateSubscriptionDownloadsCVS.py : E501
65 sitescripts/subscriptions/combineSubscriptions.py : A102,A104,A105,A107,A110 ,A206,A301,A302,E501,E713
66 sitescripts/subscriptions/knownIssuesParser.py : A107,A201,E501,E711,E713,N8 02,N806
67 sitescripts/subscriptions/subscriptionParser.py : A102,A107,A110,A206,A302,E 501,E711,N802,N803,N805
68 sitescripts/subscriptions/web/fallback.py : A107,A206,A301,E501,F401,N802,N8 06
69 sitescripts/templateFilters.py : A107,A112,A206,E501,E711,F401,F841,N802,N80 3,N806
70 sitescripts/testpages/web/sitekey_frame.py : A107,A110
71 sitescripts/urlfixer/bin/forceDomains.py : A110,A203,A206,E501,N802
72 sitescripts/urlfixer/bin/topDomains.py : A110,A203,A206,E501,E711,F401,N802
73 sitescripts/urlfixer/web/submitData.py : A110,A206,E501,E711,F401,F841,N802, N806
74 sitescripts/utils.py : A107,A109,A110,A301,E501,E713,N801,N802,N806
75 sitescripts/web.py : A107,A110,E501,N802
76 multiplexer.py : A107,A110,E501
77
14 [testenv] 78 [testenv]
15 basepython=python2 79 basepython=python2
16 deps = 80 deps =
17 pytest 81 pytest
18 pytest-cov 82 pytest-cov
19 mock 83 mock
20 jinja2 84 jinja2
85 pysed
21 flake8 86 flake8
22 pysed 87 flake8-putty
88 pep8-naming
89 hg+https://hg.adblockplus.org/codingtools#egg=flake8-abp&subdirectory=flake8 -abp
23 90
24 setenv = 91 setenv =
25 SITESCRIPTS_CONFIG = ./.sitescripts.test 92 SITESCRIPTS_CONFIG = ./.sitescripts.test
26 whitelist_externals = cp 93 whitelist_externals = cp
27 commands = 94 commands =
28 cp .sitescripts.example .sitescripts.test 95 cp .sitescripts.example .sitescripts.test
29 pysed \ 96 pysed \
30 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \ 97 -r sitescripts\.(reports|testpages|crawler|urlfixer)\.web.* \
31 '' .sitescripts.test --write 98 '' .sitescripts.test --write
32 python ensure_dependencies.py 99 python ensure_dependencies.py
33 py.test \ 100 py.test \
34 --cov-config tox.ini --cov-report term --cov sitescripts \ 101 --cov-config tox.ini --cov-report term --cov sitescripts \
35 sitescripts/hg/test \ 102 sitescripts/hg/test \
36 sitescripts/notifications/test \ 103 sitescripts/notifications/test \
37 sitescripts/stats/test 104 sitescripts/stats/test
38 flake8 --ignore=E501,E711,E713,F401,F841 \ 105 flake8 sitescripts multiplexer.py multiplexer.fcgi
39 sitescripts multiplexer.py multiplexer.fcgi
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld