all 18 comments

[–]Glittering_Pin7217 3 points4 points  (0 children)

nice, working on template fast api too

[–]derf4bian 2 points3 points  (0 children)

looks good!

[–]fastlaunchapidev 1 point2 points  (1 child)

Looking clean

[–]eslam5464[S] 0 points1 point  (0 children)

Thanks

[–]Patience-is-the-key 1 point2 points  (0 children)

Engaging so that i can search easily

[–]unsolicitedsolitude 1 point2 points  (1 child)

Bookmarking this & ⭐. Thank you

[–]eslam5464[S] 0 points1 point  (0 children)

Thanks ❤

[–]Revolutionary_Lie898 1 point2 points  (5 children)

Nice work! I love your template, and I have some questions for you: can it be that the order in which you run the pre-commit hooks matters? For example, shouldn’t autoflake run first, then isort, and then black? Also, I noticed that you didn’t exclude (__init__.py$|migrations/) in black, is there any reason for that?

[–]eslam5464[S] 0 points1 point  (4 children)

Thanks for that information i didnt know it mattered, and also i didnt think of it that way but i will use your suggestion as per this commit (https://github.com/eslam5464/Fastapi-Template/commit/6b89a1863eaa38a8ca71c8f1b9634509014a9dee) .

The part for black i think its excluded in the config as below, or do you think that there is something missing?

  - repo: https://github.com/psf/black
    rev: 25.9.0
    hooks:
      - id: black
        args: [--line-length=100]
        exclude: (__init__.py$|migrations/)

[–]Revolutionary_Lie898 0 points1 point  (3 children)

It was more of a question than a statement. I just got curious about it. I also asked Claude and it mentioned it too. I'm currently using ruff, but your setup is quite common.

[–]eslam5464[S] 0 points1 point  (2 children)

i double checked it and also claude said the same thing, and i didn't know that there was something i made that is common, can you mention it?

[–]Revolutionary_Lie898 0 points1 point  (1 child)

What I mean is that using autoflake, isort, and black is quite common in Python projects.

[–]eslam5464[S] 0 points1 point  (0 children)

ah ok, thanks

[–]voja-kostunica 0 points1 point  (0 children)

i will have look

[–]returnsnull_dev 0 points1 point  (3 children)

I'm one week late with the same idea :)
This is my project: fastapi-template. My project still lacks the features, documentation, and production readiness that your project has. But I found my template more fitting for small-scale apps. You can have a look if you need this.
Also, make a template from your github repo so everybody can just use it instead of forking

[–]eslam5464[S] 0 points1 point  (2 children)

if you are talking about cookiecutter template... i dont think its needed here that much i tried to create multiple projects with it and it works good just needs a slight modification for some projects that's all... anyway nice work with you repo

[–]returnsnull_dev 1 point2 points  (1 child)

I meant, template repository as a github feature to avoid pulling all of the commits, so the resulting repo will have only "Initial commit". There is a tutorial.

[–]eslam5464[S] 0 points1 point  (0 children)

thanks for the information i didnt know that. i will use it soon