-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Documentation's Contributing to Pydantic section says that basically once you've made your changes you run make format and then make. make invokes Makefile's all rule that includes tests with coverage report, linting and mypy recipes. Although you are safe to not breaking style guides and tests locally, you still can:
- Break
rstfiles, so thatsphinxwill fail -- you'll find out once PR is open andTravis CIcheck is done (this is what I did in my very first PR) - Slow down
pydanticwith the changes made -- you won't find out withoutmake benchmark-all(great performance mentioned as one of thepydantic's advantages inRationalesection, so it's important, isn't it?)
I think there are a couple of ways to fix that:
- Add new
Makefilerule calledfull-check:
.PHONY: full-check
full-check: testcov lint mypy external-mypy docs benchmark-allThen add a short note to contributing section about it.
- Just add a note to contributing section to raise awareness about spinx build and performance check.
A small improvement to Benchmarks section could also be done. It probably should say that random module used in benchmarking gives non-deterministic results and also many other factors (e.g. other processes running by the OS when benchmarking) may also affect the benchmark results, so they probably should be taken with a grain of salt.