Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump black to 21.5b2 #506

Closed

Conversation

gnawhleinad
Copy link

https://pypi.org/project/black/ 21.5b2 was released on May 31, 2021.

The current version 20.8 was released ~August 2020. py39 was added in
September 2020 with psf/black#1717.

https://pypi.org/project/black/ 21.5b2 was released on May 31, 2021.

The current version 20.8 was released ~August 2020. `py39` was added in
September 2020 with psf/black#1717.
@nvuillam
Copy link
Member

Mega-Linter updates itself automatically , so when command pip install black will install this newest version, it will be taken in account :)

@nvuillam nvuillam closed this Jun 10, 2021
@gnawhleinad
Copy link
Author

Mega-Linter updates itself automatically , so when command pip install black will install this newest version, it will be taken in account :)

@nvuillam, thanks for that context!

However, I'm a bit confused since https://pypi.org/project/black/'s 21.5b2 was released on May 31, 2021. How frequently does mega-linter update itself?

@nvuillam
Copy link
Member

The auto update job is run daily :)
Black probably released a version but did not update the pip package yet

@gnawhleinad
Copy link
Author

The auto update job is run daily :)
Black probably released a version but did not update the pip package yet

Please let me know if I need to file a bug... but it seems like black was released:

$ pip download black
Collecting black
  File was already downloaded /hodor/black-21.5b2-py3-none-any.whl
...

This seems consistent with https://pypi.org/project/black/#history which shows:

Screen Shot 2021-06-10 at 10 48 20 AM

Is it possible that mega-linter is looking for non-pre-release versions...?

@nvuillam
Copy link
Member

I think pip3 install retrieves the latest official release, as you can see there -> https://github.com/nvuillam/mega-linter/blob/63cd757a63af403764daefd5d5a97479225be41d/Dockerfile#L126

Pre-releases must be considered not stable enough, so it seems normal they are not used in Mega-Linter ^^

If you want to force a black version, you can use PRE_COMMANDS configuration to install it your way, it is called before the linters execution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants