Skip to content

Conversation

@ptsOSL
Copy link
Collaborator

@ptsOSL ptsOSL commented Apr 4, 2025

ptsOSL added 9 commits April 4, 2025 09:53
Currently not using sphinx and using mypy instead of pyright. Sphinx and pyright to be added later
This involved merging __init__.py for atip. The __main__.py files currently do nothing
Udpated pyproject.toml to fix authors
Fixed issue where exceptions raised from within exceptions where not passed the context. Added defaults for stacklevel when using warn(). Removed redundant comparison for void test function. Disabled warning for use of private functions in tests. Disabled warning for unneeded list comprehension which I believe is required. Fixed line too long
This is now done by copier template
Repopulated conftest.py with the pre-copier test setup for ATIP. Fixed error in test_toggle_calculations_and_wait_for_calculations that I made. Deleted ghost atip/ dir which shouldnt have been there and was stopping ATIP from running. Added testfixtures dependency to pyproject
Fixed issue causing test failure due to deprecation in python3.12
@ptsOSL ptsOSL requested a review from MJGaughran April 4, 2025 11:46
@codecov
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

Attention: Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.

Please upload report for BASE (master@dc56ca7). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/atip/utils.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master      #34   +/-   ##
=========================================
  Coverage          ?   93.84%           
=========================================
  Files             ?        6           
  Lines             ?      390           
  Branches          ?        0           
=========================================
  Hits              ?      366           
  Misses            ?       24           
  Partials          ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ptsOSL ptsOSL changed the title Just copier template switch2 Switch to copier template Apr 4, 2025
@MJGaughran MJGaughran merged commit 948d6ca into master Apr 4, 2025
17 checks passed
@ptsOSL ptsOSL deleted the just-copier-template-switch2 branch April 10, 2025 08:46
identification within third-party archives.

Copyright 2023 Diamond Light Source Ltd.
Copyright {yyyy} {name of copyright owner}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oopsie, @ptsOSL sorry I didn't review this PR earlier and catch this before it merged, but we can fix it on one of the open PRs

Copy link
Contributor

Choose a reason for hiding this comment

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

If you read the preceding paragraph, it is intentional to keep the brackets and field description here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ahh, my mistake! If I understand it correctly now, we are supposed to copy that line and the ones below into the header of every source file and switch out the bracketed bits when doing that, but leave them unchanged here?

Copy link
Contributor

Choose a reason for hiding this comment

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

Technically, yes, but I'm not aware of people actually doing this properly...

Wait a bit and I'll see if something can be sorted out in the Copier template

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