Skip to content

Commit 8ee8290

Browse files
authored
docs: Fix a few typos
1 parent f4f609e commit 8ee8290

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Additional plugins
9393

9494
- add new model fields and these fields have a default value. According to
9595
`Django docs <https://docs.djangoproject.com/en/2.0/topics/migrations/#postgresql>`_
96-
this may have performance penalties especially on large tables. The prefered way
96+
this may have performance penalties especially on large tables. The preferred way
9797
is to add a new DB column with ``null=True`` because it will be created instantly
9898
and then possibly populate the table with the desired default values.
9999
Only the last migration from a sub-directory will be examined;

pylint_django/augmentations/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ def pylint_newstyle_classdef_compat(linter, warning_name, augment):
757757

758758
def apply_wrapped_augmentations():
759759
"""
760-
Apply augmentation and supression rules through monkey patching of pylint.
760+
Apply augmentation and suppression rules through monkey patching of pylint.
761761
"""
762762
# NOTE: The monkey patching is done with wrap and needs to be done in a thread safe manner to support the
763763
# parallel option of pylint (-j).

pylint_django/checkers/migrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class NewDbFieldWithDefaultChecker(checkers.BaseChecker):
4949
especially on large tables:
5050
https://docs.djangoproject.com/en/2.0/topics/migrations/#postgresql
5151
52-
The prefered way is to add a new DB column with null=True because it will
52+
The preferred way is to add a new DB column with null=True because it will
5353
be created instantly and then possibly populate the table with the
5454
desired default values.
5555
"""

pylint_django/tests/input/func_noerror_unicode_py2_compatible.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Ensures that no '__unicode__ missing' warning is emitted if the
3-
Django python3/2 compatability dectorator is used
3+
Django python3/2 compatability decorator is used
44
55
See https://github.com/PyCQA/pylint-django/issues/10
66
"""

pylint_django/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _add_transform(package_name):
2222
def fake_module_builder():
2323
"""
2424
Build a fake module to use within transformations.
25-
@package_name is a parameter from the outher scope b/c according to
25+
@package_name is a parameter from the outer scope b/c according to
2626
the docs this can't receive any parameters.
2727
http://pylint.pycqa.org/projects/astroid/en/latest/extending.html?highlight=MANAGER#module-extender-transforms
2828
"""

pylint_django/transforms/foreignkey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def infer_key_classes(node, context=None):
120120
# create list from dict_values, because it may be modified in a loop
121121
for module in list(MANAGER.astroid_cache.values()):
122122
# only load model classes from modules which match the module in
123-
# which *we think* they are defined. This will prevent infering
123+
# which *we think* they are defined. This will prevent inferring
124124
# other models of the same name which are found elsewhere!
125125
if model_name in module.locals and module.name.endswith(module_name):
126126
class_defs = _get_model_class_defs_from_module(

0 commit comments

Comments
 (0)