Skip to content

Conversation

IshaanDesai
Copy link
Collaborator

@IshaanDesai IshaanDesai commented Oct 17, 2024

This PR removes the Action which runs clang-format. clang-format is configured to run via pre-commit, which is run via the Action workflow run-checks. Having two ways to run clang-format risks making them asynchronous, something that already happened. As pre-commit is more useful, the clang-format check via the Action is removed.

clang-format used via pre-commit is updated to the latest version, and necessary additions to the configuration are done.

@IshaanDesai IshaanDesai changed the base branch from main to develop October 17, 2024 07:57
@IshaanDesai IshaanDesai self-assigned this Oct 17, 2024
@IshaanDesai IshaanDesai added the bug Something isn't working label Oct 17, 2024
@IshaanDesai IshaanDesai changed the title Snychronize clang-format versions in pre-commit config and Action workflow Remove clang-format check via GitHub Action Oct 17, 2024
Copy link
Collaborator

@siggmo siggmo left a comment

Choose a reason for hiding this comment

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

I agree that we should remove this duplication. I'm fine with merging, though maybe we could consider whitelisting relevant extensions instead of excluding some (see my comment). But I guess both is fine.

@IshaanDesai IshaanDesai merged commit 0c80054 into develop Oct 17, 2024
6 checks passed
@sanathkeshav sanathkeshav deleted the clang-format-version branch October 30, 2024 11:58
sanathkeshav added a commit that referenced this pull request Oct 30, 2024
* Mention dependency on compiler support for OpenMP in README

* Rename container user also in fans_dev image to fix broken entrypoint script (#27)

* Add python3-dev to fans-ci stage already

* Remove clang-format check via GitHub Action (#29)

* Bump clang-format version

* Formatting

* Use a different Action workflow to run clang-format

* Remove the Action to run clang-format, as it will go out of sync with the pre-commit run

* Bump mirror-clang-format to latest version in the pre-commit-config

* Update clang-format config file to also format JSON

* Manually specify which extensions to format in the mirror-clang-format hooks in the pre-commit config

* Exclude JSON files from clang-format

* Exclude JSON files from clang-format

* Correctly exclude JSON files from clang-format checking

* Rather than excluding json, specifically suggest c++

* Added API to get homogenized stress and homogenized tangent (#31)

* worked on getting the algorithmic tangent via finite differences

* linear elastic triclinic material model

* refactored material properties from type map<string, vector<double>> to type json

* J2Plasticity time_step is double not a vector

* refactored compute_error to accept different error measure and type

* added additional error control when get_homogenized_tangent is called

* in get_homogenized_tangent linear materials are handled seperately

* added linear thermal triclinic model  (#32)

* added linear thermal triclinic model similar to linear elastic triclinic model

* fixed readme.md indent causing linting error

* Update CHANGELOG

* Bump version

---------

Co-authored-by: Moritz Sigg <[email protected]>
Co-authored-by: Moritz Sigg <[email protected]>
Co-authored-by: Ishaan Desai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants