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

Added make install-dev and a stronger make clean for easier dev on-boarding and release upgrades. #458

Merged
merged 3 commits into from
Oct 14, 2023

Conversation

dmoore247
Copy link
Contributor

@dmoore247 dmoore247 commented Oct 13, 2023

… easier on-boarding experience

The problem was make test was reporting incompatible versions. The hatch environment needed cleaning up. Also added make install-dev as a convention to install the developer environment (hatch).

@dmoore247 dmoore247 requested a review from a team October 13, 2023 18:11
@codecov
Copy link

codecov bot commented Oct 13, 2023

Codecov Report

Merging #458 (569f3a2) into main (c5db3d5) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #458   +/-   ##
=======================================
  Coverage   80.13%   80.13%           
=======================================
  Files          31       31           
  Lines        3151     3151           
  Branches      611      611           
=======================================
  Hits         2525     2525           
  Misses        479      479           
  Partials      147      147           

@dmoore247 dmoore247 changed the title fix: add contributing commands to make install-dev and make-clean for… Added make install-dev and a stronger make clean for easier dev on-boarding and release upgrades. Oct 13, 2023
Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

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

Can you also modify the contributing.md?

Makefile Outdated
clean:
rm -fr htmlcov .mypy_cache .pytest_cache .ruff_cache .coverage coverage.xml
hatch env remove unit

install-dev:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
install-dev:
dev:

We use this for python sdk

@@ -11,4 +19,5 @@ test:
hatch run unit:test

test-cov:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps call it "coverage"

Copy link
Collaborator

@nfx nfx left a comment

Choose a reason for hiding this comment

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

Please also modify the contributing.md

install-dev:
pip install hatch
hatch env create
hatch run pip install -e '.[test]'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you output the path to python interpreter here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as in which python ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think Serge means this:

hatch run python -c "import sys; print(sys.executable)"

@nfx nfx merged commit ff115aa into databrickslabs:main Oct 14, 2023
5 checks passed
@dmoore247 dmoore247 deleted the fix/make-contributing branch October 15, 2023 02:28
@nfx nfx mentioned this pull request Oct 18, 2023
FastLee pushed a commit that referenced this pull request Oct 25, 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.

3 participants