Skip to content

Commit 72f87c3

Browse files
committed
renamed folder, reworded comments
1 parent 7740a6e commit 72f87c3

File tree

14 files changed

+1437
-22
lines changed

14 files changed

+1437
-22
lines changed

.vale.ini

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,32 @@
11
# Configuration file for using Vale in the python-package-guide repository
22
#
3-
# This file, along with the rules defined in the styles directory (in YAML files), will be need to be updated based on the preferences
4-
# of the editorial team.
5-
#
6-
# Some configuration notes:
3+
# To disable checks on parts of a MarkDown or HTML file, delimit the section
4+
# using these HTML comments:
5+
# to disabled Vale checks after this line: <!-- vale off -->
6+
# to enable Vale checks after this line: <!-- vale on -->
77
#
8-
# 1) Disabling checks on some places
8+
# To disable checks based on MarkDown scope, see IgnoredScopes.
9+
# To disable checks on certain HTML elements, see IgnoredClasses.
910
#
10-
# During the initial tests, it is clear that vale rules are too strict. If you decide to adopt the internal rules, checks will need
11-
# to be disabled in some places. This can be done in MarkDown and HTML files by defining sections using:
12-
# <!-- vale off --> to disabled Vale checks after this line
13-
# <!-- vale on --> to enable Vale checks after this line
14-
#
15-
# More details about other ways to disable Vale in parts of file can be found in the config options like IgnoredScopes and IgnoredClasses
16-
#
17-
# In general, for information about the configuration can be found here: https://vale.sh/docs/topics/config
11+
# More information about the configuration can be found here:
12+
# https://vale.sh/docs/topics/config
1813

1914

20-
# Path to the styles directory, where the style rules are defined
21-
StylesPath = styles
15+
# Path to the styles directory, where style rules are defined
16+
StylesPath = vale-styles
2217

23-
# Path to a dictionary folders inside the StylesPath config directory (for example styles/sample)
24-
# This folder can have two files, accept.txt and reject.txt, with one word per line
25-
# These words will be used to check for spelling mistakes in addition to the internal Vale dictionary
26-
# see https://vale.sh/docs/topics/vocab/#folder-structure for more details
18+
# Path to a dictionary folders inside the StylesPath config subdirectory. This
19+
# folder can contain two files, accept.txt and reject.txt, with one word per
20+
# line. These words will be used to check for spelling mistakes in addition to
21+
# the internal dictionary, if the 'Vale' ruleset is enabled (see below)
22+
# See https://vale.sh/docs/topics/vocab/#folder-structure for more details
2723
Vocab = sample
2824

2925

30-
# Sections like the one below can be used to enable the style rules for specific file type
31-
# 'Vale' refers to the default style rules inside the tool, other
32-
# 'package-guide-test' refers to the package-guide-test style rules defined in subdirectories of StylesPath
26+
# Checks are defined in sections by file type, like the one below for
27+
# MarkDown. In each section you can enable groups of style rules, defined in folders
28+
# inside the StylesPath directory.
29+
# Use 'Vale' to enable the internal style rules and checks.
3330

3431
[*.md]
3532
BasedOnStyles = package-guide-test

vale-styles/config/vocabularies/sample/accept.txt

Whitespace-only changes.

vale-styles/config/vocabularies/sample/reject.txt

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
extends: substitution
2+
message: Consider using '%s' instead of '%s'
3+
level: warning
4+
ignorecase: false
5+
action:
6+
name: replace
7+
# swap maps tokens in form of bad: good
8+
swap:
9+
- (?:\spypi[\.,]?\s): PyPI # lower case defined as regex to prevent false positives in URLs
10+
- pyPi: PyPI
11+
- pyPI: PyPI
12+
- PYPI: PyPI
13+
- PyPi: PyPI
14+
- Pypi: PyPI
15+
- testPyPI: TestPyPI
16+
- testpypi: TestPyPI
17+
- testPYPI: TestPyPI
18+
- test-pypi: TestPyPI
19+
- TestPypi: TestPyPI
20+
- TestPYPI: TestPyPI
21+

0 commit comments

Comments
 (0)