-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CMake and CI scripting (#316)
Move from Gnu Make to CMake/Ninja as the build system and update continuous integration. See the PR history for details. --------- Co-authored-by: Chiel van Heerwaarden <chielvanheerwaarden@gmail.com> Co-authored-by: Robert Pincus <Robert.Pincus@columbia.edu> Co-authored-by: Alexander Soklev <alex@makepath.com>
- Loading branch information
1 parent
bda5e7e
commit e13d20e
Showing
40 changed files
with
970 additions
and
820 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
with section("parse"): | ||
additional_commands = {"check_python3_package": {"pargs": 1, "kwargs": {"CODE": 1}}} | ||
|
||
with section("format"): | ||
dangle_parens = True | ||
max_lines_hwrap = 0 | ||
keyword_case = "upper" | ||
autosort = True | ||
|
||
with section("lint"): | ||
# The formatter sometimes fails to fit the code into the line limit (C0301) and can | ||
# disagree with the linter regarding the indentation (C0307): | ||
disabled_codes = ["C0301", "C0307"] | ||
# Names of local variables must be in lowercase but sometimes we need to | ||
# override standard CMake variables: | ||
local_var_pattern = "CMAKE_[0-9A-Z_]+|[a-z][0-9a-z_]+" | ||
# The standard names of the languages in CMake are C and Fortran. Names of | ||
# private variables must be in lowercase but can have substings "C" and | ||
# "Fortran": | ||
private_var_pattern = ( | ||
"([a-z_][0-9a-z_]*_)?(C|Fortran)(_[a-z_][0-9a-z_]*)?|[a-z_][0-9a-z_]+" | ||
) | ||
# The standard name of the language in CMake is Fortran. Names of public | ||
# variables must be in uppercase but can have substring "Fortran": | ||
public_var_pattern = "([A-Z][0-9A-Z_]*_)?Fortran(_[A-Z][0-9A-Z_]*)?|[A-Z][0-9A-Z_]+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Formatted entire CMake code base with cmake-format | ||
45b43632309cff022326472a8be0fdd5efc8f5c8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.