~/talk

Pre-commit hooks that catch Django problems early

Talkat Django Day Copenhagen 2026 · on Friday, 2026-10-02· [django, developer-experience]
slides:none on file

Covers concrete rules and failures: uses pre-commit hooks plus GitHub Actions as a CI safety net, runs hooks like pyupgrade, isort, flake8, Bandit, Django system checks and a make-migrations hook to catch missed migrations, stray PDB/debug statements, and hardcoded keys. Notes that pre-commit only sees staged files (exclude patterns must not start with a leading slash), hook order matters (formatters first, Django checks last), demo shows detection of a private key and debug breakpoint and GitHub Actions rejecting pushes that bypass --no-verify.

AI-written summary · about

  1. 0:00Introduction to pre-commits
  2. 1:28Common Django commit issues
  3. 2:33How pre-commits work
  4. 4:01Pre-commit files and setup
  5. 5:04Pre-commit visibility limits
  6. 6:54Excluding migration files
  7. 7:18Order of pre-commit hooks
  8. 8:00Types of pre-commit hooks
  9. 9:04Security keys in commits
  10. 10:11Passing files to pre-commits
  11. 10:56Django system checks
  12. 11:36Bypassing pre-commit hooks
  13. 12:18CI as second layer of security
  14. 13:03Repo vs local environment
  15. 13:44When not to use pre-commits
  16. 14:51Reducing commit chunk size
  17. 15:18Demo of pre-commit file
  18. 16:21Benefits of unified checks
  19. 17:23Default pre-commit hooks
  20. 18:06Security hooks like Bandit
  21. 19:08Installing pre-commits locally
  22. 20:20Git hooks integration
  23. 21:04Running pre-commits on all files
  24. 22:12CI pre-commits and GitHub actions
  25. 23:17Q&A session starts
  26. 24:00Caching pre-commits in CI
  27. 24:42Detecting missing migrations
  28. 25:46Local CI vs pre-commits
  29. 26:30Running test suites in pre-commits
  30. 27:33Handling exposed secrets in CI
  31. 28:16Pre-commits and security layers
  32. 29:18Alternatives to pre-commits
  33. 29:39Closing remarks and thanks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.