Commit Graph

150 Commits

Author SHA1 Message Date
Sebastián Ramírez 483bce3ae1
⬆️ Upgrade to MkDocs Material 5 and update docs scripts (#1225)
* ⬆️ Upgrade mkdocs.yml configs for MkDocs Material 5

*  Update docs.py to always update mkdocs.yml

* 🌐 Update mkdocs.yml for translations

* 🔧 Update MkDocs config

*  Add tabs for alternative options

* ⬆️ Update termynal setup with new CSS classes

* 🔧 Sync / Update mkdocs.yml for languages
2020-04-08 06:25:01 +02:00
duganchen d96223460b
📝 Add an example of setting up a test database (#1144)
* Add an example of setting up a test database.

* 📝 Add/update docs for testing a DB with dependency overrides

* 🔧 Update test script, remove line removing test file as it is removed during testing

*  Update testing coverage pragma

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-04-05 13:53:09 +02:00
Sebastián Ramírez 06eaa32bf0
🔧 Update docs script to make sure languages are always sorted (#1189) 2020-03-30 20:41:50 +02:00
Sebastián Ramírez 459f0e11e5
🏁 Update Windows development environment and tests (#1179)
* 🏁 Fix ./scripts/docs.py encoding for Windows

* 🔥 Remove ujson from tests as it prevents Windows development

It's still tested by Starlette anyway

* 📝 Update development instructions for Windows

* 🎨 Update format for WSGIMiddleware example

*  Update tests to run on Windows
2020-03-29 17:04:04 +02:00
Sebastián Ramírez 7625e1e386
📝 Update and simplify translations docs (#1171) 2020-03-27 10:20:39 +01:00
Camila Gutierrez c13b54ad0e
🏁 Change docs address to localhost for Windows (#1169) 2020-03-26 22:22:34 +01:00
Sebastián Ramírez 6205935323
Add support for docs translations (#1168)
* 🌐 Refactor file structure to support internationalization

*  Update tests changed after i18n

* 🔀 Merge Typer style from master

* 🔧 Update MkConfig with Typer-styles

* 🎨 Format mkdocs.yml with cannonical form

* 🎨 Format mkdocs.yml

* 🔧 Update MkDocs config

*  Add docs translation scripts dependencies

*  Add Typer scripts to handle translations

*  Add missing translation snippet to include

*  Update contributing docs, add docs for translations

* 🙈 Add docs_build to gitignore

* 🔧 Update scripts with new locations and docs scripts

* 👷 Update docs deploy action with translations

* 📝 Add note about languages not supported in the theme

*  Add first translation, for Spanish
2020-03-26 20:09:53 +01:00
Taneli Hukkinen 1da8d3f1e6
🔧 Move all mypy configurations to configuration file (#987) 2020-02-27 21:03:03 +01:00
Sebastián Ramírez 9573130630
Lint first in tests, to error out faster (#948) 2020-02-04 05:41:42 +01:00
Sebastián Ramírez e5d7878856
Use venv with Flit for local development, instead of requiring Flit and Pipenv (#877) 2020-01-17 09:51:03 +01:00
Sebastián Ramírez 7b3319ddab
✏️ Tweak typos and configs (#837) 2020-01-08 23:25:29 +01:00
Sebastián Ramírez dcc1e1bcf8
♻️ Refine internal type declarations and logic around them (#338) 2019-06-27 20:51:17 +02:00
Sebastián Ramírez a33c299fd7 🔧 Add format-imports script 2019-06-13 18:38:49 +02:00
Sebastián Ramírez fcaff64646
🔧 Separate format and lint scripts (#232) 2019-05-15 22:13:06 +04:00
Sebastián Ramírez 95475aaa9c 🔥 Remove Python version extraction in tests, no longer used 2019-05-15 18:33:13 +04:00
zamiramir 7a8b054a12 🎨 Reenable Black --check for Python 3.7 (#229)
Reenabled Black --check for python 3.7, issue is fixed.
see https://github.com/ambv/black/issues/494
2019-05-15 18:29:36 +04:00
Sebastián Ramírez 5f13b53ea5 🔧 Enable FastAPI releases bot in main Gitter channel 2019-05-11 19:44:39 +04:00
Sebastián Ramírez 6ff89284c5
Add FastAPI releases bot for Gitter (#189)
* 🔥 Remove development util script

* 🎨 Reformat release notes with markdown-only code (no HTML)

*  Add FastAPI releases bot for Gitter
2019-04-27 20:02:32 +04:00
Sebastián Ramírez ffc4c716c0
🚀 Make Flit publish from CI (#170) 2019-04-20 22:09:35 +04:00
Sebastián Ramírez 907e613ff2 🔧 Update test-conv-html.sh to allow extra params 2019-04-05 14:29:36 +04:00
Sebastián Ramírez 108c2f3c0e
⬆️ Update Pydantic to 0.21.0 (#90)
* ⬆️ Upgrade Pydantic and others (isort), update docs after changes by isort

* 🎨 Format with newest isort, update type hints in jsonable_encoder

* 🔧 Update test script, to avoid Pydantic type errors

* ⬆️ Update pyproject.toml with latest Pydantic
2019-03-21 18:40:29 +04:00
euri10 e8472ebbd1 🔧 Make scripts executable (#76) 2019-03-16 21:19:13 +04:00
euri10 11c755bee3 Add tags parameter to app.include_router (#55) 2019-03-16 21:15:08 +04:00
Sebastián Ramírez 1112ac7538
⬆️ Update imports and scripts for new isort versions (#75) 2019-03-09 15:04:13 +04:00
Sebastián Ramírez 2caca42b9e
👷 Trigger Docker images build on Travis (#65) 2019-03-04 11:12:21 +04:00
Sebastián Ramírez 955e9fcb31
Update fix SQLAlchemy support with ORM (#30)
 SQLAlchemy ORM support

Improved jsonable_encoder with SQLAlchemy support, tests running with SQLite, improved and updated SQL docs

*  Add SQLAlchemy to development dependencies (not required for using FastAPI)

*  Add sqlalchemy to testing dependencies (not required to use FastAPI)
2019-02-12 23:02:21 +04:00
euri10 32438c85f6 Using pydantic custom encoders (#21)
Add support for Pydantic custom JSON encoders.
2019-02-08 16:06:19 +04:00
Sebastián Ramírez 23ef570bf6 Add test-cov-html script for local coverage
analysis and debugging
2018-12-22 07:42:24 +04:00
Sebastián Ramírez 0a65c41909 📝 Move tutorial src files to top level docs 2018-12-21 16:22:33 +04:00
Sebastián Ramírez 7da9625505 💚 Revert to flit install and re-format
As it has shown to be more reliable, and closer to final user environments
2018-12-18 22:36:04 +04:00
Sebastián Ramírez bcb967f98a 💚 Try fixing Travis, again... 2018-12-18 22:22:07 +04:00
Sebastián Ramírez 343ecb7669 💚 Use pipenv in Travis 2018-12-18 22:08:47 +04:00
Sebastián Ramírez e9f2a3c291 Update tutorial renamer to exclude files 2018-12-18 21:59:51 +04:00
Sebastián Ramírez 00e2e544c7 ♻️ Re-format tutorials, files names and tests
for tutorial files
2018-12-18 21:59:06 +04:00
Sebastián Ramírez 786c392bd5 💚 Fix Netlify build with pipenv 2018-12-17 18:56:48 +04:00
Sebastián Ramírez acc15230ea Update query tests, application type checks
and temporarily disable coverage fail, to allow publishing docs from Travis
2018-12-17 15:48:38 +04:00
Sebastián Ramírez a84960b13d 💚 Update Netlify docs build, try 78 2018-12-15 22:16:54 +04:00
Sebastián Ramírez 10134803a9 💚 Call docs build with Python module 2018-12-15 22:10:12 +04:00
Sebastián Ramírez 8d29a28f82 📝 Update docs, stubs and structure 2018-12-15 21:52:28 +04:00
Sebastián Ramírez f8f91a1dbb 📝 Add stub for extra Starlette 2018-12-15 21:45:57 +04:00
Sebastián Ramírez 2b64dc699e Update tutorial src renamer to use sub-directories 2018-12-14 14:27:52 +04:00
Sebastián Ramírez ec7bec32ba 🎨 Update renamer script 2018-12-14 10:06:20 +04:00
Sebastián Ramírez d9fbead646 🎨 Remove un-used imports, add auto-flake 2018-12-13 21:48:03 +04:00
Sebastián Ramírez f539217b5b 🚚 Script to auto-resort tutorial src files 2018-12-13 21:26:30 +04:00
Sebastián Ramírez 211930c108 📝 Fix live docs script 2018-12-12 18:28:24 +04:00
Sebastián Ramírez b986671800 💚 Try again with Netlify, different settings 2018-12-10 08:22:06 +04:00
Sebastián Ramírez 61fdebabc9 💚 Add build docs script 2018-12-10 08:08:08 +04:00
Sebastián Ramírez 73307e9994 📝 Add docs, set up mkdocs 2018-12-10 07:59:18 +04:00
Sebastián Ramírez ea8b1a50f1 Error out when tests fail 2018-12-09 19:56:37 +04:00
Sebastián Ramírez 12dbc17583 👷 Add scripts, stolen from Starlette 2018-12-08 11:58:24 +04:00