Skip to content

Commit f70f611

Browse files
authored
fixes from pre-commit (#220)
1 parent db3677a commit f70f611

File tree

121 files changed

+245
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+245
-229
lines changed

.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/enable_sigma.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
set(ENABLE_SIGMA ON)
1+
set(ENABLE_SIGMA ON)

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
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
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ header:
2626
- docs/requirements.txt
2727
- docs/source/bibliography/*.bib
2828
- version.txt
29+
- build/
2930

3031
comment: never

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ cmaize_option_list(
4545
ENABLE_CUTENSOR OFF "Should we enable cuTENSOR?"
4646
)
4747

48-
if("${ENABLE_CUTENSOR}")
48+
if("${ENABLE_CUTENSOR}")
4949
if("${ENABLE_SIGMA}")
5050
set(MSG "Sigma is not compatible with cuTENSOR. Turning Sigma OFF.")
5151
message(WARNING ${MSG})
@@ -116,7 +116,7 @@ if("${BUILD_TESTING}")
116116
set(cxx_test_dir "${CMAKE_CURRENT_LIST_DIR}/tests/cxx")
117117
set(cxx_unit_test_dir "${cxx_test_dir}/unit_tests/${PROJECT_NAME}")
118118
set(
119-
cxx_acceptance_test_dir
119+
cxx_acceptance_test_dir
120120
"${cxx_test_dir}/acceptance_tests/${PROJECT_NAME}"
121121
)
122122
set(
@@ -127,7 +127,7 @@ if("${BUILD_TESTING}")
127127
set(python_unit_test_dir "${python_test_dir}/unit_tests")
128128

129129
include(get_catch2)
130-
130+
131131
cmaize_add_tests(
132132
test_unit_${PROJECT_NAME}
133133
SOURCE_DIR "${cxx_unit_test_dir}"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@
174174
incurred by, or claims asserted against, such Contributor by reason
175175
of your accepting any such warranty or additional liability.
176176

177-
END OF TERMS AND CONDITIONS
177+
END OF TERMS AND CONDITIONS

cmake/FindcuTENSOR.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ if(NOT cuTENSOR_FOUND)
8888
VERSION ${CUTENSOR_VERSION}
8989
URL https://developer.download.nvidia.com/compute/cutensor/redist/libcutensor/linux-x86_64/libcutensor-linux-x86_64-${CUTENSOR_VERSION}-archive.tar.xz
9090
# Eigen's CMakelists are not intended for library use
91-
DOWNLOAD_ONLY YES
91+
DOWNLOAD_ONLY YES
9292
)
93-
93+
9494
set(cuTENSOR_LIBRARY ${cutensor_SOURCE_DIR}/lib/${CUDAToolkit_VERSION_MAJOR}/libcutensor.so)
95-
set(cuTENSOR_INCLUDE_DIR ${cutensor_SOURCE_DIR}/include)
95+
set(cuTENSOR_INCLUDE_DIR ${cutensor_SOURCE_DIR}/include)
9696

9797

9898
set(cuTENSOR_FOUND TRUE)
@@ -132,4 +132,4 @@ if(cuTENSOR_FOUND)
132132
endif()
133133

134134
unset(cuTENSOR_NO_CONFIG)
135-
unset(cuTENSOR_IS_HEADER_ONLY)
135+
unset(cuTENSOR_IS_HEADER_ONLY)

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
sphinx==v7.2.6
22
sphinx_rtd_theme==1.3.0
3-
sphinxcontrib-bibtex
43
sphinx_tabs
4+
sphinxcontrib-bibtex

docs/source/conf.py

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424

2525
# -- Project information -----------------------------------------------------
2626

27-
project = u'TensorWrapper'
28-
copyright = u'2020, NWChemEx Team'
29-
author = u'NWChemEx Team'
27+
project = "TensorWrapper"
28+
copyright = "2020, NWChemEx Team"
29+
author = "NWChemEx Team"
3030

31-
version = '1.0.0'
31+
version = "1.0.0"
3232
# The full version, including alpha/beta/rc tags
3333
release = version
3434

@@ -40,45 +40,49 @@
4040

4141
# If your documentation needs a minimal Sphinx version, state it here.
4242
#
43-
needs_sphinx = '1.3'
43+
needs_sphinx = "1.3"
4444

4545
# Add any Sphinx extension module names here, as strings. They can be
4646
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4747
# ones.
4848
extensions = [
49-
'sphinx.ext.autodoc', 'sphinx.ext.mathjax', 'sphinx.ext.githubpages',
50-
'sphinx.ext.autosummary', 'sphinx_rtd_theme', 'sphinxcontrib.bibtex'
49+
"sphinx.ext.autodoc",
50+
"sphinx.ext.mathjax",
51+
"sphinx.ext.githubpages",
52+
"sphinx.ext.autosummary",
53+
"sphinx_rtd_theme",
54+
"sphinxcontrib.bibtex",
5155
]
5256
dir_path = os.path.dirname(os.path.realpath(__file__))
5357
doc_path = os.path.dirname(dir_path)
5458
root_path = os.path.dirname(doc_path)
5559

5660
# Add any paths that contain templates here, relative to this directory.
57-
#templates_path = ['_templates']
61+
# templates_path = ['_templates']
5862

5963
# The suffix(es) of source filenames.
6064
# You can specify multiple suffix as a list of string:
6165
#
6266
# source_suffix = ['.rst', '.md']
63-
source_suffix = '.rst'
67+
source_suffix = ".rst"
6468

6569
# The master toctree document.
66-
master_doc = 'index'
70+
master_doc = "index"
6771

6872
# The language for content autogenerated by Sphinx. Refer to documentation
6973
# for a list of supported languages.
7074
#
7175
# This is also used if you do content translation via gettext catalogs.
7276
# Usually you set "language" from the command line for these cases.
73-
language = 'en'
77+
language = "en"
7478

7579
# List of patterns, relative to source directory, that match files and
7680
# directories to ignore when looking for source files.
7781
# This pattern also affects html_static_path and html_extra_path .
7882
exclude_patterns = []
7983

8084
# The name of the Pygments (syntax highlighting) style to use.
81-
pygments_style = 'sphinx'
85+
pygments_style = "sphinx"
8286

8387
numfig = True
8488

@@ -87,20 +91,20 @@
8791
# The theme to use for HTML and HTML Help pages. See the documentation for
8892
# a list of builtin themes.
8993
#
90-
html_theme = 'sphinx_rtd_theme'
94+
html_theme = "sphinx_rtd_theme"
9195

9296
html_logo = "assets/logo_candybar.png"
9397

9498
# Theme options are theme-specific and customize the look and feel of a theme
9599
# further. For a list of options available for each theme, see the
96100
# documentation.
97101
#
98-
html_theme_options = {'vcs_pageview_mode': 'edit', 'logo_only': True}
102+
html_theme_options = {"vcs_pageview_mode": "edit", "logo_only": True}
99103

100104
# Add any paths that contain custom static files (such as style sheets) here,
101105
# relative to this directory. They are copied after the builtin static files,
102106
# so a file named "default.css" will overwrite the builtin "default.css".
103-
#html_static_path = ['_static']
107+
# html_static_path = ['_static']
104108

105109
# Custom sidebar templates, must be a dictionary that maps document names
106110
# to template names.
@@ -114,32 +118,29 @@
114118

115119
# Allows the edit on GitHub button to make editing the docs easier.
116120
html_context = {
117-
'display_github': True,
118-
'github_user': 'NWChemEx',
119-
'github_repo': 'TensorWrapper',
120-
'github_version': 'master/docs/source/',
121+
"display_github": True,
122+
"github_user": "NWChemEx",
123+
"github_repo": "TensorWrapper",
124+
"github_version": "master/docs/source/",
121125
}
122126

123127
# -- Options for HTMLHelp output ---------------------------------------------
124128

125129
# Output file base name for HTML help builder.
126-
htmlhelp_basename = project + 'doc'
130+
htmlhelp_basename = project + "doc"
127131

128132
# -- Options for LaTeX output ------------------------------------------------
129133

130134
latex_elements = {
131135
# The paper size ('letterpaper' or 'a4paper').
132136
#
133137
# 'papersize': 'letterpaper',
134-
135138
# The font size ('10pt', '11pt' or '12pt').
136139
#
137140
# 'pointsize': '10pt',
138-
139141
# Additional stuff for the LaTeX preamble.
140142
#
141143
# 'preamble': '',
142-
143144
# Latex figure (float) alignment
144145
#
145146
# 'figure_align': 'htbp',
@@ -149,21 +150,27 @@
149150
# (source start file, target name, title,
150151
# author, documentclass [howto, manual, or own class]).
151152
latex_documents = [
152-
(master_doc, project + '.tex', project + ' Documentation', author,
153-
'manual'),
153+
(
154+
master_doc,
155+
project + ".tex",
156+
project + " Documentation",
157+
author,
158+
"manual",
159+
),
154160
]
155161

156162
# -- Extension configuration -------------------------------------------------
157163

158164
# -- Options for intersphinx extension ---------------------------------------
159165

160166
# Example configuration for intersphinx: refer to the Python standard library.
161-
intersphinx_mapping = {'https://docs.python.org/': None}
167+
intersphinx_mapping = {"https://docs.python.org/": None}
162168

163169
# -- Options for bibtex --------------------------------------------------------
164170

165171
bibtex_bibfiles = [
166-
'bibliography/background.bib', 'bibliography/other_libraries.bib'
172+
"bibliography/background.bib",
173+
"bibliography/other_libraries.bib",
167174
]
168-
bibtex_reference_style = 'super'
169-
bibtex_default_style = 'plain'
175+
bibtex_reference_style = "super"
176+
bibtex_default_style = "plain"

docs/source/developer/design/sparse_maps.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
Designing the Sparse Map Component
1919
##################################
2020

21-
TODO: Write me!!!
21+
TODO: Write me!!!

0 commit comments

Comments
 (0)