| OLD | NEW |
| 1 # This file is part of Adblock Plus <https://adblockplus.org/>, | 1 # This file is part of Adblock Plus <https://adblockplus.org/>, |
| 2 # Copyright (C) 2006-2016 Eyeo GmbH | 2 # Copyright (C) 2006-2016 Eyeo GmbH |
| 3 # | 3 # |
| 4 # Adblock Plus is free software: you can redistribute it and/or modify | 4 # Adblock Plus is free software: you can redistribute it and/or modify |
| 5 # it under the terms of the GNU General Public License version 3 as | 5 # it under the terms of the GNU General Public License version 3 as |
| 6 # published by the Free Software Foundation. | 6 # published by the Free Software Foundation. |
| 7 # | 7 # |
| 8 # Adblock Plus is distributed in the hope that it will be useful, | 8 # Adblock Plus is distributed in the hope that it will be useful, |
| 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of | 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 # GNU General Public License for more details. | 11 # GNU General Public License for more details. |
| 12 # | 12 # |
| 13 # You should have received a copy of the GNU General Public License | 13 # You should have received a copy of the GNU General Public License |
| 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. | 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
| 15 from __future__ import print_function | 16 from __future__ import print_function |
| 16 | 17 |
| 17 import os | 18 import os |
| 18 import glob | 19 import glob |
| 19 import tokenize | 20 import tokenize |
| 20 import sys | 21 import sys |
| 21 import re | 22 import re |
| 22 | 23 |
| 23 try: | 24 try: |
| 24 from StringIO import StringIO | 25 from StringIO import StringIO |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 else: | 109 else: |
| 109 print('unexpected ' + error) | 110 print('unexpected ' + error) |
| 110 | 111 |
| 111 failed = True | 112 failed = True |
| 112 | 113 |
| 113 if failed: | 114 if failed: |
| 114 sys.exit(1) | 115 sys.exit(1) |
| 115 | 116 |
| 116 | 117 |
| 117 setup( | 118 setup( |
| 118 name='flake8-abp', | 119 name='flake8-eyeo', |
| 119 version='0.1', | 120 version='0.1', |
| 120 py_modules=['flake8_abp'], | 121 py_modules=['flake8_eyeo'], |
| 121 entry_points={ | 122 entry_points={ |
| 122 'flake8.extension': [ | 123 'flake8.extension': [ |
| 123 'abp.A = flake8_abp:ASTChecker', | 124 'eyeo.A = flake8_eyeo:ASTChecker', |
| 124 'abp.A1 = flake8_abp:check_quotes', | 125 'eyeo.A1 = flake8_eyeo:check_quotes', |
| 125 'abp.A111 = flake8_abp:check_redundant_parenthesis', | 126 'eyeo.A111 = flake8_eyeo:check_redundant_parenthesis', |
| 126 'abp.A303 = flake8_abp:check_non_default_encoding', | 127 'eyeo.A303 = flake8_eyeo:check_non_default_encoding', |
| 127 ], | 128 ], |
| 128 }, | 129 }, |
| 129 cmdclass={'test': TestCommand} | 130 cmdclass={'test': TestCommand} |
| 130 ) | 131 ) |
| OLD | NEW |