When using the --ignore-names-if-decorated-with, or any flag that is --ignore-<>-if-decorated-with, deadcode will still flag the functions as unused.
pyproject.toml
[tool.deadcode]
exclude = [".venv"]
ignore-names-if-decorated-with = ["@app.route"]
service.py
@app.route("/", methods=["POST"])
def post_tax_adder_customer():
pass
After running
