home / docs / sections

sections: contributing:contributing-formatting

This data as json

id page ref title content breadcrumbs references
contributing:contributing-formatting contributing contributing-formatting Code formatting Datasette uses opinionated code formatters: Black for Python and Prettier for JavaScript. These formatters are enforced by Datasette's continuous integration: if a commit includes Python or JavaScript code that does not match the style enforced by those tools, the tests will fail. When developing locally, you can verify and correct the formatting of your code using these tools. If you are using Just the quickest way to run these is like so: just black just prettier Or run both at the same time: just format ["Contributing"] [{"href": "https://github.com/psf/black", "label": "Black"}, {"href": "https://prettier.io/", "label": "Prettier"}, {"href": "https://github.com/casey/just", "label": "Just"}]
Powered by Datasette · Queries took 2.013ms