Skip to content

packages: remove useless trailing commas#48790

Closed
tgamblin wants to merge 1 commit intodevelopfrom
fix-tuplecommas-in-packages
Closed

packages: remove useless trailing commas#48790
tgamblin wants to merge 1 commit intodevelopfrom
fix-tuplecommas-in-packages

Conversation

@tgamblin
Copy link
Copy Markdown
Member

Some stray commas will result in two statements being interpreted (harmlessly, but still undesirably) as tuples.
Remove them.

@spackbot-app
Copy link
Copy Markdown

spackbot-app bot commented Jan 30, 2025

Hi @tgamblin! I noticed that the following package(s) don't yet have maintainers:

  • elemental
  • foam-extend
  • gurobi

Are you interested in adopting any of these package(s)? If so, simply add the following to the package class:

    maintainers("tgamblin")

If not, could you contact the developers of this package and see if they are interested? You can quickly see who has worked on a package with spack blame:

$ spack blame elemental

Thank you for your help! Please don't add maintainers without their consent.

You don't have to be a Spack expert or package developer in order to be a "maintainer," it just gives us a list of users willing to review PRs or debug issues relating to this package. A package can have multiple maintainers; just add a list of GitHub handles of anyone who wants to volunteer.

Some stray commas will result in two statements being interpreted (harmlessly,
but still undesirably) as tuples. Remove them.

Signed-off-by: Todd Gamblin <[email protected]>
@tgamblin tgamblin force-pushed the fix-tuplecommas-in-packages branch from 20298e8 to 6a2b057 Compare January 30, 2025 07:46
@haampie
Copy link
Copy Markdown
Member

haampie commented Jan 30, 2025

Did you do a full pass through builtin with using ast? Or just regex?

if self.spec.satisfies("@:6.2"):
"-DHSAKMT_LIB={0}/lib".format(hsakmt_prefix),
"-DHSAKMT_LIB64={0}/lib64".format(hsakmt_prefix),
"-DHSAKMT_LIB={0}/lib".format(hsakmt_prefix)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

args.extend ;)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Instead of fixing here I've included it in #48795, so might as well close this.

@haampie haampie mentioned this pull request Jan 30, 2025
@tgamblin
Copy link
Copy Markdown
Member Author

I ran ruff, which finds these and adds parens to them. They're pretty easy to pick out in the diff... I figured I'd just go ahead and fix them.

@tgamblin
Copy link
Copy Markdown
Member Author

Superseded by #48795.

@tgamblin tgamblin closed this Jan 30, 2025
@tgamblin tgamblin deleted the fix-tuplecommas-in-packages branch January 30, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants