Skip to content

Polish spack.util.environment#35812

Merged
tgamblin merged 5 commits intospack:developfrom
alalazo:refactor/environment_update
Mar 3, 2023
Merged

Polish spack.util.environment#35812
tgamblin merged 5 commits intospack:developfrom
alalazo:refactor/environment_update

Conversation

@alalazo
Copy link
Copy Markdown
Member

@alalazo alalazo commented Mar 3, 2023

Update spack.util.environment to remove legacy idioms.

Modifications:

  • Removed the abuse of **kwargs in methods (now we have a simple trace object that is optionally attached to modifications)
  • Added type-hints everywhere
  • Improved docstrings
  • Fixed most issues reported by pylint default configuration

@spackbot-app spackbot-app bot added build-environment core PR affects Spack core functionality modules tests General test capability(ies) utilities labels Mar 3, 2023
@alalazo
Copy link
Copy Markdown
Member Author

alalazo commented Mar 3, 2023

@spackbot run pipeline

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Mar 3, 2023

I've started that pipeline for you!

@tgamblin tgamblin enabled auto-merge (squash) March 3, 2023 20:32
@tgamblin tgamblin merged commit 0464164 into spack:develop Mar 3, 2023
@alalazo alalazo deleted the refactor/environment_update branch March 3, 2023 22:05
jmcarcell pushed a commit to key4hep/spack that referenced this pull request Apr 13, 2023
Update `spack.util.environment` to remove legacy idioms.
* Remove kwargs from method signature and use a class for traces
* Uppercase a few global variables
* spack.util.environment: add type-hints
* Improve docstrings
* Fixed most style issues reported by pylint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build-environment core PR affects Spack core functionality modules refactoring tests General test capability(ies) utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants