Skip to content

Conversation

LecrisUT
Copy link
Collaborator

@LecrisUT LecrisUT commented Jul 4, 2024

PEP702 introduced warnings.deprecated with back-ports to typing-extensions. This decorator works for both type-checking and runtime. It can even work with @overload but that may require a spglib.pyi to keep it clean.

Copy link

codecov bot commented Jul 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.30%. Comparing base (6181c69) to head (334d468).
Report is 47 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #499   +/-   ##
========================================
  Coverage    73.30%   73.30%           
========================================
  Files           26       26           
  Lines         8068     8068           
  Branches      1691     1692    +1     
========================================
  Hits          5914     5914           
  Misses        1627     1627           
  Partials       527      527           
Flag Coverage Δ
c_api 68.68% <ø> (ø)
fortran_api 50.70% <ø> (ø)
python_api 64.14% <ø> (ø)
unit_tests 11.67% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@LecrisUT LecrisUT mentioned this pull request Jan 19, 2025
@LecrisUT LecrisUT force-pushed the feat/deprecated branch 2 times, most recently from e866a9f to ce8293f Compare January 20, 2025 17:21
@LecrisUT LecrisUT marked this pull request as ready for review January 20, 2025 17:21
@LecrisUT LecrisUT requested review from lan496 and atztogo January 20, 2025 17:21
@LecrisUT LecrisUT force-pushed the feat/deprecated branch 2 times, most recently from 5a8bd83 to d1353fe Compare January 29, 2025 21:52
@lan496 lan496 enabled auto-merge January 30, 2025 02:36
@lan496 lan496 disabled auto-merge January 30, 2025 02:40
@lan496
Copy link
Member

lan496 commented Jan 30, 2025

A lot of tests start failing. Some files look to be missing 🤔
https://github.com/spglib/spglib/actions/runs/13044570302/job/36392894391?pr=499

@LecrisUT
Copy link
Collaborator Author

Yeah, fallout from #527 discussions. Will fix it there and rebase this after

LecrisUT and others added 7 commits January 30, 2025 03:51
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
- Added `spglib._spglib.pyi` stump file
- Configured mypy more strictly, except for tests
- Added missing mypy user annotation
- Added missing py.typed

Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
- Replace patch file with more robust `tomcli` patch
- Simplify bcond statement

Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
@LecrisUT LecrisUT enabled auto-merge January 30, 2025 02:52
@LecrisUT LecrisUT merged commit 1624219 into spglib:develop Jan 30, 2025
48 of 57 checks passed
@LecrisUT LecrisUT deleted the feat/deprecated branch January 30, 2025 09:24
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