-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pyspelling.yml
91 lines (89 loc) · 2.38 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
matrix:
- name: markdown
aspell:
lang: en
ignore-case: true
dictionary:
wordlists:
- docs/dictionary/wordlist.txt
encoding: utf-8
pipeline:
- pyspelling.filters.markdown:
- pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`~]'
delimiters:
# Ignore text between inline back ticks as this is code or hightlight words
- open: '(?P<open>`+)'
close: '(?P=open)'
# Ignore surrounded in <> as in RST it is link
- open: '<(https?://[^\\s/$.?#].[^\\s]+|[A-Za-z0-9-_:.]+)'
close: '>'
sources:
- 'docs/*.rst'
- '**/*.md'
- '.github/**/*.md'
default_encoding: utf-8
- name: json-schemas
aspell:
lang: en
ignore-case: true
dictionary:
wordlists:
- docs/dictionary/wordlist.txt
pipeline:
- pyspelling.filters.javascript:
jsdocs: true
line_comments: false
block_comments: false
strings: true
- pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`~]'
delimiters:
# Ignore Pāli word as it cannot be added to dictionary
- open: '(Pāli)'
close: '-'
sources:
- metadata_backend/helpers/schemas/*.json
default_encoding: utf-8
- name: python
sources:
- '{metadata_submitter,scripts}/**/*.py'
aspell:
lang: en
dictionary:
wordlists:
- docs/dictionary/wordlist.txt
pipeline:
- pyspelling.filters.python:
group_comments: true
- pyspelling.flow_control.wildcard:
allow:
- py-comment
- pyspelling.filters.context:
context_visible_first: true
delimiters:
# Ignore lint (noqa) and coverage (pragma) as well as shebang (#!) and bandit (nosec)
- open: '^(?: *(?:noqa\b|pragma: no cover|nosec)|!)'
close: '$'
# Ignore Python encoding string -*- encoding stuff -*-
- open: '^ *-\*-'
close: '-\*-$'
# Ignore docstring variable param
- open: '^(?: *(:param \w+:))'
close: '$'
- pyspelling.filters.context:
context_visible_first: true
escapes: '\\[\\`]'
delimiters:
# Ignore multiline content between fences (fences can have 3 or more back ticks)
# ```
# content
# ```
- open: '(?s)^(?P<open> *`{3,})$'
close: '^(?P=open)$'
# Ignore text between inline back ticks
- open: '(?P<open>`+)'
close: '(?P=open)'
- pyspelling.filters.url: