mirror of
https://github.com/HackSoftware/Django-Styleguide.git
synced 2024-11-11 04:06:46 +03:00
Add a quick section about mypy
/ type annotations
This commit is contained in:
parent
e268fb5b00
commit
792ff9c056
14
README.md
14
README.md
|
@ -49,6 +49,8 @@ If you want to check an existing project showing most of the styleguide, [check
|
||||||
+ [Tasks](#tasks)
|
+ [Tasks](#tasks)
|
||||||
* [Periodic Tasks](#periodic-tasks)
|
* [Periodic Tasks](#periodic-tasks)
|
||||||
* [Configuration](#configuration-1)
|
* [Configuration](#configuration-1)
|
||||||
|
- [Misc](#misc)
|
||||||
|
* [mypy / type annotations](#mypy--type-annotations)
|
||||||
- [Inspiration](#inspiration)
|
- [Inspiration](#inspiration)
|
||||||
|
|
||||||
<!-- tocstop -->
|
<!-- tocstop -->
|
||||||
|
@ -1256,6 +1258,18 @@ Celery is a complex topic, so it's a good idea to invest time reading the docume
|
||||||
|
|
||||||
We constantly do that & find new things or find better approaches to our problems.
|
We constantly do that & find new things or find better approaches to our problems.
|
||||||
|
|
||||||
|
## Misc
|
||||||
|
|
||||||
|
### mypy / type annotations
|
||||||
|
|
||||||
|
About type annotations & using `mypy`, [this tweet](https://twitter.com/queroumavodka/status/1294789817071542272) resonates a lot with our philosophy.
|
||||||
|
|
||||||
|
We have projects where we enforce `mypy` on CI and are very strict with types.
|
||||||
|
|
||||||
|
We have projects where types are more loose.
|
||||||
|
|
||||||
|
Context is king here.
|
||||||
|
|
||||||
## Inspiration
|
## Inspiration
|
||||||
|
|
||||||
The way we do Django is inspired by the following things:
|
The way we do Django is inspired by the following things:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user