Skip to content

Conversation

@tetienne
Copy link
Collaborator

@tetienne tetienne commented Jul 7, 2020

  • Migrate to Poetry

  • Add pre-commit with some linters:

    • flake8
    • pylintrc
    • mypy
    • isort
    • black
  • Add Pycharm configuration to ease the development setup

  • Update the README.md to explain how to contribute to this project

@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

For the moment, the linters output some errors. I will have to fix them.

@tetienne tetienne requested a review from iMicknl July 7, 2020 07:46
@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

@iMicknl https://github.com/iMicknl/python-tahoma-api/pull/2/files#diff-b30393141377169ab3c3dc6750a3f3c0L119 I cannot find any Command class. Did you forget it or it's a mistake?

@vlebourl
Copy link
Contributor

vlebourl commented Jul 7, 2020

it's in another branch: add_command_implementation

@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

@vlebourl Thx. I will have to include it otherwise the check will not pass. I've clean all the remarks except this one.
I will move also the test.py within an examples folder.

@vlebourl
Copy link
Contributor

vlebourl commented Jul 7, 2020

Can you add a setup.cfg for the precommit config? Or is it setup somewhere else?

@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

@vlebourl The pre-commit configuration has its own file. According to its author it's because this framework is not Python specific, and so nodejs user for instance does not care about setup.cfg.

@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

@iMicknl I've commented the method using the Command type. You will have to rebase on the master branch to get my work.

@tetienne tetienne requested a review from vlebourl July 7, 2020 12:38
Copy link
Contributor

@vlebourl vlebourl left a comment

Choose a reason for hiding this comment

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

I've been looking at poetry for a while, I guess this is a good way to start dipping into it!


# Development

## Installation
Copy link
Contributor

Choose a reason for hiding this comment

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

Dev on VSCode follows this method?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes the installation part is not linked to any IDE. That's the workflow I usualy follow. You should be able to start from scratch in 5 min only.

Copy link
Contributor

Choose a reason for hiding this comment

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

I use PyCharm any ways, so method 2 is good enough for me!

@tetienne
Copy link
Collaborator Author

tetienne commented Jul 7, 2020

I've been looking at poetry for a while, I guess this is a good way to start dipping into it!

You have to know a little setup.py to enjoy the real power of Poetry :D

@tetienne tetienne merged commit bd0e8f9 into master Jul 7, 2020
@tetienne tetienne deleted the MigrateToPoetry branch July 7, 2020 12:52
tetienne added a commit that referenced this pull request Feb 14, 2023
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.

4 participants