forked from pytorch/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pyspelling.yml
42 lines (42 loc) · 1.19 KB
/
.pyspelling.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
spellchecker: aspell
matrix:
- name: python
sources:
- beginner_source/*.py
dictionary:
wordlists:
- en-wordlist.txt
pipeline:
- pyspelling.filters.python:
group_comments: true
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Exclude figure rST tags
- open: '\.\.\s+(figure|literalinclude|math|image|grid)::'
close: '\n'
# Exclude raw directive
- open: '\.\. (raw)::.*$\n*'
close: '\n'
# Exclude Python coding directives
- open: '-\*- coding:'
close: '\n'
# Exclude Authors:
- open: 'Author(|s):'
close: '\n'
# Exclude .rst directives:
- open: ':math:`.*`'
close: ' '
# Ignore multiline content in codeblock
- open: '(?s)^::\n\n '
close: '^\n'
# Ignore reStructuredText block directives
- open: '\.\. (code-block)::.*$\n*'
content: '(?P<first>(^(?P<indent>[ ]+).*$\n))(?P<other>(^([ \t]+.*|[ \t]*)$\n)*)'
close: '(^(?![ \t]+.*$))'
- pyspelling.filters.markdown:
- pyspelling.filters.html:
ignores:
- code
- pre
- pyspelling.filters.url: