summaryrefslogtreecommitdiff
path: root/hacking
Commit message (Collapse)AuthorAgeFilesLines
* New metadata 1.0 (#22587)Toshio Kuratomi2017-03-142-27/+134
| | | | | | | | | | | | | | | | Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
* Stricter module documentation validation (#22353)John R Barker2017-03-131-4/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Raise the bar for module `DOCUMENTAION` This validator update was used to find the issues in https://github.com/ansible/ansible/pull/22297/files **Validation** * Updated Validation and docs to enforce more (items fixed in https://github.com/ansible/ansible/pull/22297/files) * Use `suboptions` to document complex options * Validate module name * Validate deprecated modules have correct ANSIBLE_METADATA **Module Documentation Generation** * Document `suboptions:` Example https://gist.github.com/gundalow/4bdc3669d696268328ccc18528cc6718 * Tidy up HTML generation (valid HTML, no empty lists, etc) **Documentation** * Clarify the steps for deprecating a module * Use correct RST headings * Document `suboptions:` (options) * Document `contains:` (returns) **Details** The aim is to get this (and corresponding module updates) complete by the time `devel` becomes `2.4`, as this allows us to raise the bar for new modules Example `suboptions` https://gist.github.com/gundalow/4bdc3669d696268328ccc18528cc6718 The aim is to get this PR integrated into `devel` *before* we branch `stable-2.3`, this will allows us to: * Raise the bar for new modules in 2.4 * Ensure the generated module documentation for 2.3 and higher is improved, important as we will be doing versioned docs moving forward.
* Add `test/runner` to $PATH in `hacking/env-setup`. (#22387)Matt Clay2017-03-071-1/+1
|
* made module notes render nicer on docsiteBrian Coca2017-02-241-1/+2
|
* Legacy pep8 clean fixes for contrib and hacking (#21081)Matt Martz2017-02-072-4/+14
|
* Update test-module (#20737)Allan2017-01-311-2/+1
| | | | | | | | | | | | | | | | | | * Update test-module Ensuring invoke is assigned Traceback (most recent call last): File "ansible/hacking/test-module", line 267, in <module> main() File "ansible/hacking/test-module", line 263, in main runtest(modfile, argspath, modname, module_style, interpreters) File "ansible/hacking/test-module", line 207, in runtest invoke = "%s%s" % (invoke, modfile) UnboundLocalError: local variable 'invoke' referenced before assignment * Update test-module Made the change to only require a single if, making the function more 'DRY'.
* PEP 8 indent cleanup. (#20800)Matt Clay2017-01-291-17/+17
| | | | | | | | * PEP 8 E121 cleanup. * PEP 8 E126 cleanup. * PEP 8 E122 cleanup.
* PEP 8 cleanup. (#20789)Matt Clay2017-01-281-1/+1
| | | | | | | * PEP 8 E703 cleanup. * PEP 8 E701 cleanup. * PEP 8 E711 cleanup. * PEP 8 W191 and E101 cleanup.
* PEP 8 whitespace cleanup. (#20783)Matt Clay2017-01-271-4/+4
| | | | | | * PEP 8 E271 whitespace cleanup. * PEP 8 W293 whitespace cleanup. * Fix whitespace issue from recent PR.
* Fix infrequent PEP 8 issues.Matt Clay2017-01-271-1/+1
|
* minor cleanupsBrian Coca2017-01-191-16/+7
| | | | | removed redundant print/exits removed unused import and var
* Doc module meta grammar fixes (#20446)Adam Johnson2017-01-191-2/+2
| | | | * Remove unnecessary 'the' * End sentences with a period
* Use the python used with test-module to run modules (#19591)Will Thames2017-01-171-31/+52
| | | | | | | | | | | * Use ansible_python_interpreter to run modules Use ansible_python_interpreter to run modules if `-I ansible_python_interpreter` is set. Remove unused default from `-I` help text. * Update test-module to pep8 standards
* Switch tests to pytest and ansible-test.Matt Clay2017-01-111-1/+1
| | | | | | | - Replace nose usage with pytest. - Remove legacy Shippable integration.sh. - Update Makefile to use pytest and ansible-test. - Convert most yield unit tests to pytest parametrize.
* Doc module meta (#20093)Brian Coca2017-01-101-5/+1
| | | | | | | | | | | | * updated module docs to reflect unification/meta * new doc page * also remove module refs to old core/extra * Update modules_support.rst Light edit.
* show status/support in tocBrian Coca2017-01-101-1/+1
|
* Fix code-blocks to use correct syntax highlightingToshio Kuratomi2017-01-081-1/+1
|
* added symbol conversion to deprecatedBrian Coca2017-01-051-1/+1
| | | | fixes #19697
* Whitelist the hacking/cherrypick script's use of python3Toshio Kuratomi2017-01-051-1/+1
|
* Add initial script to aid in cherrypicking from devel to stable-2.2Toshio Kuratomi2017-01-051-0/+52
|
* Update the module path from the hacking documentation (#19683)Lujeni2016-12-261-1/+1
| | | - New path since the modules merge
* many doc fixesBrian Coca2016-12-221-12/+22
| | | | | removed a bunch of warnings made nicer formatting of new module info
* Correct type-o on support statementSam Doran2016-12-151-1/+1
|
* Remove obsolete files and instructions. (#19079)Matt Clay2016-12-091-57/+0
| | | | | * Remove obsolete `unify_repos.sh` script. * Remove submodule update after checkout reference.
* Fix differences with devel.Matt Clay2016-12-081-4/+5
|
* quick and dirty module doc updates (#18944)Matt Davis2016-12-082-22/+15
| | | clean up core/extras, plumb in basic metadata display
* add metadata to doc support (#18802)Matt Davis2016-12-081-1/+1
| | | | fix broken module docs change doc AST id extraction to use == instead of in
* Fix compile errors in scripts.Matt Clay2016-12-081-1/+1
|
* Additional reports (#18779)Toshio Kuratomi2016-12-081-14/+69
| | | | | * Additional reports * Fix default status to be a list
* fix docs on related to remove of core/extrasAdrian Likins2016-12-081-2/+4
|
* Update the metadata tool (#18765)Toshio Kuratomi2016-12-061-9/+18
| | | | * Latest spreadsheet version uses different fields for support. * Format the metadata to be a little nicer (multiple lines)
* Update for latest spreadsheet fieldsToshio Kuratomi2016-12-051-3/+9
|
* Update metadata for the rename of curated to committerToshio Kuratomi2016-12-051-2/+3
|
* yes, im using bashismsBrian Coca2016-12-011-1/+1
|
* dont skip github modules...Brian Coca2016-11-301-1/+1
|
* now also unifies plugins in same dir structureBrian Coca2016-11-301-0/+21
|
* Add a tool to work with module metadata (#18488)Toshio Kuratomi2016-11-141-0/+510
| | | | | | * Add a tool to work with module metadata * Don't hardcode async_wrapper
* Fix indentation of multiline descriptionsToshio Kuratomi2016-11-021-1/+1
|
* Clean up shebangs for various files.Matt Clay2016-11-022-3/+3
| | | | | | | | | | | | | | | | | | | - 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.
* keep list as list in synopsisBrian Coca2016-11-011-1/+1
|
* Fish hacking setup fix (#18084)Sam Doran2016-10-241-10/+9
| | | | | | | | | | | | | | | | | * Remove old egg-info files before creating new ones Currently, setup.py generates egg files then they are deleted. This change fixes this behavior and matches that in env-setup. * Do not try to move ansible*egg-info to lib/ setup.py creates the ansible.egg-info in lib/ so this step is unnecessary. Matches env-setup behavior. * Better test for number of arguments in argv This prevents an erronous error message from being thrown since set -q returns an error code with the number of variables not defined, resulting in a non-zero exit if no arguments are passed. Indent case statement within switch statement.
* test-module _ansible_selinux_special_fs arg addedAdrian Likins2016-10-231-0/+4
| | | | | modules need to have _ansible_selinux_special_fs passed in as an arg, so add the default to the args.
* added script to unify reposBrian Coca2016-10-031-0/+35
| | | | in case i forget how to do this, can be deleted afterwards
* gen_distribution_version_testcase.py should fail if ansible run fails (#17693)cinerama702016-09-261-1/+10
| | | | | | Currently, "ansible localhost -m setup" can fail silently during the run of gen_distribution_version_testcase.py, resulting in incorrect output. Use check_output() rather than communicate() and handle the exception if we get a nonzero return value.
* Add os_family to test_distribution_version (#17620)cinerama702016-09-171-1/+1
| | | | | | | | | | | As suggested in feedback on https://github.com/ansible/ansible/pull/17575, add os_family to test_distribution_version. Add the correct os_family to the existing testcase data entries. Also add os_family to the output of gen_distribution_version_testcase.py so any new generated entries will contain this data.
* Move uses of to_bytes, to_text, to_native to use the module_utils version ↵Toshio Kuratomi2016-09-061-2/+3
| | | | | | | | (#17423) We couldn't copy to_unicode, to_bytes, to_str into module_utils because of licensing. So once created it we had two sets of functions that did the same things but had different implementations. To remedy that, this change removes the ansible.utils.unicode versions of those functions.
* Add detection of python3 to hacking/env-setup (#17357)Michael Scherer2016-09-021-2/+5
| | | People can still override the detection using PYTHON_BIN
* Merge pull request #16316 from alikins/alikins_docsite_makescottb2016-08-191-1/+1
|\ | | | | Fewer deps for 'make webdocs' from top level
| * Fewer deps for 'make webdocs' from top levelAdrian Likins2016-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | Previously it also built the MANPAGES target requiring asciidoc and libxml, before starting a 'make docs' in docsite. Also change the #! line in hacking/dump_playbook_attributes.py to not specify python2... yet.
* | force deletion of .pyc files (#17109)Josh Smift2016-08-171-2/+2
| |