6 Commits
Author SHA1 Message Date
d379a0c363 [AGPT-571] Integrate PyRight (#141)
Integrating PyRight project-based code-linting. This will allow us to detect:
* Misuse of async functions.
* Misuse of optional type and other annotated types (currently disabled)
* Wrong usage of pydantic and prisma model.
* Wrong usage of third-party library.
* Use of undeclared field
* Use of uninstalled third-party library (which will prompt LLM to add the requirement list)

Known trade-off:

Setting-up PyRight requires building a full-project (generate the Prisma model code, installing 3rd-party library, compiling the function with the object dependency) this slows down the code-validation during the code-validation step.

---------

Co-authored-by: majdyz <[email protected]>
Co-authored-by: SwiftyOS <[email protected]>
2024-03-22 16:51:47 +04:00
Zamil Majdyandmajdyz b93f0f6579 [AGPT-533] Auto fix Optional type and missing imports on DB schemas (model & enum), Python types (#124)
* [AGPT-533] Fix Optional type handling, add default None value

* Add auto fix prisma models and enums

* Make test happy

* Make test happy

* Replace typing list with the original typing list

* Revert prevCallId

* Revert prevCallId

* Add more auto imports

* Fix gen_test

---------

Co-authored-by: majdyz <[email protected]>
2024-03-18 15:17:09 +04:00
SwiftyOS 4a662d6125 Update ruff config 2024-03-04 14:14:03 +01:00
majdyz 6da1da0cb0 style fixes by ruff 2024-02-27 18:17:25 +00:00
majdyz ad979a1cd9 Propagate DB changes, Fix broken APIs, Add more API tests 2024-02-27 22:14:47 +04:00
SwiftyOS 928a0e6234 removed old code 2024-02-22 10:37:06 +01:00