Adam Johnson
Adam Johnson
I think I just got one of these patching errors. I just upgraded `requests` from `2.4.0` to `2.5.1`, and `cassette` from `0.3.2` to `0.3.6`. This triggered errors related to `cassette`...
Decorators don't always count as global or magic. For example in some tests on a project I work on we have [a function that returns a flask app](https://github.com/scoutapp/scout_apm_python/blob/24d4f1d700cb8e1dcd3a25fe3aff7473d9ef0185/tests/integration/test_flask.py#L35), something like:...
I disagree, it would be a block in Ruby or an anonymous function in JavaScript. Python just requires us to name our >1 line functions so you end up with...
@asottile can you merge this one way or another? I still believe ignoring decorated functions/classes makes sense. I ran against Django master, with and without the "ignore decorated items" commit....
Technically a text file isn't a text file under posix unless it finishes with `\n` ( https://stackoverflow.com/questions/729692/why-should-text-files-end-with-a-newline )
That would be a breaking change and could disrupt many CI scripts/tools out there.
I mistakenly re-reported this [on flake8](https://gitlab.com/pycqa/flake8/issues/585) yesterday. The real world use case I saw was accidentally overly indented tests: ```python class MyTests(TestCase): def setUp(self): self.thing = Thing() def test_thing_1(self): self.assertEqual(self.thing.foo,...
> Secondly, and most importantly, from the [Django documentation](https://docs.djangoproject.com/en/dev/topics/auth/customizing/#using-a-custom-user-model-when-starting-a-project): > > > If you’re starting a new project, it’s highly recommended to set up a custom user model, even if...
A different level sounds like it could be a good compromise. I forgot to share here that I wrote a post on the subject: https://adamj.eu/tech/2022/03/27/you-probably-dont-need-djangos-get-user-model/ (not really any new info)
> It would be difficult to see where API changes were introduced between versions of the SDK. One can use the [`textconv` git attribute](https://www.git-scm.com/docs/gitattributes#_performing_text_diffs_of_binary_files) in the repo to have git...