Skip to content

Format and lint#43

Merged
nickjalbert merged 3 commits intoagentos-project:masterfrom
nickjalbert:nj_format_and_lint
Jan 22, 2021
Merged

Format and lint#43
nickjalbert merged 3 commits intoagentos-project:masterfrom
nickjalbert:nj_format_and_lint

Conversation

@nickjalbert
Copy link
Copy Markdown
Contributor

This PR runs the black formatter over the repo and fixes any lint complaints (mostly unused imports and variables). My (aesthetic) preference is a max line length of 79 like the standard library, but I'm not dead set on it if you have other preferences.

Lots of file changes, but mostly just tweaking the spacing of statements so this PR didn't take long to put together. If you hate it, we can scrap it and go back to the drawing board and not much will be lost. 😄

@nickjalbert nickjalbert requested a review from andyk January 17, 2021 17:25
@nickjalbert
Copy link
Copy Markdown
Contributor Author

I also tweaked the pytest configuration to spit out the run time of the tests which might be interesting for debugging purposes. On my local box, test test_evolutionary_agent takes 90% of the time (129 sec of the 144 sec total run time).

Confirmed the tests pass and that the docs and readme build locally.

Comment thread agentos/__init__.py
@@ -1,7 +1,5 @@
"""The ``agentos`` module provides an API for building learning agents."""

from agentos.version import VERSION as __version__
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

flake8 was complaining about this unused import, but is this something we need to make the package work right?

andyk added a commit to andyk/agentos that referenced this pull request Jan 21, 2021
@nickjalbert
Copy link
Copy Markdown
Contributor Author

Tests are passing. Merging per our conversation.

@nickjalbert nickjalbert merged commit d286e1d into agentos-project:master Jan 22, 2021
@nickjalbert nickjalbert deleted the nj_format_and_lint branch January 22, 2021 00:10
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.

2 participants