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

Specify interpreter path for python extensions #155

Merged
merged 2 commits into from
Jul 25, 2023

Conversation

DFriend01
Copy link
Contributor

Description

Add path to python interpreter in workspace config file for black formatted. Without it, black would try to make assumptions on which interpreter to use and may get it wrong.

@DFriend01 DFriend01 added bug Something isn't working ctrl Controller team labels Jul 25, 2023
@DFriend01 DFriend01 self-assigned this Jul 25, 2023
Copy link
Member

@patrick-5546 patrick-5546 left a comment

Choose a reason for hiding this comment

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

Great catch, didn't know this could be a problem. We should also set the interpreter manually for the rest of the Python extensions: isort, flake8, and mypy (in #156)

@patrick-5546 patrick-5546 changed the title Add path to python interpreter for black formatter Specify interpreter path for python extensions Jul 25, 2023
@DFriend01 DFriend01 merged commit 890a4b5 into main Jul 25, 2023
8 checks passed
@DFriend01 DFriend01 deleted the user/dfriend01/add-black-interpreter branch July 25, 2023 17:07
patrick-5546 pushed a commit that referenced this pull request Aug 30, 2023
* Add path to python interpreter for black formatter

* Add python interpreter path to isort and flake8 config
patrick-5546 added a commit that referenced this pull request Oct 11, 2023
* Add mypy type checker

* Create type checking vscode task and remove mypy extension

* Modify mypy task to lint entire ROS packages rather than a single file

* Specify interpreter path for python extensions (#155)

* Add path to python interpreter for black formatter

* Add python interpreter path to isort and flake8 config

* Format all Python strings to be double quotes (#158)

* Add github copilot extension (#159)

* Delete deprecated python setting

* Enable mypy extension

* Add mypy task TODO

* Install ament_mypy

* Add mypy to CI

* Update TODO

* Fix mypy CI

* Uncomment mypy task

* Update base-dev image tag

* Create mypy vscode tasks for each python pkg

* Add mypy global_launch task

* Fix global_launch mypy error

* Loop over valid sub directories

* Fix ament linter script

* Uses CI script in tasks

* Exit with error if any lint run has errors

---------

Co-authored-by: Patrick Creighton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ctrl Controller team infrastructure
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants