Skip to content

Conversation

@fselmo
Copy link
Collaborator

@fselmo fselmo commented Feb 1, 2023

What was wrong?

  • isort was broken for python 3.10 and above.
  • New black version was released and causing lint errors.

How was it fixed?

  • Update isort, add migration guide related changes, and run the updated isort to normalize the code base for the new version.
  • Run black linting with new version as a separate commit.
  • Add "lint" CI jobs for all supported python versions - exclude python 3.7 since it had some issues with mypy and 3.7 is slated for deprecation in a few months. We still test against 3.7 but linting errors should be OK.

Todo:

Cute Animal Picture

shaved moog is sad moog 🙁
20230201_143626

- Move isort config into a single config file, ``.isort.cfg``, rather than having it spread between ``tox.ini`` and ``pyproject.toml``
- Update ``isort``, add recommended changes for migrating to isort >5
@fselmo fselmo force-pushed the update-isort-and-black branch 2 times, most recently from 4291ea6 to 23f8e97 Compare February 1, 2023 21:23
fselmo added a commit to fselmo/web3.py that referenced this pull request Feb 1, 2023
@fselmo fselmo marked this pull request as ready for review February 1, 2023 21:37
@fselmo fselmo requested review from kclowes and pacrob February 1, 2023 21:37
- Exclude py37 since this was causing some issues with mypy and python 3.7 is slated for deprecation in a few months. Since this is just the linting, this should be OK.
@fselmo fselmo force-pushed the update-isort-and-black branch from b5465ed to b3b1e80 Compare February 1, 2023 21:40
Copy link
Collaborator

@kclowes kclowes left a comment

Choose a reason for hiding this comment

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

I had a couple comments for my own education, but LGTM! 🚢 !

Copy link
Contributor

@pacrob pacrob left a comment

Choose a reason for hiding this comment

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

lgtm!

@fselmo fselmo merged commit 92dd626 into ethereum:master Feb 2, 2023
@fselmo fselmo deleted the update-isort-and-black branch April 25, 2023 16:48
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.

3 participants