Commit Graph

7 Commits (c9fb054bc8b51a15d2c54f75dc58d3cf542b41bc)

Author SHA1 Message Date
Toshio Kuratomi 14c3b4d8e5 Move yaml loading functions from DataLoader into a utility module. 8 years ago
Dag Wieers 4efec414e7 test/: PEP8 compliancy (#24803)
* test/: PEP8 compliancy

- Make PEP8 compliant

* Python3 chokes on casting int to bytes (#24952)

But if we tell the formatter that the var is a number, it works
9 years ago
Matt Clay ac8842eee8 Fix unit test dirs to match code under test. 9 years ago
Matt Clay 8c270ac75f Add empty-init code-smell script. (#18406)
Also removed boilerplate from otherwise empty __init__.py files
which should not contain any code (checked by empty-init script).
9 years ago
Matt Clay 0d46805979 Clean up shebangs for various files.
- Remove shebangs from:
  - ini files
  - unit tests
  - module_utils
  - plugins
  - module_docs_fragments
  - non-executable Makefiles
- Change non-modules from '/usr/bin/python' to '/usr/bin/env python'.
- Change '/bin/env' to '/usr/bin/env'.

Also removed main functions from unit tests (since they no longer
have a shebang) and fixed a python 3 compatibility issue with
update_bundled.py so it does not need to specify a python 2 shebang.

A script was added to check for unexpected shebangs in files.
This script is run during CI on Shippable.
9 years ago
James Cammarata c56e3aabfb Clean up jsonify unit test with format to remove json lib differences 10 years ago
James Cammarata 7c049c3200 Fixing up jsonify and adding unit tests 10 years ago