diff options
author | Frederick Muriuki Muriithi | 2022-02-21 16:23:06 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-02-21 16:23:06 +0300 |
commit | a35fce27875d9db80dce1976b6f8ee8c00ecfe0a (patch) | |
tree | 8e8f815a6e3d37348bdb8f253f5ec53f72dc2dbc /gn3/settings.py | |
parent | c84b07b8c5ac0a42c0fab929c75823b30b548191 (diff) | |
download | genenetwork3-a35fce27875d9db80dce1976b6f8ee8c00ecfe0a.tar.gz |
Fix a myriad of linter issues
* Use `with` in place of plain `open`
* Use f-strings in place of `str.format()`
* Remove string interpolation from queries - provide data as query parameters
* other minor fixes
Diffstat (limited to 'gn3/settings.py')
-rw-r--r-- | gn3/settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn3/settings.py b/gn3/settings.py index 87e8f4b..6eec2a1 100644 --- a/gn3/settings.py +++ b/gn3/settings.py @@ -27,11 +27,11 @@ GN2_BASE_URL = "http://www.genenetwork.org/" # wgcna script WGCNA_RSCRIPT = "wgcna_analysis.R" # qtlreaper command -REAPER_COMMAND = "{}/bin/qtlreaper".format(os.environ.get("GUIX_ENVIRONMENT")) +REAPER_COMMAND = f"{os.environ.get('GUIX_ENVIRONMENT')}/bin/qtlreaper" # genotype files GENOTYPE_FILES = os.environ.get( - "GENOTYPE_FILES", "{}/genotype_files/genotype".format(os.environ.get("HOME"))) + "GENOTYPE_FILES", f"{os.environ.get('HOME')}/genotype_files/genotype") # CROSS-ORIGIN SETUP def parse_env_cors(default): |