-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LITE-29416: Adding general guidelines. Tech Stack + CI/CD flow
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
This article pretends to give some guideles on tech stack, code style and tools that Connect team considers usefull and easiest to get starting with extensions. | ||
|
||
|
||
## Tech Stack | ||
|
||
- ORM and db toolkit: SQLAlchemy | ||
- Database: PostgresSQL 11 | ||
- Web framework: FastAPI | ||
- Pagination: fastapi-pagination | ||
- Filtering and sorting: fastapi_filter | ||
- Api data representation: pydantic | ||
- Dependency managment: poetry | ||
- Docker for extension execution | ||
|
||
## Testing | ||
|
||
- PyTest | ||
- Factory boy: pytest-factoryboy | ||
- pytest-asyncio to test code that uses asyncio. | ||
|
||
|
||
## Code styling | ||
|
||
### [Flake8](https://flake8.pycqa.org/en/latest/) | ||
|
||
Next we show the list of all plugins that are included by default on template's project. | ||
|
||
* max-lines: 100 | ||
* max-cognitive-complexity: 15 | ||
* import-order-style = smarkets | ||
* flake8-bugbear | ||
* flake8-commas | ||
* flake8-future-import | ||
* flake8-import-order | ||
* flake8-broken-line | ||
* flake8-comprehensions | ||
* flake8-debugger | ||
* flake8-eradicate | ||
* flake8-string-format | ||
|
||
## CI/CD | ||
|
||
### Tests workflow | ||
|
||
By default, our bootstrap will create a github workflow with 4 jobs, 3 for backend tests, one per each one of this python versions: 3.8, 3.9, 3.10. And one more, in case it was added, to run frontend tests. | ||
|
||
## Another Tools | ||
|
||
[Connect-cli](https://github.com/cloudblue/connect-cli) | ||
[Docker compose](https://docs.docker.com/compose/) | ||
[Poetry](https://python-poetry.org/docs/basic-usage/) |