@@ -93,7 +93,7 @@ error_summary = true
9393# warn_return_any = True
9494# warn_unused_configs = True
9595# site-packages is here to help vscode mypy integration getting confused
96- exclude = " (build|dist|test/local-content|site-packages|~/.pyenv|examples/playbooks/collections|plugins/modules)"
96+ exclude = " (.config| build|dist|test/local-content|site-packages|~/.pyenv|examples/playbooks/collections|plugins/modules)"
9797# https://github.com/python/mypy/issues/12664
9898incremental = false
9999python_version = " 3.10"
@@ -122,7 +122,7 @@ bad-names = [
122122# pylint defaults + f,fh,v,id
123123good-names = [" i" , " j" , " k" , " Run" , " _" , " f" , " fh" , " v" , " id" , " T" ]
124124# Ignore as being generated:
125- ignore-paths = " ^src/ansiblelint/_version.*$"
125+ ignore-paths = " ^( src/ansiblelint/_version|.config/) .*$"
126126
127127[tool .pylint ."MESSAGES CONTROL" ]
128128disable = [
@@ -195,6 +195,7 @@ minversion = "4.6.6"
195195norecursedirs = [
196196 " *.egg" ,
197197 " .cache" ,
198+ " .config" ,
198199 " .eggs" ,
199200 " .git" ,
200201 " .github" ,
@@ -222,6 +223,7 @@ xfail_strict = true
222223
223224[tool .ruff ]
224225cache-dir = " ./.cache/.ruff"
226+ exclude = [" .config" ]
225227fix = true
226228# Same as Black.
227229line-length = 88
@@ -322,3 +324,27 @@ sort_table_keys = true
322324annotation-style = " line"
323325custom-compile-command = " tox run deps"
324326no-emit-package = [" ansible-core" , " pip" , " resolvelib" , " typing_extensions" , " uv" ]
327+
328+ [tool .vulture ]
329+ exclude = [
330+ " .eggs" ,
331+ " .tox" ,
332+ " build" ,
333+ " collections" ,
334+ " examples" ,
335+ " plugins" ,
336+ " test/local-content" ,
337+ " venv" ,
338+ " src/ansiblelint/_version.py"
339+ ]
340+ ignore_names = [
341+ " _ANSIBLE_ARGS" ,
342+ " __rich_console__" ,
343+ " fixture_*" ,
344+ " pytest_addoption" ,
345+ " pytest_collection_modifyitems" ,
346+ " pytest_configure" ,
347+ " side_effect" ,
348+ " test_*"
349+ ]
350+ paths = [" src" , " test" , " .config/vulture_whitelist.py" ]
0 commit comments