Adam Johnson

Results 593 comments of Adam Johnson

> I wanted to ask you something about squashing commits. If I understand correctly, when I squash the latest 8 commits into one, the resulting commit message will be the...

> * There's the [`--no-startup`](https://docs.djangoproject.com/en/5.0/ref/django-admin/#cmdoption-shell-nostartup) option. I noticed that when using this option the auto-imports are still available. I was thinking that `--no-startup` should also mean "no auto imports". What...

Thanks, Carlton, but the problem here was me :) (Now, to fix my book...)

No wait, I’m not crazy. `pre-commit run eslint -a` fails on `main` if you haven’t run `npm install`. Somehow the way that ESLint loads the configuration makes it use `node_modules`...

Thanks David. I made a bug report to ESLint: https://github.com/eslint/eslint/issues/18465

Thanks @sritchie . I think the script is probably too much extra work for Django, where pre-commit is only one option to run ESLint. For one client project using ESLint,...

Happy to help adding links/RSS feeds for great content. I’ve been approving feeds for the [community blog posts feed](https://www.djangoproject.com/community/) for a while (unfortunately [broken](https://github.com/django/djangoproject.com/issues/1137) for a year). That is a...

I think the problem in this case is that we have `Combinable.__rsub__` (and other `__r*__` variants) typed to take a numeric only. We are missing it taking `datetime`, `date`, `timedelta`,...

From diving through the history, it seems we always supported `datetime` in `Combinable.__radd__` but not `__rsub__`, since 2f7fac2eaf87fe1e50d635ab14bcbe6c475dabc8. Weird.

They are produced by the stubtest tool. Read the relevant part of the contributing guide and try run it yourself locally.