diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 16:03:42 +0000 |
commit | 66cec45960ce1d9c794e9399de15c138acb18aed (patch) | |
tree | 59cd19d69e9d56b7989b080da7c20ef1a3fe2a5a /ansible_collections/sensu/sensu_go/.flake8 | |
parent | Initial commit. (diff) | |
download | ansible-upstream.tar.xz ansible-upstream.zip |
Adding upstream version 7.3.0+dfsg.upstream/7.3.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/sensu/sensu_go/.flake8')
-rw-r--r-- | ansible_collections/sensu/sensu_go/.flake8 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ansible_collections/sensu/sensu_go/.flake8 b/ansible_collections/sensu/sensu_go/.flake8 new file mode 100644 index 00000000..c54d5453 --- /dev/null +++ b/ansible_collections/sensu/sensu_go/.flake8 @@ -0,0 +1,22 @@ +# This configuration mirrors the configuration that is used when linting +# collections on import into Ansible Galaxy. + +# TODO(@tadeboro): Some of our lines are almost twice the optimal reading +# length of 60-80 chars. It would be great to get line lengths down to 79, but +# this is not feasible at the moment since we have cca. 300 lines that are +# longer. What we need is a way of preventing new long lines of getting into +# the codebase, which means running flake8 with stricter rules on changed +# lines only. + +[flake8] +max-line-length = 144 +max-doc-length = 92 + +exclude = + # ansible-test creates all sorts of temporary stuff that we do not care + # about. + tests/output + +per-file-ignores = + # Modules have their imports listed after the metadata. + plugins/modules/*.py:E402 |