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

Switch qcodes to src layout #5427

Merged
merged 10 commits into from
Oct 19, 2023
Merged

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Oct 6, 2023

This is mainly due to the fact that editable mode does not work well for flat layout pypa/setuptools#3518 which does not seem likely to be fixed anytime soon. This also has the benefit of making it cleaner that tests are executed against an installed version of the code since the src is not on path by default.

It is expected that darker will fail on this branch since all the files counts as new when moved but I have not linted them

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #5427 (17c5aea) into main (788a425) will increase coverage by 12.70%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main    #5427       +/-   ##
===========================================
+ Coverage   68.36%   81.06%   +12.70%     
===========================================
  Files         341      518      +177     
  Lines       29994    52346    +22352     
===========================================
+ Hits        20505    42436    +21931     
- Misses       9489     9910      +421     

@jenshnielsen jenshnielsen force-pushed the src_layout branch 2 times, most recently from adf2a78 to f2f1762 Compare October 10, 2023 18:37
@jenshnielsen jenshnielsen force-pushed the src_layout branch 2 times, most recently from ebb5dd6 to 1eb1c4c Compare October 19, 2023 05:18
@jenshnielsen jenshnielsen marked this pull request as ready for review October 19, 2023 07:37
Copy link
Contributor

@astafan8 astafan8 left a comment

Choose a reason for hiding this comment

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

looks good.

and in qcodes we don't use file of a module for anything, that might break, right?

@jenshnielsen
Copy link
Collaborator Author

and in qcodes we don't use file of a module for anything, that might break, right?

This only breaks when something outside reaches in to the src or the other way around. There were a few examples that reached into the test fixtures for files but those have been fixed.

@jenshnielsen jenshnielsen merged commit bcb7151 into microsoft:main Oct 19, 2023
12 of 13 checks passed
@jenshnielsen jenshnielsen deleted the src_layout branch October 19, 2023 09:12
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