Skip to content

Commit 35b188b

Browse files
authored
fixes from pre-commit (#7)
1 parent 1afb7f9 commit 35b188b

19 files changed

Lines changed: 71 additions & 94 deletions

File tree

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ AlwaysBreakBeforeMultilineStrings: false
3434
AlwaysBreakTemplateDeclarations: true
3535
BinPackArguments: true
3636
BinPackParameters: true
37-
BraceWrapping:
37+
BraceWrapping:
3838
AfterClass: false
3939
AfterControlStatement: false
4040
AfterEnum: false
@@ -65,7 +65,7 @@ DisableFormat: false
6565
ExperimentalAutoDetectBinPacking: false
6666
FixNamespaceComments: true
6767
ForEachMacros: [ foreach, Q_FOREACH, BOOST_FOREACH ]
68-
IncludeCategories:
68+
IncludeCategories:
6969
- Regex: '^"'
7070
Priority: 1
7171
- Regex: '^<'

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
check_formatting:
2525
uses: NWChemEx/.github/.github/workflows/check_formatting.yaml@master
2626
with:
27-
license_config: ".github/.licenserc.yaml"
27+
license_config: ".licenserc.yaml"
2828

2929
test_nwx_docs:
3030
uses: NWChemEx/.github/.github/workflows/test_nwx_docs.yaml@master
@@ -35,4 +35,3 @@ jobs:
3535
uses: NWChemEx/.github/.github/workflows/test_nwx_library.yaml@master
3636
with:
3737
compilers: '["gcc-11", "clang-14"]'
38-
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ header:
2424
- src/scf/common/
2525
- src/scf/scf/
2626
- LICENSE
27+
- build/
2728

2829
comment: never

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ nwx_add_pybind11_module(
5858
DEPENDS "${PROJECT_NAME}"
5959
)
6060

61-
if("${BUILD_TESTING}")
61+
if("${BUILD_TESTING}")
6262
include(CTest)
6363
set(PYTHON_TEST_DIR "${NUX_TESTS_DIR}/python")
6464
set(CXX_TEST_DIR "${NUX_TESTS_DIR}/cxx")
@@ -81,7 +81,7 @@ if("${BUILD_TESTING}")
8181
nwx_pybind11_tests(
8282
py_integration_test_${PROJECT_NAME}
8383
"${PYTHON_TEST_DIR}/integration_tests/run_integration_tests.py"
84-
SUBMODULES nwchemex nux chemcache simde chemist pluginplay
84+
SUBMODULES nwchemex nux chemcache simde chemist pluginplay
8585
parallelzone scf friendzone
8686
)
8787
endif()

cmake/get_nwx_cmake.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ macro(get_nwx_cmake)
2828
)
2929
endmacro()
3030

31-
get_nwx_cmake()
31+
get_nwx_cmake()

docs/source/conf.py

Lines changed: 41 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@
2121
# http://www.sphinx-doc.org/en/master/config
2222

2323
import os
24+
2425
import git
2526

2627
# -- Project information -----------------------------------------------------
2728

28-
project = u'SCF'
29-
copyright = u'2024, NWChemEx Team'
30-
author = u'NWChemEx Team'
29+
project = "SCF"
30+
copyright = "2024, NWChemEx Team"
31+
author = "NWChemEx Team"
3132

3233
##############################################################################
3334
# Shouldn't need to change anything below this point #
@@ -61,48 +62,48 @@
6162

6263
# If your documentation needs a minimal Sphinx version, state it here.
6364
#
64-
needs_sphinx = '7.2.6'
65+
needs_sphinx = "7.2.6"
6566

6667
# Add any Sphinx extension module names here, as strings. They can be
6768
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
6869
# ones.
6970
extensions = [
70-
'sphinx.ext.autodoc',
71-
'sphinx.ext.mathjax',
72-
'sphinx.ext.githubpages',
73-
'sphinx.ext.autosummary',
74-
'sphinx_rtd_theme',
71+
"sphinx.ext.autodoc",
72+
"sphinx.ext.mathjax",
73+
"sphinx.ext.githubpages",
74+
"sphinx.ext.autosummary",
75+
"sphinx_rtd_theme",
7576
# 'sphinxcontrib.bibtex',
76-
'sphinx_tabs.tabs',
77-
'sphinx.ext.intersphinx',
77+
"sphinx_tabs.tabs",
78+
"sphinx.ext.intersphinx",
7879
]
7980

8081
# Add any paths that contain templates here, relative to this directory.
81-
#templates_path = ['_templates']
82+
# templates_path = ['_templates']
8283

8384
# The suffix(es) of source filenames.
8485
# You can specify multiple suffix as a list of string:
8586
#
8687
# source_suffix = ['.rst', '.md']
87-
source_suffix = '.rst'
88+
source_suffix = ".rst"
8889

8990
# The master toctree document.
90-
master_doc = 'index'
91+
master_doc = "index"
9192

9293
# The language for content autogenerated by Sphinx. Refer to documentation
9394
# for a list of supported languages.
9495
#
9596
# This is also used if you do content translation via gettext catalogs.
9697
# Usually you set "language" from the command line for these cases.
97-
language = 'en'
98+
language = "en"
9899

99100
# List of patterns, relative to source directory, that match files and
100101
# directories to ignore when looking for source files.
101102
# This pattern also affects html_static_path and html_extra_path .
102103
exclude_patterns = []
103104

104105
# The name of the Pygments (syntax highlighting) style to use.
105-
pygments_style = 'sphinx'
106+
pygments_style = "sphinx"
106107

107108
numfig = True
108109
numfig_secnum_depth = 0
@@ -112,20 +113,20 @@
112113
# The theme to use for HTML and HTML Help pages. See the documentation for
113114
# a list of builtin themes.
114115
#
115-
html_theme = 'sphinx_rtd_theme'
116+
html_theme = "sphinx_rtd_theme"
116117

117118
# html_logo = "assets/logo.png"
118119

119120
# Theme options are theme-specific and customize the look and feel of a theme
120121
# further. For a list of options available for each theme, see the
121122
# documentation.
122123
#
123-
html_theme_options = {'logo_only': True}
124+
html_theme_options = {"logo_only": True}
124125

125126
# Add any paths that contain custom static files (such as style sheets) here,
126127
# relative to this directory. They are copied after the builtin static files,
127128
# so a file named "default.css" will overwrite the builtin "default.css".
128-
#html_static_path = ['_static']
129+
# html_static_path = ['_static']
129130

130131
# Custom sidebar templates, must be a dictionary that maps document names
131132
# to template names.
@@ -140,23 +141,20 @@
140141
# -- Options for HTMLHelp output ---------------------------------------------
141142

142143
# Output file base name for HTML help builder.
143-
htmlhelp_basename = project + 'doc'
144+
htmlhelp_basename = project + "doc"
144145

145146
# -- Options for LaTeX output ------------------------------------------------
146147

147148
latex_elements = {
148149
# The paper size ('letterpaper' or 'a4paper').
149150
#
150151
# 'papersize': 'letterpaper',
151-
152152
# The font size ('10pt', '11pt' or '12pt').
153153
#
154154
# 'pointsize': '10pt',
155-
156155
# Additional stuff for the LaTeX preamble.
157156
#
158157
# 'preamble': '',
159-
160158
# Latex figure (float) alignment
161159
#
162160
# 'figure_align': 'htbp',
@@ -166,30 +164,43 @@
166164
# (source start file, target name, title,
167165
# author, documentclass [howto, manual, or own class]).
168166
latex_documents = [
169-
(master_doc, project + '.tex', project + ' Documentation', author,
170-
'manual'),
167+
(
168+
master_doc,
169+
project + ".tex",
170+
project + " Documentation",
171+
author,
172+
"manual",
173+
),
171174
]
172175

173176
# -- Options for manual page output ------------------------------------------
174177

175178
# One entry per manual page. List of tuples
176179
# (source start file, name, description, authors, manual section).
177-
man_pages = [(master_doc, project.lower(), project + ' Documentation',
178-
[author], 1)]
180+
man_pages = [
181+
(master_doc, project.lower(), project + " Documentation", [author], 1)
182+
]
179183

180184
# -- Options for Texinfo output ----------------------------------------------
181185

182186
# Grouping the document tree into Texinfo files. List of tuples
183187
# (source start file, target name, title, author,
184188
# dir menu entry, description, category)
185189
texinfo_documents = [
186-
(master_doc, project, project + ' Documentation', author, project,
187-
'One line description of project.', 'Miscellaneous'),
190+
(
191+
master_doc,
192+
project,
193+
project + " Documentation",
194+
author,
195+
project,
196+
"One line description of project.",
197+
"Miscellaneous",
198+
),
188199
]
189200

190201
# -- Extension configuration -------------------------------------------------
191202

192203
# -- Options for intersphinx extension ---------------------------------------
193204

194205
# Example configuration for intersphinx: refer to the Python standard library.
195-
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
206+
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}

docs/source/module_api/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Module API
1818

1919
.. toctree::
2020
:maxdepth: 1
21-
:caption: Packages
21+
:caption: Packages

src/cxx/nux/bo_approximation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const auto desc = R"(
2727
Born-Oppenheimer Hamiltonian Driver
2828
-----------------------------------
2929
30-
This module defines the algorithm used throughout NWChemEx to convert a
30+
This module defines the algorithm used throughout NWChemEx to convert a
3131
ChemicalSystem object into a Hamiltonian object using the Born-Oppenheimer
3232
approximation.
3333
@@ -87,4 +87,4 @@ MODULE_RUN(BOApproximation) {
8787
return pt::wrap_results(rv, H);
8888
}
8989

90-
} // namespace nux
90+
} // namespace nux

src/python/nux/export_nux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ namespace nux {
2222

2323
EXPORT_PLUGIN(nux, m) {}
2424

25-
} // namespace nux
25+
} // namespace nux

tests/cxx/test_nux.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ ResultType make_h2() {
4444
static_assert(std::is_same_v<ResultType, nuclei>);
4545
}
4646
}
47-
} // namespace test_nux
47+
} // namespace test_nux

0 commit comments

Comments
 (0)