Skip to content

🚨 Enable ARG001 to prevent unused arguments#1152

Merged
tiangolo merged 2 commits intofastapi:masterfrom
patrick91:feature/remove-unused-arguments
Apr 5, 2024
Merged

🚨 Enable ARG001 to prevent unused arguments#1152
tiangolo merged 2 commits intofastapi:masterfrom
patrick91:feature/remove-unused-arguments

Conversation

@patrick91
Copy link
Contributor

I noticed in some places we have unused arguments (especially db in tests). I've
added the ARG001 rule to prevent that 😊

@patrick91 patrick91 changed the title 🚨 Enable ARG001 to prevent unused imports 🚨 Enable ARG001 to prevent unused arguments Apr 4, 2024
@patrick91 patrick91 force-pushed the feature/remove-unused-arguments branch from 3db384f to 3c3cde1 Compare April 4, 2024 09:27
@patrick91 patrick91 marked this pull request as ready for review April 4, 2024 09:31
@tiangolo tiangolo merged commit dcebcca into fastapi:master Apr 5, 2024
@tiangolo
Copy link
Member

tiangolo commented Apr 5, 2024

Nice, I like it, thanks! 🚀

gusevyaroslove pushed a commit to gusevyaroslove/fastapi-template that referenced this pull request Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants