Skip to content

Commit e47a80a

Browse files
authored
Migrate to Vale>=3 (#652)
* Migrate to Vale>=3 * Fix Vale errors
1 parent 34f6c22 commit e47a80a

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ repos:
2424
- id: flake8
2525

2626
- repo: https://github.com/codespell-project/codespell
27-
rev: v2.2.2
27+
rev: v2.2.6
2828
hooks:
2929
- id: codespell
3030
args: [
31+
"--ignore-words",
32+
"doc/styles/config/vocabularies/ANSYS/accept.txt",
3133
"doc src",
3234
"*.py *.rst *.md",
3335
]

doc/.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Vocab = ANSYS
2626

2727
# Apply the following styles
2828
BasedOnStyles = Vale, Google
29+
Vale.Terms = NO
2930

3031
# Removing Google-specific rule - Not applicable under some circumstances
3132
Google.WordList = NO

doc/styles/.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
*
2-
!Vocab
3-
!Vocab/**
2+
!config/vocabularies/**
43
!.gitignore

doc/styles/Vocab/ANSYS/accept.txt renamed to doc/styles/config/vocabularies/ANSYS/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
ANSYS
55
API
66
HDF5
7+
mecanic
78
postprocess
89
postprocessing
910
(PyDPF\s|PyDPF-Core|PyDPF-Post)

src/ansys/dpf/post/post_utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def load_solution(data_sources, physics_type=None, analysis_type=None):
4444
data_sources: str, ansys.dpf.core.DataSources
4545
Path to the file to open or the :class:`ansys.dpf.core.DataSources` class.
4646
physics_type: common._PhysicsType, str, optional
47-
Type of phsyics described in the specified data sources. Options are
47+
Type of physics described in the specified data sources. Options are
4848
``"mecanic"`` or ``"thermal"``. The default is ``None``, in which case
4949
the data sources are read to determine the physics type.
5050
analysis_type: common._AnalysisType, str, optional

0 commit comments

Comments
 (0)