Skip to content

Conversation

@danielhollas
Copy link
Collaborator

Fixes #7090

This script was not working ever since we moved
to the src/aiida layout. :-(

This also includes:
- fixes for Python 3.14 (deprecations from ast module)
- preservation of `from __future__` imports
- fixes for compatibility with ruff
@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.61%. Comparing base (ad5cafd) to head (be19e3b).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7091      +/-   ##
==========================================
- Coverage   79.61%   79.61%   -0.00%     
==========================================
  Files         566      566              
  Lines       43536    43533       -3     
==========================================
- Hits        34657    34654       -3     
  Misses       8879     8879              

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


auto_content = (
['', '# AUTO-GENERATED']
+ ['', '# fmt: off', '']
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It was necessary to remove the extra empty lines to appease ruff

continue

names = [n.s for n in all_token.value.elts]
names = [n.value for n in all_token.value.elts] # type: ignore[attr-defined]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I ran the script through mypy to make sure I haven't screwed up.

bad_all.setdefault('__all__ is not list/tuple', []).append(str(path.relative_to(folder_path)))
continue

if not all(isinstance(el, ast.Str) for el in all_token.value.elts):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ast.Str has been removed in Python 3.14

'DUMP_PROGRESS_BAR_FORMAT',
'ORM_TYPE_TO_REGISTRY',
'REGISTRY_TO_ORM_TYPE',
'DumpMode',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

DumpMode is defined in _dumping.config, not here

'ProgressReporterAbstract',
'RemoteOperationError',
'StashMode',
'StorageBackupError',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This once new

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.

utils/make_all.py is broken.

1 participant