Apply automated formatting to first batch of directories.#497
Conversation
9e52d52 to
1e6c09f
Compare
|
PR is awaiting CodeQL notes being addressed (self-assigned by @jonasbardino). |
It will definitely take some time to address those issues, so to avoid leaving the PR floating longer than necessary I'd suggest leaving out (reverting) the files in |
Right, but if I do that |
1e6c09f to
6d64960
Compare
Well, I've excluded the two files that were being complained about but now the sanity checks have blown. I find it really disheartening to so often have to fight CI over problems that I didn't introduce. Update: I'm going to add exclusions to the formatting until it is clean again. |
5c7b83e to
3e8f806
Compare
Looks functional now 👍 If going the file conf way instead of using a mixture of The Makefile could then remain very similar like this: P.S. attachments renamed to |
|
As you probably noticed these are not CI but CodeQL issues, which appeared after enabling additional repo security features recently. I'm on it and some noise is to be expected for a while, but I still believe the end result is worth it. If it gets too noisy we will have to reevaluate our options. Have you hit more CI issues than the actual bug in the events unit test (invalid date) and the docker-migrid CI failure when splitting Dockerfile there? The lint errors we initially hit here on |
jonasbardino
left a comment
There was a problem hiding this comment.
Very close and could be merged, but I added a small improvement suggestion in the comments.
Hah, same thought strikes again: so, I had already considered doing that after seeing in the documentation that one can specify such stuff in a pyproject.toml. It would have some distinct benefits: appears all the well maintained tools can be configured the same way, and putting these settings in files will mean it will be picked up by things like editors etc rather than only for invocations we specifically arrange e.g. make targets. This would further ease barriers for new contributors. I shied away because I wasn't sure whether we would want to add on to this repo or not I take your highlighting the same thing as we would be ok adding that, so let me follow that up. |
e9adb5a to
2101e69
Compare
d6e44bb to
62087b6
Compare
As part of this (given the need to make use of them) move to specifying file exclusions for both black and isort in a pyproject.toml file.
62087b6 to
4b568bc
Compare
|
With the configuration parts being lifted out there isn’t anything meaningful left here: the formatting itself is mechanical and would need to be regenerated anyway. |
|
Yes, the crucial part was the core of this PR (thanks 👍 ), which is now merged separately in #525 . |
No description provided.