From 155c6781076c6bb832a0eaccea0a59cc4803b1f3 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Sun, 14 Aug 2022 17:15:47 +0800 Subject: [PATCH] Fix typos Found via this command: codespell -S "./dynaconf/vendor/*,./docs/pt-br/*,./.mypy_cache/*,*.svg" -L hashi --- 3.x-release-notes.md | 2 +- CHANGELOG.md | 50 +++++++++---------- docs/envvars.md | 2 +- docs/flask.md | 4 +- docs/index.md | 2 +- docs/validation.md | 2 +- dynaconf/base.py | 20 ++++---- dynaconf/cli.py | 2 +- dynaconf/contrib/django_dynaconf_v2.py | 2 +- dynaconf/contrib/flask_dynaconf.py | 2 +- dynaconf/default_settings.py | 2 +- dynaconf/loaders/base.py | 2 +- dynaconf/loaders/toml_loader.py | 2 +- dynaconf/utils/__init__.py | 4 +- dynaconf/utils/files.py | 2 +- dynaconf/validator_conditions.py | 2 +- tests/test_base.py | 10 ++-- tests/test_django.py | 2 +- tests/test_toml_loader.py | 2 +- tests/test_utils.py | 6 +-- tests/test_validators.py | 4 +- tests/test_validators_conditions.py | 2 +- tests/test_yaml_loader.py | 2 +- tests_functional/README.md | 2 +- tests_functional/common-encoding/program.py | 4 +- tests_functional/common/program.py | 4 +- .../issues/182_multiple_locations/app.py | 2 +- .../issues/384_dotted_set/README.md | 4 +- 28 files changed, 73 insertions(+), 73 deletions(-) diff --git a/3.x-release-notes.md b/3.x-release-notes.md index 1593d9d95..0753c639b 100644 --- a/3.x-release-notes.md +++ b/3.x-release-notes.md @@ -66,7 +66,7 @@ key = 'value' key = 'value' ``` -**Now starting on 3.0.0** the environments are disabled by default, so the same file can be crated as. +**Now starting on 3.0.0** the environments are disabled by default, so the same file can be created as. ```toml key = 'value' diff --git a/CHANGELOG.md b/CHANGELOG.md index 524e24c86..80efdfb9e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -637,7 +637,7 @@ Other - Fix #478 Make alias for environment -> environments (#534) [Bruno Rocha] - This is a commom mistake to pass `environment` so it is alias. + This is a common mistake to pass `environment` so it is alias. Fix #478 - Fix #462 make DynaBox nested List to use DynaBox as default class @@ -797,7 +797,7 @@ Other * Change map to list comprehension and create empty [] as default value - * fix wrong identation + * fix wrong indentation - Fix merging hyperlink to fix #454 (#458) [Ilito Torquato, Ilito Torquato] - Specify flask extension initializers by entry point object reference @@ -900,7 +900,7 @@ Other - Fix #432 no need for warning when env is missing on a file (#438) [Bruno Rocha] - When env is missing on a file ther eis no need to output + When env is missing on a file there eis no need to output a warning. All envs are optional on files. @@ -1237,7 +1237,7 @@ Other Fix #327 Fix #341 - Exemples added: + Examples added: example/issues/323_DEFAULT_VALUES_RESOLUTION/ example/issues/325_flask_dot_env/ @@ -1591,7 +1591,7 @@ Other The release of python-box https://github.com/cdgriffith/Box/pull/116 is a breaking change. - So pinning this until this project addapts. + So pinning this until this project adapts. Also pinning other direct deps. - Fix #258 custom message for validators. [Bruno Rocha] @@ -1982,7 +1982,7 @@ Other Use the Key Value API rather than the old 'read' and 'write' methods (#198) - Fix #194 flask.app.config __setitem__ (#199) [Bruno Rocha] - Flask.config was not proxying __setitem__ atribute so this + Flask.config was not proxying __setitem__ attribute so this change adds a call to __setitem__ on contrib/flask_dynaconf - Use the Key Value API rather than the old 'read' and 'write' methods (#198) [Raoul Snyman] @@ -2096,7 +2096,7 @@ Other HOTFIX config.md on docs [skip ci] (#171) Fix some open file descriptors on exampls and tests (#172) Fix #151 setup pre-commit and black (#173) - Add CONTRIBUTING.md, conrtib isntructions and Black badge (#174) + Add CONTRIBUTING.md, contrib isntructions and Black badge (#174) Fix release script David Moreau Simard (1): @@ -2129,7 +2129,7 @@ Other HOTFIX config.md on docs [skip ci] (#171) Fix some open file descriptors on exampls and tests (#172) Fix #151 setup pre-commit and black (#173) - Add CONTRIBUTING.md, conrtib isntructions and Black badge (#174) + Add CONTRIBUTING.md, contrib isntructions and Black badge (#174) Fix release script David Moreau Simard (1): @@ -2139,7 +2139,7 @@ Other Skip reloading envs for validators that only apply to current_env (#162) Fix #163 Allow disabling env prefix (#164) - Fix release script. [Bruno Rocha] -- Add CONTRIBUTING.md, conrtib isntructions and Black badge (#174) +- Add CONTRIBUTING.md, contrib isntructions and Black badge (#174) [Bruno Rocha] - Fix #151 setup pre-commit and black (#173) [Bruno Rocha] @@ -2207,7 +2207,7 @@ Other removed logzero, cached logger using lru_cache (that means that if loglevel changes, log changes) - - imporved docs and badges. + - improved docs and badges. - Fix typos in bash export examples. [David Moreau Simard] - HOTIX: Django doc. [Bruno Rocha] - Added Django explicit mode to docs (#149) [Bruno Rocha] @@ -2238,7 +2238,7 @@ Other Fix #110 add docs for dynaconf_include Add dynaconf_include examples Set up CI with Azure Pipelines (#142) - Add dynaconf_merge fucntionality for dict and list settings. (#139) + Add dynaconf_merge functionality for dict and list settings. (#139) Preparing for 2.0.0 Byungjin Park (1): @@ -2300,7 +2300,7 @@ Other Fix #110 add docs for dynaconf_include Add dynaconf_include examples Set up CI with Azure Pipelines (#142) - Add dynaconf_merge fucntionality for dict and list settings. (#139) + Add dynaconf_merge functionality for dict and list settings. (#139) Preparing for 2.0.0 Byungjin Park (1): @@ -2359,10 +2359,10 @@ Other - start_dotenv is now Lazy (only when settings._setup is called) - Added new _FOR_DYNACONF config options ENV_SWITCHER, SKIP_FILES, INCLUDES & SECRETS - Renamed config PROJECT_ROOT -> ROOT_PATH -- Add dynaconf_merge fucntionality for dict and list settings. (#139) +- Add dynaconf_merge functionality for dict and list settings. (#139) [Bruno Rocha] - If your settings has existing variables of types `list` ot `dict` and you want to `merge` instead of `override` then + If your settings has existing variables of types `list` or `dict` and you want to `merge` instead of `override` then the `dynaconf_merge` and `dynaconf_merge_unique` stanzas can mark that variable as a candidate for merging. For **dict** value: @@ -2399,7 +2399,7 @@ Other dynaconf_merge: true ``` - The `dynaconf_merge` token will mark that object to be merged with existing values (of course `dynaconf_merge` key will not be added to the final settings it is jsut a mark) + The `dynaconf_merge` token will mark that object to be merged with existing values (of course `dynaconf_merge` key will not be added to the final settings it is just a mark) The end result will be on `[development]` env: @@ -2682,7 +2682,7 @@ Other - Python 3.4 has different error message. [Mantas] - Remove mocker fixture. [Mantas] - Left this accidentaly. + Left this accidentally. https://travis-ci.org/dynaconf/dynaconf/jobs/452612532 - Add INSTANCE_FOR_DYNACONF and --instance. [Mantas] @@ -2884,8 +2884,8 @@ Other - Add example for merge_configs. [Bruno Rocha] - Add setting merging. [Raoul Snyman] - - Addd the ability to merge nested structures instead of completely overwriting them - - Use monkeypatch to stop one test from interferring with another + - Add the ability to merge nested structures instead of completely overwriting them + - Use monkeypatch to stop one test from interfering with another - Updated documentation @@ -2935,7 +2935,7 @@ Other [latty] - Release 1.0.3. [Bruno Rocha] - - Excluded example and tests from realease dist + - Excluded example and tests from release dist - removed root logger configuration @@ -3032,7 +3032,7 @@ Other - Increase cli test coverage. [Bruno Rocha] - Dynaconf variables in blue and user variables in green. [Bruno Rocha] - Added `dynaconf list` and `dynaconf write` subcommands. [Bruno Rocha] -- More cli commands lsit and write. [Bruno Rocha] +- More cli commands list and write. [Bruno Rocha] - Added more tests for cli and py loader. [Bruno Rocha] - Replaced coveralls with codecov #57. [Bruno Rocha] - Modularized the loaders, added `dynaconf init` command. [Bruno Rocha] @@ -3048,9 +3048,9 @@ Other - Merge pull request #52 from rochacbruno/fix_namespace_in_django. [Bruno Rocha] - Fix namespace swithc in django apps + Fix namespace switch in django apps - Add missing .env. [Bruno Rocha] -- Fix namespace swithc in django apps. [Bruno Rocha] +- Fix namespace switch in django apps. [Bruno Rocha] 0.7.5 (2018-05-20) @@ -3238,7 +3238,7 @@ Other - Add Pipfile.lock to .gitignore. [Douglas Soares de Andrade] - Small Refactory. [Douglas Soares de Andrade] - - Adding object to the Settings classe to make it work with Python2 + - Adding object to the Settings classes to make it work with Python2 - Small Refactory. [Douglas Soares de Andrade] - Reordering the imports according to pylint and flake8 @@ -3307,7 +3307,7 @@ Other - Added note about get_fresh in readme. [Bruno Rocha] - Better namespace management, get_fresh(key) to access redis. [Bruno Rocha] -- Now it can be used programatically. [Bruno Rocha] +- Now it can be used programmatically. [Bruno Rocha] 0.2.1 (2015-12-20) @@ -3318,7 +3318,7 @@ Other 0.2.0 (2015-12-20) ------------------ -- Can also load from arbitraty filepath. [Bruno Rocha] +- Can also load from arbitrary filepath. [Bruno Rocha] - Renamed var, added loaders, bump version. [Bruno Rocha] diff --git a/docs/envvars.md b/docs/envvars.md index ee9ef082e..d26cdc861 100644 --- a/docs/envvars.md +++ b/docs/envvars.md @@ -162,7 +162,7 @@ parse_conf.converters["@path"] = ( ) ``` -In the settings file we can now use teh @path casting token. Like with other +In the settings file we can now use the @path casting token. Like with other casting tokens you can also combine them: ```toml diff --git a/docs/flask.md b/docs/flask.md index adbf10f6d..a98e6a998 100644 --- a/docs/flask.md +++ b/docs/flask.md @@ -42,7 +42,7 @@ app = Flask(__name__) FlaskDynaconf(app, envvar_prefix="PEANUT") ``` -Now you can declare your variables with your custom prefix, and it will be normally available withing Flask's native configuration `app.config`. +Now you can declare your variables with your custom prefix, and it will be normally available within Flask's native configuration `app.config`. ```bash export PEANUT_DEBUG=true # app.config.DEBUG @@ -66,7 +66,7 @@ IF you don't want to manually create your config files take a look at the [CLI]( ## Loading Flask Extensions Dynamically -You can tell Dynaconf to load your Flask Extensions dynamically as long as the extensions follows the Pattens of Flask extensions. +You can tell Dynaconf to load your Flask Extensions dynamically as long as the extensions follows the Patterns of Flask extensions. The only requirement is that the extension must be a `callable` that accepts `app` as first argument. e.g: `flask_admin:Admin` or `custom_extension.module:instance.init_app` and of course the extension must be in Python namespace to be imported. diff --git a/docs/index.md b/docs/index.md index 5ccccb0f2..ddf97a023 100644 --- a/docs/index.md +++ b/docs/index.md @@ -67,7 +67,7 @@ pip install dynaconf . ├── config.py # Where you import your settings object (required) ├── .secrets.toml # Sensitive data like passwords and tokens (optional) - └── settings.toml # Application setttings (optional) + └── settings.toml # Application settings (optional) ``` === "your_program.py" diff --git a/docs/validation.md b/docs/validation.md index 93d55f42f..140f8887e 100644 --- a/docs/validation.md +++ b/docs/validation.md @@ -304,7 +304,7 @@ settings.validators.validate( > **Validate only current env** -You can specify if you want to validate all environments defined for a validator (default behavior) or only the current environement. In the first case, the validators will run on all possible settings defined in their list of environment, while in the latter the validators with environments different from the current environment will be skipped. +You can specify if you want to validate all environments defined for a validator (default behavior) or only the current environment. In the first case, the validators will run on all possible settings defined in their list of environment, while in the latter the validators with environments different from the current environment will be skipped. This is useful when your configuration for different environments (let's say `production` and `development`) comes from different files you don't necesseraly have access to during development. You would want to write different validators for your `development` and `production` environments, and only run the right validator for the current environment. diff --git a/dynaconf/base.py b/dynaconf/base.py index cdccda02c..51e09a404 100644 --- a/dynaconf/base.py +++ b/dynaconf/base.py @@ -89,9 +89,9 @@ def __resolve_config_aliases(self, kwargs): "environment": "environments", "ENVIRONMENT": "ENVIRONMENTS", } - for mispell, correct in mispells.items(): - if mispell in kwargs: - kwargs[correct] = kwargs.pop(mispell) + for misspell, correct in mispells.items(): + if misspell in kwargs: + kwargs[correct] = kwargs.pop(misspell) for_dynaconf_keys = { key @@ -180,7 +180,7 @@ def configure(self, settings_module=None, **kwargs): Allows user to reconfigure settings object passing a new settings module or separated kwargs - :param settings_module: defines the setttings file + :param settings_module: defines the settings file :param kwargs: override default settings """ default_settings.reload(self._should_load_dotenv) @@ -209,7 +209,7 @@ class Settings: def __init__(self, settings_module=None, **kwargs): # pragma: no cover """Execute loaders and custom initialization - :param settings_module: defines the setttings file + :param settings_module: defines the settings file :param kwargs: override default settings """ self._fresh = False @@ -346,7 +346,7 @@ def setdefault(self, item, default, apply_default_on_none=False): """ value = self.get(item, empty) - # Yaml loader reads empty values as None, whould we apply defaults? + # Yaml loader reads empty values as None, would we apply defaults? global_apply_default = ( self.get("APPLY_DEFAULT_ON_NONE_FOR_DYNACONF") is not None ) @@ -425,7 +425,7 @@ def get( parent=None, ): """ - Get a value from settings store, this is the prefered way to access:: + Get a value from settings store, this is the preferred way to access:: >>> from dynaconf import settings >>> settings.get('KEY') @@ -483,7 +483,7 @@ def exists(self, key, fresh=False): """Check if key exists :param key: the name of setting variable - :param fresh: if key should be taken from source direclty + :param fresh: if key should be taken from source directly :return: Boolean """ key = upperfy(key) @@ -1009,7 +1009,7 @@ def execute_loaders( """Execute all internal and registered loaders :param env: The environment to load - :param silent: If loading erros is silenced + :param silent: If loading errors is silenced :param key: if provided load a single key :param filename: optional custom filename to load :param loaders: optional list of loader modules @@ -1200,7 +1200,7 @@ def dynaconf_clone(self): try: return copy.deepcopy(self) except TypeError: - # can't deepcopy settings object bacause of module object + # can't deepcopy settings object because of module object # being set as value in the settings dict new_data = self.to_dict(internal=True) new_data["dynaconf_skip_loaders"] = True diff --git a/dynaconf/cli.py b/dynaconf/cli.py index 47745d0d7..182bd0f2b 100644 --- a/dynaconf/cli.py +++ b/dynaconf/cli.py @@ -101,7 +101,7 @@ def set_settings(ctx, instance=None): def import_settings(dotted_path): """Import settings instance from python dotted path. - Last item in dotted path must be settings instace. + Last item in dotted path must be settings instance. Example: import_settings('path.to.settings') """ diff --git a/dynaconf/contrib/django_dynaconf_v2.py b/dynaconf/contrib/django_dynaconf_v2.py index 47d695e92..aac4aab83 100644 --- a/dynaconf/contrib/django_dynaconf_v2.py +++ b/dynaconf/contrib/django_dynaconf_v2.py @@ -1,6 +1,6 @@ """Dynaconf django extension -In the `django_project/settings.py` put at the very botton of the file: +In the `django_project/settings.py` put at the very bottom of the file: # HERE STARTS DYNACONF EXTENSION LOAD (Keep at the very bottom of settings.py) # Read more at https://www.dynaconf.com/django/ diff --git a/dynaconf/contrib/flask_dynaconf.py b/dynaconf/contrib/flask_dynaconf.py index 6ccd8504d..a305194a2 100644 --- a/dynaconf/contrib/flask_dynaconf.py +++ b/dynaconf/contrib/flask_dynaconf.py @@ -71,7 +71,7 @@ class FlaskDynaconf: app, ENV='MYSITE', SETTINGS_FILE='settings.yml', - EXTRA_VALUE='You can add aditional config vars here' + EXTRA_VALUE='You can add additional config vars here' ) Take a look at examples/flask in Dynaconf repository diff --git a/dynaconf/default_settings.py b/dynaconf/default_settings.py index 5c0d3e662..3c96c55de 100644 --- a/dynaconf/default_settings.py +++ b/dynaconf/default_settings.py @@ -86,7 +86,7 @@ def reload(load_dotenv=None, *args, **kwargs): # # In dynaconf 1.0.0 `NAMESPACE` got renamed to `ENV` -# If provided environments will be loaded separatelly +# If provided environments will be loaded separately ENVIRONMENTS_FOR_DYNACONF = get("ENVIRONMENTS_FOR_DYNACONF", False) MAIN_ENV_FOR_DYNACONF = get("MAIN_ENV_FOR_DYNACONF", "MAIN") diff --git a/dynaconf/loaders/base.py b/dynaconf/loaders/base.py index b0ced88d3..dec5cb0af 100644 --- a/dynaconf/loaders/base.py +++ b/dynaconf/loaders/base.py @@ -57,7 +57,7 @@ def load(self, filename=None, key=None, silent=True): :param filename: Optional filename to load :param key: if provided load a single key - :param silent: if load erros should be silenced + :param silent: if load errors should be silenced """ filename = filename or self.obj.get(self.identifier.upper()) diff --git a/dynaconf/loaders/toml_loader.py b/dynaconf/loaders/toml_loader.py index 22191acc7..f4f6e17ae 100644 --- a/dynaconf/loaders/toml_loader.py +++ b/dynaconf/loaders/toml_loader.py @@ -44,7 +44,7 @@ def load(obj, env=None, silent=True, key=None, filename=None): the new tomllib library. The old library was called `toml` and the new one is called `tomllib`. - The old lib uiri/toml allowed unicode characters and readed files + The old lib uiri/toml allowed unicode characters and re-added files as string. The new tomllib (stdlib) does not allow unicode characters, only diff --git a/dynaconf/utils/__init__.py b/dynaconf/utils/__init__.py index a77caa8bf..8515fee14 100644 --- a/dynaconf/utils/__init__.py +++ b/dynaconf/utils/__init__.py @@ -52,7 +52,7 @@ def object_merge( new.insert(0, item) if isinstance(old, dict) and isinstance(new, dict): - existing_value = recursive_get(old, full_path) # doesnt handle None + existing_value = recursive_get(old, full_path) # doesn't handle None # Need to make every `None` on `_store` to be an wrapped `LazyNone` # data coming from source, in `new` can be mix case: KEY4|key4|Key4 @@ -95,7 +95,7 @@ def recursive_get( names: list[str] | None, ) -> Any: """Given a dot accessible object and a list of names `foo.bar.zaz` - gets recursivelly all names one by one obj.foo.bar.zaz. + gets recursively all names one by one obj.foo.bar.zaz. """ if not names: return diff --git a/dynaconf/utils/files.py b/dynaconf/utils/files.py index df6e5b66a..135880ac9 100644 --- a/dynaconf/utils/files.py +++ b/dynaconf/utils/files.py @@ -44,7 +44,7 @@ def find_file(filename=".env", project_root=None, skip_files=None, **kwargs): - Current working directory For each path in the `search_tree` it will also look for an - aditional `./config` folder. + additional `./config` folder. """ search_tree = [] work_dir = os.getcwd() diff --git a/dynaconf/validator_conditions.py b/dynaconf/validator_conditions.py index c9a9351eb..2327ef39b 100644 --- a/dynaconf/validator_conditions.py +++ b/dynaconf/validator_conditions.py @@ -76,7 +76,7 @@ def len_min(value, other): def len_max(value, other): - """Maximum lenght""" + """Maximum length""" return len(value) <= other diff --git a/tests/test_base.py b/tests/test_base.py index b7311cafa..ae1fe9b90 100644 --- a/tests/test_base.py +++ b/tests/test_base.py @@ -25,7 +25,7 @@ def test_deleted_raise(settings): def test_delete_and_set_again(settings): - """asserts variable can be deleted and setted again""" + """asserts variable can be deleted and set again""" # set settings.TODELETE2 = True @@ -711,7 +711,7 @@ def test_from_env_method(clean_env, tmpdir): assert other_settings.get("ARBITRARY_KEY") is None assert other_settings.get("ONLY_IN_DEVELOPMENT") is None with pytest.raises(AttributeError): - # values set programatically are not cloned + # values set programmatically are not cloned other_settings.ARBITRARY_KEY with pytest.raises(AttributeError): # values set only in a specific env not cloned @@ -797,7 +797,7 @@ def test_from_env_method_with_prefix(clean_env, tmpdir): with pytest.raises(AttributeError): other_settings.not_prefixed with pytest.raises(AttributeError): - # values set programatically are not cloned + # values set programmatically are not cloned other_settings.ARBITRARY_KEY with pytest.raises(AttributeError): # values set only in a specific env not cloned @@ -925,7 +925,7 @@ def test_lowercase_read_mode(tmpdir): } toml_loader.write(str(tmpdir.join("settings.toml")), data) - # settings_files mispelled.. should be `settings_file` + # settings_files misspelled.. should be `settings_file` settings = LazySettings(settings_files="settings.toml") assert settings.FOO == "bar" @@ -960,7 +960,7 @@ def test_settings_dict_like_iteration(tmpdir): } toml_loader.write(str(tmpdir.join("settings.toml")), data) - # settings_files mispelled.. should be `settings_file` + # settings_files misspelled.. should be `settings_file` settings = LazySettings(settings_files="settings.toml") for key in settings: diff --git a/tests/test_django.py b/tests/test_django.py index 9e8c281b1..55c6d5742 100644 --- a/tests/test_django.py +++ b/tests/test_django.py @@ -37,7 +37,7 @@ class UserSettingsHolder(dynaconf.LazySettings): override = UserSettingsHolder(settings._wrapped) override.SECRET_KEY = "foobar" - # overriden settings is changed + # overridden settings is changed assert override.SECRET_KEY == "foobar" # original not changed diff --git a/tests/test_toml_loader.py b/tests/test_toml_loader.py index ea7aa71b1..82cde8052 100644 --- a/tests/test_toml_loader.py +++ b/tests/test_toml_loader.py @@ -56,7 +56,7 @@ host = "othertoml.com" emojis = "😀😀😀😀" encoded_variable="This has accents like � and � � � � just to test encoding �" -# The above is not alowed by TOML, but it is allowed by Dynaconf < 4.0.0 +# The above is not allowed by TOML, but it is allowed by Dynaconf < 4.0.0 """ diff --git a/tests/test_utils.py b/tests/test_utils.py index b84a8fd58..38a31a2c5 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -163,7 +163,7 @@ def test_casting_json(settings): # Test how single quotes cases are handled. # When jinja uses `attr` to render a json string, - # it may covnert double quotes to single quotes. + # it may convert double quotes to single quotes. settings.set("value", "{'FOO': 'bar'}") res = parse_conf_data("@json @jinja {{ this.value }}")(settings) assert isinstance(res, dict) @@ -231,7 +231,7 @@ def test_missing_sentinel(): assert missing == missing # new instances of Missing should be equal to each other due to - # explicit __eq__ implmentation check for isinstance. + # explicit __eq__ implementation check for isinstance. assert missing == Missing() # The sentinel should not be equal to None, True, or False @@ -239,7 +239,7 @@ def test_missing_sentinel(): assert missing is not True assert missing is not False - # But the explict typecasting of missing to a bool should evaluate to False + # But the explicit typecasting of missing to a bool should evaluate to False assert bool(missing) is False assert str(missing) == "" diff --git a/tests/test_validators.py b/tests/test_validators.py index 71eaa1fbd..267b48cd4 100644 --- a/tests/test_validators.py +++ b/tests/test_validators.py @@ -779,7 +779,7 @@ def test_default_eq_env_lvl_1(): def test_default_lvl_1(): - """Tests if the default works propperly without any nested level. + """Tests if the default works properly without any nested level. Uses different values for the default and the environment variable. """ @@ -802,7 +802,7 @@ def test_default_lvl_1(): def test_default_lvl_2(): - """Tests if the default works propperly with one nested level. + """Tests if the default works properly with one nested level. Uses different values for the default and the environment variable. """ diff --git a/tests/test_validators_conditions.py b/tests/test_validators_conditions.py index 18d1d7ee7..3056b1554 100644 --- a/tests/test_validators_conditions.py +++ b/tests/test_validators_conditions.py @@ -23,7 +23,7 @@ ("len_ne", [], 1), ("len_min", "Minimum length", 3), ("len_min", [1, 2, 3, 4, 5], 3), - ("len_max", "Maximum lenght", 15), + ("len_max", "Maximum length", 15), ("len_max", [1, 2, 3, 4, 5], 5), ("startswith", "codeshow", "code"), ] diff --git a/tests/test_yaml_loader.py b/tests/test_yaml_loader.py index 221b4a37d..bdb01359c 100644 --- a/tests/test_yaml_loader.py +++ b/tests/test_yaml_loader.py @@ -19,7 +19,7 @@ def settings(): YAML = """ -# the bellow is just to ensure `,` will not break string YAML +# the below is just to ensure `,` will not break string YAML a: 'a,b' default: password: 99999 diff --git a/tests_functional/README.md b/tests_functional/README.md index 8b576a790..36f7b334e 100644 --- a/tests_functional/README.md +++ b/tests_functional/README.md @@ -49,7 +49,7 @@ Environment variables are very important for Dynaconf so most of the functional tests will need to customize those there are 2 ways: -- Write a `.env` file and then pass `load_dotenv=True` to Dynaconf contructor. +- Write a `.env` file and then pass `load_dotenv=True` to Dynaconf constructor. - Use `env.toml` file to define environment variables, **IMPORTANT** that this file has only upper case keys and all values are strings: `THING = "value"`. ## Skipping functional tests diff --git a/tests_functional/common-encoding/program.py b/tests_functional/common-encoding/program.py index f030971c2..a55b02d54 100644 --- a/tests_functional/common-encoding/program.py +++ b/tests_functional/common-encoding/program.py @@ -44,7 +44,7 @@ def connect(server, port, username, password): print(secrets_file.read()) print("#" * 79) -print("\n* Acessing settings defined in .toml files\n") +print("\n* Accessing settings defined in .toml files\n") print('By default dynaconf will always work in "development" env') print("Take a look at settings.toml and .secrets.toml") connect(settings.SERVER, settings.PORT, settings.USERNAME, settings.PASSWORD) @@ -163,7 +163,7 @@ def connect(server, port, username, password): print("#" * 79) print("\n* There is more!\n") print( - "Dynaconf can switch environments programatically with context managers." + "Dynaconf can switch environments programmatically with context managers." ) print("Dynaconf has extensions for Flask and Django.") print("Dynaconf can read values from yaml, ini, json and py files.") diff --git a/tests_functional/common/program.py b/tests_functional/common/program.py index 3a81699cd..9ffbe76b5 100644 --- a/tests_functional/common/program.py +++ b/tests_functional/common/program.py @@ -33,7 +33,7 @@ def connect(server, port, username, password): print(open(settings.find_file(".secrets.toml")).read()) print("#" * 79) -print("\n* Acessing settings defined in .toml files\n") +print("\n* Accessing settings defined in .toml files\n") print('By default dynaconf will always work in "development" env') print("Take a look at settings.toml and .secrets.toml") connect(settings.SERVER, settings.PORT, settings.USERNAME, settings.PASSWORD) @@ -152,7 +152,7 @@ def connect(server, port, username, password): print("#" * 79) print("\n* There is more!\n") print( - "Dynaconf can switch environments programatically with context managers." + "Dynaconf can switch environments programmatically with context managers." ) print("Dynaconf has extensions for Flask and Django.") print("Dynaconf can read values from yaml, ini, json and py files.") diff --git a/tests_functional/issues/182_multiple_locations/app.py b/tests_functional/issues/182_multiple_locations/app.py index 905c8def2..877e8217d 100644 --- a/tests_functional/issues/182_multiple_locations/app.py +++ b/tests_functional/issues/182_multiple_locations/app.py @@ -29,7 +29,7 @@ print("----") -# To make dynaconf a diferent file we need to include it +# To make dynaconf a different file we need to include it # includes can be a toml-like list print("using config 2") os.environ["INCLUDES_FOR_DYNACONF"] = "['./cfg2/settings.toml']" diff --git a/tests_functional/issues/384_dotted_set/README.md b/tests_functional/issues/384_dotted_set/README.md index e17292ded..2b1e9021f 100644 --- a/tests_functional/issues/384_dotted_set/README.md +++ b/tests_functional/issues/384_dotted_set/README.md @@ -62,11 +62,11 @@ settings.FOO = { or even -settings.set('foo.a.b', "reseted") to have +settings.set('foo.a.b', "reset") to have settings.FOO = { "a": { - "b": "reseted" + "b": "reset" } }