Skip to content

Enable clang-format also for .tpp files by using a regex instead of a predefined filter#1403

Merged
ax3l merged 6 commits intoopenPMD:devfrom
franzpoeschel:rename-recordcomponent-tpp
Apr 3, 2023
Merged

Enable clang-format also for .tpp files by using a regex instead of a predefined filter#1403
ax3l merged 6 commits intoopenPMD:devfrom
franzpoeschel:rename-recordcomponent-tpp

Conversation

@franzpoeschel
Copy link
Contributor

This makes the precommit bot recognize the file. Easier than trying to figure out how to make it accept .tpp too...

@ax3l
Copy link
Member

ax3l commented Mar 28, 2023

makes the precommit bot recognize the file

You mean for clang-format? There is probably an option we can set for additional, custom file endings?

@ax3l ax3l self-assigned this Mar 29, 2023
@ax3l ax3l self-requested a review March 29, 2023 16:22
@franzpoeschel
Copy link
Contributor Author

Ok, I tried deactivating the automatic pre-commit file type recognition and instead using a regex for the same purpose:

    'types_or': []
    files: .*\.(tpp|hpp|cpp)$

Locally, that works, but the bot is not reacting?

@ax3l
Copy link
Member

ax3l commented Mar 31, 2023

It looks like it is working but does not push the change back on the PR 🤔

@ax3l
Copy link
Member

ax3l commented Mar 31, 2023

push (skipped)
a conflict occurred when applying fixes to the pr. try pulling the upstream branch

Maybe try to rebase against dev. Will do that now.

@ax3l ax3l force-pushed the rename-recordcomponent-tpp branch from 08be49b to 49c7a6c Compare March 31, 2023 00:31
@ax3l ax3l added this to the 0.15.1 milestone Mar 31, 2023
@ax3l
Copy link
Member

ax3l commented Mar 31, 2023

Here we go :)

@franzpoeschel franzpoeschel changed the title Move RecordComponent.tpp -> RecordComponent_tpp.hpp Enable clang-format also for .tpp files by using a regex instead of a predefined filter Mar 31, 2023
@franzpoeschel
Copy link
Contributor Author

franzpoeschel commented Mar 31, 2023

Ah wait, some commits got lost during rebase
Fixed that now

@franzpoeschel franzpoeschel force-pushed the rename-recordcomponent-tpp branch from 5ad0270 to 848027b Compare March 31, 2023 09:42
@ax3l
Copy link
Member

ax3l commented Mar 31, 2023

Yes, I removed & squashed them intentionally as they were triggers and the old experiment.

@ax3l ax3l merged commit f489633 into openPMD:dev Apr 3, 2023
eschnett added a commit to eschnett/openPMD-api that referenced this pull request May 19, 2023
* dev: (82 commits)
  Docs: Linking to C++ Projects (openPMD#1445)
  CI: macOS-11 Update (openPMD#1446)
  [pre-commit.ci] pre-commit autoupdate (openPMD#1437)
  Fix deprecated storeChunk APIs in first read/write examples (openPMD#1435)
  Update .readthedocs.yml (openPMD#1438)
  Doc: Fix Bib Authors (openPMD#1434)
  [pre-commit.ci] pre-commit autoupdate (openPMD#1425)
  More careful documentation of streaming API (openPMD#1430)
  Fix gcc9 warning (openPMD#1429)
  Python bindings: Release GIL during IO wait operations (openPMD#1381)
  RecordComponent: Properly handle uninitialized datasets (openPMD#1316)
  Remove ADIOS1 - Long Live ADIOS2 (openPMD#1419)
  Post 0.15.0 Changelog Template (openPMD#1420)
  GitHub Actions: macOS has 3 Cores (openPMD#1421)
  `version.hpp`: 0.15.1 (openPMD#1417)
  [pre-commit.ci] pre-commit autoupdate (openPMD#1416)
  Release 0.15.1 (openPMD#1414)
  Doc: More HTML Updates (CSS) (openPMD#1413)
  Enable clang-format also for .tpp files by using a regex instead of a predefined filter (openPMD#1403)
  Docs: Update Funding (openPMD#1412)
  ...

# Conflicts:
#	.github/workflows/linux.yml
#	CMakeLists.txt
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