Skip to content

Commit

Permalink
Update RST files scan
Browse files Browse the repository at this point in the history
  • Loading branch information
luszczewskakasia1 committed Jan 14, 2025
1 parent 0458ea4 commit 63eef2a
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/reusable_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev
sudo apt-get install -y black cmake clang-format-15 cmake-format libhwloc-dev doxygen
# Latest distros do not allow global pip installation
- name: Install Python requirements in venv
run: |
python3 -m venv .venv
. .venv/bin/activate
echo "$PATH" >> $GITHUB_PATH
python3 -m pip install -r third_party/requirements.txt
python3 -m pip install bandit codespell
- name: Configure CMake
Expand Down Expand Up @@ -64,6 +65,12 @@ jobs:
- name: Run codespell
run: python3 ./.github/scripts/run-codespell.py

- name: Check spelling in docs
run: |
cmake -B build
cmake --build build --target docs
sphinx-build -b spelling ./build/docs_build/config ./build/docs_build/spelling_log -W
# Run Bandit recursively, but omit _deps directory (with 3rd party code) and python's venv
- name: Run Bandit
run: python3 -m bandit -r . -x '/_deps/,/.venv/'
2 changes: 1 addition & 1 deletion docs/config/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ INLINE_SIMPLE_STRUCTS = NO
# types are typedef'ed and only the typedef is referenced, never the tag name.
# The default value is: NO.

TYPEDEF_HIDES_STRUCT = NO
TYPEDEF_HIDES_STRUCT = YES

# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This
# cache is used to resolve symbols given their name and scope. Since this can be
Expand Down
5 changes: 4 additions & 1 deletion docs/config/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["breathe"]
extensions = ["breathe", "sphinxcontrib.spelling"]

spelling_show_suggestions = True
spelling_word_list_filename = "spelling_exceptions.txt"

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down
77 changes: 77 additions & 0 deletions docs/config/spelling_exceptions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
addr
allocatable
allocator
allocators
calloc
CXL
copyable
customizable
daxX
deallocation
deallocating
deallocations
Devdax
dev
Globals
hMemtarget
hPool
hProvider
highPtr
io
interprocess
ipc
jemalloc
lowPtr
malloc
maxnode
mem
mempolicies
mempolicy
Mempolicy
memspace
Memspace
memspaces
Memtarget
memtarget
memtargets
middleware
multithreading
Nodemask
nodemask
numa
oneAPI
oneTBB
os
params
partList
pid
poolable
pre
preallocated
preallocated
providerIpcData
providerIpcData
providential
ptr
realloc
Scalable
scalable
stdout
Tiering
tiering
topologies
umf
umfGetIPCHandle
umfMemoryProviderAlloc
umfMemoryProviderGetLastNativeError
umfMemoryProviderOpenIPCHandle
umfOsMemoryProviderParamsDestroy
umfPool
umfPoolCalloc
umfPoolDestroy
umfPoolGetTag
umfPoolMallocUsableSize
umfPoolRealloc
umfMemspaceUserFilter
umfMemspaceMemtargetAdd
unfreed
1 change: 1 addition & 0 deletions scripts/check_license/file-exceptions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ grep -v -E -e 'benchmark/ubench.h' \
-e 'ChangeLog' \
-e 'CODEOWNERS$' \
-e 'docs/assets/.*' \
-e 'docs/config/spelling_exceptions.txt' \
-e 'docs/config/conf.py' \
-e 'docs/config/Doxyfile' \
-e 'include/umf/proxy_lib_new_delete.h' \
Expand Down
6 changes: 5 additions & 1 deletion third_party/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ black==24.3.0
# Tests
packaging==24.2
# Generating HTML documentation
pygments==2.19.1
pygments==2.18.0
sphinxcontrib_applehelp==2.0.0
sphinxcontrib_devhelp==2.0.0
sphinxcontrib_htmlhelp==2.1.0
Expand All @@ -15,3 +15,7 @@ sphinxcontrib_qthelp==2.0.0
breathe==4.35.0
sphinx==8.1.3
sphinx_book_theme==1.1.3
# Spelling check in documentation
pyenchant==3.2.2
sphinxcontrib-spelling==8.0.0

0 comments on commit 63eef2a

Please sign in to comment.