Skip to content

Commit

Permalink
add final touches
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Dec 8, 2023
1 parent 7be46b9 commit 66c8eb8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ IndentCaseLabels: 'true'
IndentWidth: '2'
NamespaceIndentation: All
PointerAlignment: Left
SortIncludes: SI_Never
SpaceAfterCStyleCast: 'true'
SpaceAfterLogicalNot: 'false'
SpaceAfterTemplateKeyword: 'false'
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,27 @@ target_link_libraries(my_app PRIVATE ReSolve::ReSolve)

For all contributions to ReSolve please follow the [developer guidelines](CONTRIBUTING.md)

### Pre-commit
Precommit is a framework for mmangaing and maintain multi-lanagueg pre-commit hooks. https://pre-commit.com/

Precommit is auto applied through CI to every pull request and every commit to the said pull request. Precommit checks for valid yaml files, end of file spaces, Syntax of C codeand etc. To see specifically what formating precommit looks for please check out our .clang-format and .cmake-format filed as well as our .pre-commit-config.yaml which show the specific precommit hooks being applied.

### Running Pre-commit locally
To run pre-commit locally you first must install pre-commit. It can be installed via
```shell
pip install pre-commit
```

To install the hooks and have pre-commit run automatically before every commit run
```shell
pre-commit install
```

If you want to manually run all pre-commit hooks on a repository, run
```shell
pre-commit run --all-files
```
To learn more about pre-commit usuage check out https://pre-commit.com/#usage.

## Test and Deploy

Expand Down Expand Up @@ -111,4 +131,3 @@ contributions to ReSolve must be made under the smae licensing terms.
**Please Note** If you are using ReSolve with any third party libraries linked
in (e.g., KLU), be sure to review the respective license of the package as that
license may have more restrictive terms than the ReSolve license.

0 comments on commit 66c8eb8

Please sign in to comment.