summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng.ang@gmail.com>2022-01-19 04:00:07 +0800
committerGitHub <noreply@github.com>2022-01-18 21:00:07 +0100
commit2a0cecbb5037d04f1ecbf5f2336ef26813e2967c (patch)
treee6bcb5d33ebb82d76f8a4ebf4c54e493f69839d4 /scripts
parent2a640662cc0480e043b8d5a5b34586246255ac98 (diff)
downloadpygments-git-2a0cecbb5037d04f1ecbf5f2336ef26813e2967c.tar.gz
Fix typos (#2030)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check_crlf.py2
-rwxr-xr-xscripts/count_token_references.py4
-rwxr-xr-xscripts/debug_lexer.py2
-rw-r--r--scripts/pylintrc18
4 files changed, 13 insertions, 13 deletions
diff --git a/scripts/check_crlf.py b/scripts/check_crlf.py
index 055446cf..7171978f 100644
--- a/scripts/check_crlf.py
+++ b/scripts/check_crlf.py
@@ -3,7 +3,7 @@
Checker for line endings
~~~~~~~~~~~~~~~~~~~~~~~~
- Make sure Python (.py) and Bash completition (.bashcomp) files do not
+ Make sure Python (.py) and Bash completion (.bashcomp) files do not
contain CR/LF newlines.
:copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS.
diff --git a/scripts/count_token_references.py b/scripts/count_token_references.py
index 85fcdbe3..e235cc40 100755
--- a/scripts/count_token_references.py
+++ b/scripts/count_token_references.py
@@ -32,8 +32,8 @@ be used to find typos in token names, as those tokens are only used by one lexer
.. option:: -s, --subtokens
When ``--subtoken`` is given each token is also counted for each of its
- parent tokens. I.e. if we have 10 occurences of the token
- ``Token.Literal.Number.Integer`` and 10 occurences of the token
+ parent tokens. I.e. if we have 10 occurrences of the token
+ ``Token.Literal.Number.Integer`` and 10 occurrences of the token
``Token.Literal.Number.Hex`` but none for ``Token.Literal.Number``, with
``--subtoken`` ``Token.Literal.Number`` would be counted as having
20 references.
diff --git a/scripts/debug_lexer.py b/scripts/debug_lexer.py
index 5cc0ef6f..0633dd70 100755
--- a/scripts/debug_lexer.py
+++ b/scripts/debug_lexer.py
@@ -36,7 +36,7 @@ class DebuggingRegexLexer(ExtendedRegexLexer):
"""
Split ``text`` into (tokentype, text) pairs.
- ``stack`` is the inital stack (default: ``['root']``)
+ ``stack`` is the initial stack (default: ``['root']``)
"""
tokendefs = self._tokens
self.ctx = ctx = LexerContext(text, 0)
diff --git a/scripts/pylintrc b/scripts/pylintrc
index aa04e12e..b602eaae 100644
--- a/scripts/pylintrc
+++ b/scripts/pylintrc
@@ -1,6 +1,6 @@
# lint Python modules using external checkers.
#
-# This is the main checker controling the other ones and the reports
+# This is the main checker controlling the other ones and the reports
# generation. It is itself both a raw checker and an astng checker in order
# to:
# * handle message activation / deactivation at the module level
@@ -66,12 +66,12 @@ include-ids=yes
# written in a file name "pylint_global.[txt|html]".
files-output=no
-# Tells wether to display a full report or only the messages
+# Tells whether to display a full report or only the messages
reports=yes
# Python expression which should return a note less than 10 (10 is the highest
# note).You have access to the variables errors warning, statement which
-# respectivly contain the number of errors / warnings messages and the total
+# respectively contain the number of errors / warnings messages and the total
# number of statements analyzed. This is used by the global evaluation report
# (R0004).
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
@@ -91,11 +91,11 @@ comment=no
# * unused variables / imports
# * undefined variables
# * redefinition of variable from builtins or from an outer scope
-# * use of variable before assigment
+# * use of variable before assignment
#
[VARIABLES]
-# Tells wether we should check for unused import in __init__ files.
+# Tells whether we should check for unused import in __init__ files.
init-import=no
# A regular expression matching names used for dummy variables (i.e. not used).
@@ -110,7 +110,7 @@ additional-builtins=
#
[TYPECHECK]
-# Tells wether missing members accessed in mixin class should be ignored. A
+# Tells whether missing members accessed in mixin class should be ignored. A
# mixin class is detected if its name ends with "mixin" (case insensitive).
ignore-mixin-members=yes
@@ -118,7 +118,7 @@ ignore-mixin-members=yes
# access to some undefined attributes.
zope=no
-# List of members which are usually get through zope's acquisition mecanism and
+# List of members which are usually get through zope's acquisition mechanism and
# so shouldn't trigger E0201 when accessed (need zope=yes to be considered).
acquired-members=REQUEST,acl_users,aq_parent
@@ -126,7 +126,7 @@ acquired-members=REQUEST,acl_users,aq_parent
# checks for :
# * doc strings
# * modules / classes / functions / methods / arguments / variables name
-# * number of arguments, local variables, branchs, returns and statements in
+# * number of arguments, local variables, branches, returns and statements in
# functions, methods
# * required module attributes
# * dangerous default values as arguments
@@ -241,7 +241,7 @@ int-import-graph=
# checks for :
# * methods without self as first argument
# * overridden methods signature
-# * access only to existant members via self
+# * access only to existent members via self
# * attributes not defined in the __init__ method
# * supported interfaces implementation
# * unreachable code