Skip to content

Drop Python 3.5 and configure black#582

Merged
lafrech merged 1 commit intodevfrom
drop_py35
Aug 31, 2020
Merged

Drop Python 3.5 and configure black#582
lafrech merged 1 commit intodevfrom
drop_py35

Conversation

@lafrech
Copy link
Copy Markdown
Member

@lafrech lafrech commented Jul 10, 2020

Closes #556.

@lafrech lafrech added this to the 4.0 milestone Jul 10, 2020
Copy link
Copy Markdown
Member

@sloria sloria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also replace --py3-plus with --py36-plus in pyupgrade:

args: [--py3-plus]

We should also probably use pyproject.toml with a black config that has

[tool.black]
line-length = 79
target-version = ['py36', 'py37', 'py38']

@lafrech lafrech force-pushed the drop_py35 branch 2 times, most recently from b23caff to cd091d7 Compare August 25, 2020 08:18
@lafrech
Copy link
Copy Markdown
Member Author

lafrech commented Aug 25, 2020

Changed to py36-plus.

About the pyproject file, whatever you say, I've never looked into black configuration so I'm trusting you. I think we use a longer line length, though. Did you mean 99?

@sloria
Copy link
Copy Markdown
Member

sloria commented Aug 25, 2020

Woops, yeah I typod. We should probably match marshmallow's config

[tool.black]
line-length = 88
target-version = ['py35', 'py36', 'py37', 'py38']

@lafrech lafrech force-pushed the drop_py35 branch 2 times, most recently from d3d3995 to de387b7 Compare August 27, 2020 13:19
@lafrech lafrech changed the title Drop Python 3.5 Drop Python 3.5 and configure black Aug 27, 2020
@lafrech lafrech merged commit c3eea80 into dev Aug 31, 2020
@lafrech lafrech deleted the drop_py35 branch August 31, 2020 10:33
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.

Drop Python 3.5

2 participants