.tools/README.md
These tools help SDK Code Example developers' integration with internal docs tooling. This is mainly in the form of .doc_gen SOS metadata validation, with other tools as necessary.
SDK Code Examples tools team uses Python for our tools because of its cross-platform runtime and broad knowledge base.
flake8, black, pyyaml, yamale, and requests.
.tools/verify_python.py to ensure python tools are configured as expected.
.venv if the project needs packages beyond our standard library.
requirements.txt..tools/base-requirements.txt to the tool’s folder to seed requirements.txt if you like.pip freeze > requirements.txt to update the tool’s requirements.chmod a+x <script.py> in *nix).#!/usr/bin/env python3.__name__ == "__main__" check that delegates to a main function.logging to write diagnostics to the console.flake8 with overrides for Black default settings. Treat Warnings as errors.yaml).
yamale.datetime and always include a timezone (usually timezone.utc).encoding="utf-8-sig", as many .cs files have a BOM.Python 3.12:
Python 3.11:
Python 3.10:
Python 3.9:
Python 3.8
Python 3.9