summaryrefslogtreecommitdiffstats
path: root/ansible_collections/arista/eos/.flake8
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-05 16:18:41 +0000
commitb643c52cf29ce5bbab738b43290af3556efa1ca9 (patch)
tree21d5c53d7a9b696627a255777cefdf6f78968824 /ansible_collections/arista/eos/.flake8
parentReleasing progress-linux version 9.5.1+dfsg-1~progress7.99u1. (diff)
downloadansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.tar.xz
ansible-b643c52cf29ce5bbab738b43290af3556efa1ca9.zip
Merging upstream version 10.0.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/arista/eos/.flake8')
-rw-r--r--ansible_collections/arista/eos/.flake867
1 files changed, 67 insertions, 0 deletions
diff --git a/ansible_collections/arista/eos/.flake8 b/ansible_collections/arista/eos/.flake8
new file mode 100644
index 000000000..9a7fc1251
--- /dev/null
+++ b/ansible_collections/arista/eos/.flake8
@@ -0,0 +1,67 @@
+[flake8]
+
+builtins = _
+
+# Print the total number of errors:
+count = true
+
+# Don't even try to analyze these:
+extend-exclude =
+ # No need to traverse egg info dir
+ *.egg-info,
+ # tool cache dirs
+ *_cache
+ # project env vars
+ .env,
+ # GitHub configs
+ .github,
+ # Cache files of MyPy
+ .mypy_cache,
+ # Cache files of pytest
+ .pytest_cache,
+ # Temp dir of pytest-testmon
+ .tmontmp,
+ # Occasional virtualenv dir
+ .venv
+ # VS Code
+ .vscode,
+ # Temporary build dir
+ build,
+ # This contains sdists and wheels of ansible-navigator that we don't want to check
+ dist,
+ # Metadata of `pip wheel` cmd is autogenerated
+ pip-wheel-metadata,
+ # adjacent venv
+ venv
+ # ansible won't let me
+ __init__.py
+
+# IMPORTANT: avoid using ignore option, always use extend-ignore instead
+# Completely and unconditionally ignore the following errors:
+extend-ignore =
+ F841,
+ # line-length
+ E501,
+ # module level import not at top of file
+ E402
+
+# Accessibility/large fonts and PEP8 unfriendly:
+max-line-length = 120
+
+# Allow certain violations in certain files:
+# Please keep both sections of this list sorted, as it will be easier for others to find and add entries in the future
+per-file-ignores =
+ # The following ignores have been researched and should be considered permanent
+ # each should be preceeded with an explanation of each of the error codes
+ # If other ignores are added for a specific file in the section following this,
+ # these will need to be added to that line as well.
+
+
+ # S101: Allow the use of assert within the tests directory, since tests require it.
+ tests/**.py: S101
+
+ # The following were present during the initial implementation.
+ # They are expected to be fixed and unignored over time.
+
+# Count the number of occurrences of each error/warning code and print a report:
+statistics = true