Skip to content

Harry-Lees/flake8-fastapi-route-case

Repository files navigation

Flake8 FastAPI Route Case

A Flake8 FastAPI plugin to ensure all FastAPI routes follow the same case.

Rationale

In a project, you may have many FastAPI endpoints, this plugin will ensure all FastAPI routes follow the same case so you don't end up with mismatched case.

@router.get("/users/user_info")
def get_user_info():
    ...

# should be /users/user_info to follow naming convention
@router.post("/users/userInfo")
def post_user_info():
    ...

About

A flake8 plugin to ensure all FastAPI routes use the same case

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages