aboutsummaryrefslogtreecommitdiffstats
path: root/.flake8
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-01-09 15:31:10 -0800
committerGravatar MarkKoz <[email protected]>2021-01-09 16:29:56 -0800
commitdd307c793588cdbfb5f759a91f337299a842f05d (patch)
tree6f32779bdd221bd0eede9ed86e72045890f98155 /.flake8
parentMerge pull request #86 from python-discord/precommit-pycharm (diff)
Use a custom directory for exposed Python packages
Isolate snekbox's dependencies from the packages available within the Python interpreter. Disable Python's default behaviour of site-dependent manipulations of sys.path. The custom directory looks like a user site to allow `pip install --user` to work with it. However, snekbox will see it as simply an additional search path for modules rather than as a user site. Disable isolated mode (-I) because it implies (-E), which ignores PYTHON* environment variables. This conflicts with the reliance on `PYTHONPATH`. Specify `PYTHONUSERBASE` in the Dockerfile to make installing packages to expose more intuitive for users. Otherwise, they'd have to remember to set this variable every time they need to install something.
Diffstat (limited to '.flake8')
-rw-r--r--.flake82
1 files changed, 1 insertions, 1 deletions
diff --git a/.flake8 b/.flake8
index 9d391f9..7ebe432 100644
--- a/.flake8
+++ b/.flake8
@@ -16,7 +16,7 @@ ignore=
ANN002,ANN003,ANN101,ANN102,ANN204,ANN206
exclude=
__pycache__,.cache,
- venv,.venv
+ venv,.venv,user_base
per-file-ignores=tests/*:D1,ANN
import-order-style=pycharm
inline-quotes="