-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into pre-commit-ci-update-config
- Loading branch information
Showing
25 changed files
with
1,496 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ __pycache__ | |
*notes-from-review.md | ||
*.idea* | ||
# Grammar / syntax checkers | ||
.vale.ini | ||
styles/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Configuration file for using Vale in the python-package-guide repository | ||
# | ||
# To disable checks on parts of a MarkDown or HTML file, delimit the section | ||
# using these HTML comments: | ||
# to disabled Vale checks after this line: <!-- vale off --> | ||
# to enable Vale checks after this line: <!-- vale on --> | ||
# | ||
# To disable checks based on MarkDown scope, see IgnoredScopes. | ||
# To disable checks on certain HTML elements, see IgnoredClasses. | ||
# | ||
# More information about the configuration can be found here: | ||
# https://vale.sh/docs/topics/config | ||
|
||
|
||
# Path to the styles directory, where style rules are defined | ||
StylesPath = vale-styles | ||
|
||
# Path to a dictionary folders inside the StylesPath config subdirectory. This | ||
# folder can contain two files, accept.txt and reject.txt, with one word per | ||
# line. These words will be used to check for spelling mistakes in addition to | ||
# the internal dictionary, if the 'Vale' ruleset is enabled (see below) | ||
# See https://vale.sh/docs/topics/vocab/#folder-structure for more details | ||
Vocab = sample | ||
|
||
|
||
# Checks are defined in sections by file type, like the one below for | ||
# MarkDown. In each section you can enable groups of style rules, defined in folders | ||
# inside the StylesPath directory. | ||
# Use 'Vale' to enable the internal style rules and checks. | ||
|
||
[*.md] | ||
BasedOnStyles = package-guide-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
extends: substitution | ||
message: Consider using '%s' instead of '%s' | ||
level: warning | ||
ignorecase: false | ||
action: | ||
name: replace | ||
# swap maps tokens in form of bad: good | ||
swap: | ||
# lower case defined as regex to prevent false positives in URLs or other identifiers | ||
- (?:\spypi[\.,]?\s): PyPI | ||
- (?:\stestpypi[\.,;:]?\s): TestPyPI | ||
- (?:\stest-pypi[\.,;:]?\s): TestPyPI | ||
# other tests are defined with strings | ||
- pyPi: PyPI | ||
- pyPI: PyPI | ||
- PYPI: PyPI | ||
- PyPi: PyPI | ||
- Pypi: PyPI | ||
- testPyPI: TestPyPI | ||
- testPYPI: TestPyPI | ||
- TestPypi: TestPyPI | ||
- TestPYPI: TestPyPI |
Oops, something went wrong.