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

Add isort as part of code formatting #302

Merged
merged 4 commits into from
Mar 5, 2022

Conversation

nickjalbert
Copy link
Contributor

@nickjalbert nickjalbert commented Mar 5, 2022

I was reading some discussion about Python black and people mentioned isort as a nice complement, so I added it to our formatting script.

Isort auto-sorts import statements alphabetically while also dividing them up as recommended by PEP8.

You will probably have to run pip install -r dev-requirements.txt in your dev env again to install isort so python scripts/format_code.py works as expected.

Let me know what you think!

@nickjalbert nickjalbert requested a review from andyk March 5, 2022 14:49
Copy link
Contributor

@andyk andyk left a comment

Choose a reason for hiding this comment

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

Cool. I like it

@andyk andyk merged commit 92a0b25 into agentos-project:master Mar 5, 2022
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