Repository: dynaconf/dynaconf

Issue:
The venv folder is not being excluded from pre-commit hooks
Hello! At first, I would like to thank you for the library.

I follow the [CONTRIBUTING.md guide](https://github.com/rochacbruno/dynaconf/blob/master/CONTRIBUTING.md) and run the `make all` command to check if everything was right before I see the code. When I do that the **reorder-python-imports** hook failed because of some reorders that he made in some files in the `venv` folder:

```bash
...
Reordering imports in venv/lib/python3.7/site-packages/pynvim/msgpack_rpc/msgpack_stream.py
Reordering imports in venv/lib/python3.7/site-packages/tqdm/contrib/itertools.py
Reordering imports in venv/lib/python3.7/site-packages/coverage/execfile.py
Reordering imports in venv/lib/python3.7/site-packages/pyflakes/test/test_undefined_names.py
Reordering imports in venv/lib/python3.7/site-packages/nltk/test/unit/test_tgrep.py
Reordering imports in venv/lib/python3.7/site-packages/future/moves/test/__init__.py
Reordering imports in venv/lib/python3.7/site-packages/pynvim/api/common.py
Reordering imports in venv/lib/python3.7/site-packages/nltk/parse/recursivedescent.py
Reordering imports in venv/lib/python3.7/site-packages/django/contrib/admin/templatetags/base.py
Reordering imports in venv/lib/python3.7/site-packages/jeepney/tests/test_bus.py
Reordering imports in venv/lib/python3.7/site-packages/pip/_vendor/cachecontrol/serialize.py
Reordering imports in venv/lib/python3.7/site-packages/sphinx/transforms/post_transforms/__init__.py
Reordering imports in venv/bin/rst2latex.py
Reordering imports in venv/lib/python3.7/site-packages/cryptography/hazmat/primitives/ciphers/modes.py
Reordering imports in venv/lib/python3.7/site-packages/setuptools/_distutils/ccompiler.py
Reordering imports in venv/lib/python3.7/site-packages/botocore/vendored/requests/packages/__init__.py
...
```

Besides, the **black** hook was taking too much time to finish and I think that this happened because he was reformating the files in the `venv` folder. Is that an expected behavior? Am I doing something wrong or missing some configuration?


Discussion:

Resolving patch:
diff --git a/dynaconf/loaders/base.py b/dynaconf/loaders/base.py
--- a/dynaconf/loaders/base.py
+++ b/dynaconf/loaders/base.py
@@ -135,7 +135,11 @@ def _load_all_envs(self, source_data, silent=True, key=None):
                 self._set_data_to_obj(data, identifier, file_merge, key)
 
     def _set_data_to_obj(
-        self, data, identifier, file_merge=None, key=False,
+        self,
+        data,
+        identifier,
+        file_merge=None,
+        key=False,
     ):
         """Calls setttings.set to add the keys"""
 
@@ -149,7 +153,9 @@ def _set_data_to_obj(
 
         if not key:
             self.obj.update(
-                data, loader_identifier=identifier, merge=file_merge,
+                data,
+                loader_identifier=identifier,
+                merge=file_merge,
             )
         elif key in data:
             self.obj.set(
diff --git a/example/issues/379_dict_like_iteration/app.py b/example/issues/379_dict_like_iteration/app.py
--- a/example/issues/379_dict_like_iteration/app.py
+++ b/example/issues/379_dict_like_iteration/app.py
@@ -1,6 +1,8 @@
 from dynaconf import Dynaconf
 
-settings = Dynaconf(settings_files=["settings.toml"],)
+settings = Dynaconf(
+    settings_files=["settings.toml"],
+)
 
 assert settings.key == "value"
 assert settings.number == 789
diff --git a/example/issues/519_underscore_in_name/app.py b/example/issues/519_underscore_in_name/app.py
--- a/example/issues/519_underscore_in_name/app.py
+++ b/example/issues/519_underscore_in_name/app.py
@@ -2,7 +2,10 @@
 
 from dynaconf import Dynaconf
 
-config = Dynaconf(settings_files=["settings.yml"], envvar_prefix="ATC",)
+config = Dynaconf(
+    settings_files=["settings.yml"],
+    envvar_prefix="ATC",
+)
 
 # envvar set is case insensitive
 # ATC_BLE__DEVICE_ID=x and ATC_BLE__device_id=x are the same


Test patch:
diff --git a/tests/test_envvar_prefix.py b/tests/test_envvar_prefix.py
--- a/tests/test_envvar_prefix.py
+++ b/tests/test_envvar_prefix.py
@@ -19,7 +19,9 @@ def test_envvar_prefix_lazysettings(tmpdir):
     tmpfile.write(TOML)
 
     settings = LazySettings(
-        environments=True, envvar_prefix=False, settings_file=str(tmpfile),
+        environments=True,
+        envvar_prefix=False,
+        settings_file=str(tmpfile),
     )
 
     assert settings.VAR == "my value"