Fastapi: [QUESTION] Any consideration in configuring YAPF auto formatter or alternatives

Created on 18 Jun 2020  路  2Comments  路  Source: tiangolo/fastapi

First check

  • [x] I added a very descriptive title to this issue.
  • [x] I used the GitHub search to find a similar issue and didn't find it.
  • [x] I searched the FastAPI documentation, with the integrated search.
  • [x] I already searched in Google "How to X in FastAPI" and didn't find any information.
  • [x] I already read and followed all the tutorial in the docs and didn't find an answer.
  • [x] I already checked if it is not related to FastAPI but to Pydantic.
  • [x] I already checked if it is not related to FastAPI but to Swagger UI.
  • [x] I already checked if it is not related to FastAPI but to ReDoc.

Description

I configured my editor to use YAPF auto format buffer and whenever I save a python file, it formats the existing code. What formatter is the team using? If none, do you consider configuring YAPF or any other formatter for python?

answered question

Most helpful comment

You can check all the formatters in this script: https://github.com/tiangolo/fastapi/blob/master/scripts/format.sh

  • Black
  • Isort
  • Autoflake

All 2 comments

You can check all the formatters in this script: https://github.com/tiangolo/fastapi/blob/master/scripts/format.sh

  • Black
  • Isort
  • Autoflake

Assuming the original issue was solved, it will be automatically closed now. But feel free to add more comments or create new issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

danielgtaylor picture danielgtaylor  路  3Comments

kkinder picture kkinder  路  3Comments

scheung38 picture scheung38  路  3Comments

mr-bjerre picture mr-bjerre  路  3Comments

updatatoday picture updatatoday  路  3Comments