Skip to content

Commit

Permalink
Merge branch 'feature/pycodestyle' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
myrdd committed Dec 18, 2017
2 parents 4333831 + a183506 commit 061b3f9
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 11 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ TSC := $(abspath $(node_modules_dir))/.bin/tsc
TSLINT := $(abspath $(node_modules_dir))/.bin/tslint

# python
PY_PEP8 := $(abspath $(python_env_dir))/bin/pep8
PY_PYCODESTYLE := $(abspath $(python_env_dir))/bin/pycodestyle
PY_MOZPROFILE := $(abspath $(python_env_dir))/bin/mozprofile
PY_MOZRUNNER := $(abspath $(python_env_dir))/bin/mozrunner

Expand Down Expand Up @@ -447,11 +447,11 @@ lint: lint-coffee lint-js lint-python lint-ts lint-xpi
.PHONY: lint-coffee lint-js lint-python lint-ts lint-xpi
lint-coffee: coffeelint
lint-js: eslint
lint-python: pep8
lint-python: pycodestyle
lint-ts: ts tslint
lint-xpi: addons-linter

.PHONY: addons-linter coffeelint eslint pep8 ts tslint
.PHONY: addons-linter coffeelint eslint pycodestyle ts tslint
addons-linter: nightly-xpi node-packages
@echo $@
@$(ADDONS_LINTER) $(xpi_file__nightly)
Expand All @@ -465,10 +465,10 @@ eslint: node-packages
@$(ESLINT) tests/xpcshell/
@$(ESLINT) tests/helper-addons/
@$(ESLINT) gulpfile.js
pep8: python-packages
pycodestyle: python-packages
@echo $@
@$(PY_PEP8) scripts/
@$(PY_PEP8) tests/marionette/
@$(PY_PYCODESTYLE) scripts/
@$(PY_PYCODESTYLE) tests/marionette/
ts: node-packages
@echo $@
@$(TSC)
Expand Down
2 changes: 1 addition & 1 deletion dev_env/python-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pep8
pycodestyle

firefox-puppeteer == 50
firefox-ui-harness == 1.3
Expand Down
1 change: 1 addition & 0 deletions scripts/check_gecko_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ def main():
print line
exit(code=1)


if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion tests/marionette/rp_puppeteer/tests/test_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_open_close(self):
else:
self.menu.close()
self.assertFalse(self.menu.is_open())
except:
except: # noqa
print "trigger: " + self.trigger
raise

Expand Down
1 change: 1 addition & 0 deletions tests/marionette/rp_ui_harness/runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,6 @@ def cli(args=None):
args=args
)


if __name__ == '__main__':
cli()
2 changes: 1 addition & 1 deletion tests/marionette/rp_ui_harness/utils/redirections.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def for_each_possible_redirection_scenario(callback, uri_type):
def callback_wrapper(uris, info):
try:
callback(uris, info=info)
except:
except: # noqa
print "info: " + str(info)
print "uris: " + str(uris)
raise
Expand Down
2 changes: 1 addition & 1 deletion tests/marionette/tests-quick/settings/test_checkboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _compare(self, checkbox, pref, expected_pref_value, inverse=False):
self.assertEqual(cb_value, pref_value)
else:
self.assertNotEqual(cb_value, pref_value)
except:
except: # noqa
print ("pref name: {}, checkbox: {}, pref: {}"
.format(pref["name"], str(cb_value), str(pref_value)))
raise
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def maybe_test((test_url, _, dest_url), info):
try:
redirections.for_each_possible_redirection_scenario(maybe_test,
"link")
except:
except: # noqa
print "test variant: " + str(args[0])
raise

Expand Down

0 comments on commit 061b3f9

Please sign in to comment.