Re: Preparing Django code for the Black stable release

2022-01-30 Thread Mariusz Felisiak
Thanks. We will work on it later this week.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/fa88d938-fc24-488c-9fc8-ce4aa9e5ae54n%40googlegroups.com.


Re: Preparing Django code for the Black stable release

2022-01-29 Thread Markus Holtermann
That's wonderful news. Thanks for the info, Paolo!

Cheers,

Markus

On Sat, Jan 29, 2022, at 10:24 PM, Paolo Melchiorre wrote:
> Hi all,
>
> Black 22.1.0 has just been released
> https://github.com/psf/black/releases/tag/22.1.0
>
> It seems the time has come to put DEP 0008 into practice and "run
> Black on the entire Django code repository and make a single commit".
>
> Ciao,
> Paolo
>
> On Wed, Oct 20, 2021 at 10:52 PM Paolo Melchiorre  
> wrote:
>>
>> On Wed, Oct 20, 2021, 21:51 Mariusz Felisiak  
>> wrote:
>>>
>>>
 I was thinking we can start right now using black in a branch and see 
 which issue will show up and start fixing them.
>>>
>>>
>>> We don't want to merge multiple commits related to black. According to the 
>>> "Implementation" section in DEP 0008, we're going to run Black on the 
>>> entire Django code repository and make a single commit. Running black 
>>> should not encounter any issues …
>>
>>
>> Okay, I also hope the migration to Black will be this smooth.
>>
>> So now we just have to wait for 2022.
>>
>> Ciao,
>> Paolo
>>
>>
>
>
> -- 
> Paolo Melchiorre
>
> https://www.paulox.net
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CAKFO%2Bx6dZAw7ftsGvJOV5crHazXLW4RST_t26JDHFcqA1uNXEA%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/18da12b4-75f0-4f48-a9e5-1fbde5caa0e6%40beta.fastmail.com.


Re: Preparing Django code for the Black stable release

2022-01-29 Thread Paolo Melchiorre
Hi all,

Black 22.1.0 has just been released
https://github.com/psf/black/releases/tag/22.1.0

It seems the time has come to put DEP 0008 into practice and "run
Black on the entire Django code repository and make a single commit".

Ciao,
Paolo

On Wed, Oct 20, 2021 at 10:52 PM Paolo Melchiorre  wrote:
>
> On Wed, Oct 20, 2021, 21:51 Mariusz Felisiak  
> wrote:
>>
>>
>>> I was thinking we can start right now using black in a branch and see which 
>>> issue will show up and start fixing them.
>>
>>
>> We don't want to merge multiple commits related to black. According to the 
>> "Implementation" section in DEP 0008, we're going to run Black on the entire 
>> Django code repository and make a single commit. Running black should not 
>> encounter any issues …
>
>
> Okay, I also hope the migration to Black will be this smooth.
>
> So now we just have to wait for 2022.
>
> Ciao,
> Paolo
>
>


-- 
Paolo Melchiorre

https://www.paulox.net

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAKFO%2Bx6dZAw7ftsGvJOV5crHazXLW4RST_t26JDHFcqA1uNXEA%40mail.gmail.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread Paolo Melchiorre
On Wed, Oct 20, 2021, 21:51 Mariusz Felisiak 
wrote:

>
> I was thinking we can start right now using black in a branch and see
>> which issue will show up and start fixing them.
>>
>
> We don't want to merge multiple commits related to black. According to the
> "Implementation" section in DEP 0008, we're going to run Black on the
> entire Django code repository and make a single commit. Running black
> should not encounter any issues …
>

Okay, I also hope the migration to Black will be this smooth.

So now we just have to wait for 2022.

Ciao,
Paolo

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAKFO%2Bx53pmuLxc68_R7VtKgq_cVSmo1PGcUumG73pZ%3D3g7MAvg%40mail.gmail.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread Mariusz Felisiak


> I was thinking we can start right now using black in a branch and see 
> which issue will show up and start fixing them.
>

We don't want to merge multiple commits related to black. According to the 
"Implementation" section in DEP 0008, we're going to run Black on the 
entire Django code repository and make a single commit. Running black 
should not encounter any issues, it's a code formatter, unless we find any 
bugs in Black such as 
https://github.com/psf/black/issues/1629#issuecomment-700621526. 

Best,
Mariusz


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/b703ebb2-77b9-4833-b379-f671de06ed26n%40googlegroups.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread Markus Holtermann
There is https://github.com/MarkusH/django-migrations-formatter which I think 
holds everything that's necessary to make the migration writer create 
black-formatted output.

Cheers, Markus

On Wed, Oct 20, 2021, at 11:11 AM, 'Adam Johnson' via Django developers  
(Contributions to Django itself) wrote:
> The extension I added to the DEP may be a bit involved:
>
>> All code Django generates will also be Black-formatted (startproject,
>> migrations, inspectdb, etc.), at least if the user has Black installed.
>>
> But then again it may only need a few calls to black.format_str() in the
> right places.
>
> On Wed, 20 Oct 2021 at 10:37, Mariusz Felisiak 
> wrote:
>
>>
>> As you can see from this pull request in the Black code the first stable
>>> release is expected for January 2022:
>>> https://github.com/psf/black/pull/2529
>>>
>>> I think we can start prepare this great migrations of the Django code so
>>> we will be ready when Black 22.0 will be released and we can finally
>>> benefit from this change.
>>>
>>> We have now more than 2 months to work on this.
>>>
>>
>> Hi
>>
>> Do you have any specific steps in mind? I'm not sure how we need to
>> prepare. Implementation, as described in DEP 0008
>> ,
>> should be rather straightforward and I don't think anything needs to be
>> done in advance. We (Fellows and OPS team) should be able to implement it
>> within a few days.
>>
>> Best,
>> Mariusz
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django developers (Contributions to Django itself)" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-developers+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-developers/81687d6f-2ea3-44b4-a9c8-fab71e4e0843n%40googlegroups.com
>> 
>> .
>>
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CAMyDDM0kbb2aF%2BMK0GObXFm6pVrt%3DWMLsX1TcK6QyEHpDVBjeg%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/07f0f742-c503-4f8b-81b4-33bda7f937bf%40beta.fastmail.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread Paolo Melchiorre
On Wed, Oct 20, 2021, 11:37 Mariusz Felisiak 
wrote:

>
> I think we can start prepare this great migrations of the Django code so
>> we will be ready when Black 22.0 will be released and we can finally
>> benefit from this change.
>>
>
> Do you have any specific steps in mind? I'm not sot sure how we need to
> prepare. Implementation, as described in
>
DEP 0008
> ,
> should be rather straightforward and I don't think anything needs to be
> done in advance. We (Fellows and OPS team) should be able to implement it
> within a few days.
>

Hi,

I was thinking we can start right now using black in a branch and see which
issue will show up and start fixing them.

Ciao,
Paolo

>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAKFO%2Bx6hUfgmiZ%2BeL3EYDw6jHsZ0u0bqYNb4hQSPepgvEVewiQ%40mail.gmail.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
The extension I added to the DEP may be a bit involved:

> All code Django generates will also be Black-formatted (startproject,
> migrations, inspectdb, etc.), at least if the user has Black installed.
>
But then again it may only need a few calls to black.format_str() in the
right places.

On Wed, 20 Oct 2021 at 10:37, Mariusz Felisiak 
wrote:

>
> As you can see from this pull request in the Black code the first stable
>> release is expected for January 2022:
>> https://github.com/psf/black/pull/2529
>>
>> I think we can start prepare this great migrations of the Django code so
>> we will be ready when Black 22.0 will be released and we can finally
>> benefit from this change.
>>
>> We have now more than 2 months to work on this.
>>
>
> Hi
>
> Do you have any specific steps in mind? I'm not sure how we need to
> prepare. Implementation, as described in DEP 0008
> ,
> should be rather straightforward and I don't think anything needs to be
> done in advance. We (Fellows and OPS team) should be able to implement it
> within a few days.
>
> Best,
> Mariusz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/81687d6f-2ea3-44b4-a9c8-fab71e4e0843n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMyDDM0kbb2aF%2BMK0GObXFm6pVrt%3DWMLsX1TcK6QyEHpDVBjeg%40mail.gmail.com.


Re: Preparing Django code for the Black stable release

2021-10-20 Thread Mariusz Felisiak


> As you can see from this pull request in the Black code the first stable 
> release is expected for January 2022:
> https://github.com/psf/black/pull/2529
>
> I think we can start prepare this great migrations of the Django code so 
> we will be ready when Black 22.0 will be released and we can finally 
> benefit from this change.
>
> We have now more than 2 months to work on this.
>

Hi

Do you have any specific steps in mind? I'm not sure how we need to 
prepare. Implementation, as described in DEP 0008 
,
 
should be rather straightforward and I don't think anything needs to be 
done in advance. We (Fellows and OPS team) should be able to implement it 
within a few days.

Best,
Mariusz 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/81687d6f-2ea3-44b4-a9c8-fab71e4e0843n%40googlegroups.com.