From bec4d2cac52b14fd01909e2124527c6de7754798 Mon Sep 17 00:00:00 2001 From: Ethan Paul <24588726+enpaul@users.noreply.github.com> Date: Wed, 13 Jan 2021 02:14:26 -0500 Subject: [PATCH] Add atom configuration to avoid this pain in the future --- resources/atom-config.cson | 57 ++++++++++++++++++++++++++++++++++++ resources/bash/setup-atom.sh | 20 +++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 resources/atom-config.cson create mode 100644 resources/bash/setup-atom.sh diff --git a/resources/atom-config.cson b/resources/atom-config.cson new file mode 100644 index 0000000..84ad7e9 --- /dev/null +++ b/resources/atom-config.cson @@ -0,0 +1,57 @@ +"*": + "autocomplete-python": + useKite: false + core: + disabledPackages: [ + "about" + "background-tips" + "github" + "image-view" + "metrics" + "open-on-github" + ] + telemetryConsent: "no" + themes: [ + "one-dark-ui" + "base16-tomorrow-dark-theme" + ] + editor: + fontSize: 16 + invisibles: {} + preferredLineLength: 100 + "exception-reporting": + userId: "21f90c70-b680-4a55-a906-c8d67e98bf28" + "ide-python": + pylsPlugins: + flake8: + ignore: [ + "E121" + "E123" + "E126" + "E226" + "E24" + "E704" + "W503" + "W504" + "E501" + ] + pycodestyle: + ignore: [ + "E121" + "E123" + "E126" + "E226" + "E24" + "E704" + "W503" + "E501" + ] + maxLineLength: 100 + pyflakes: {} + pylint: + enabled: true + rope_completion: {} + python: "python3.7" + "tree-view": {} + welcome: + showOnStartup: false diff --git a/resources/bash/setup-atom.sh b/resources/bash/setup-atom.sh new file mode 100644 index 0000000..2a5b288 --- /dev/null +++ b/resources/bash/setup-atom.sh @@ -0,0 +1,20 @@ +curl -o atom.rpm https://github.com/atom/atom/releases/download/v1.53.0/atom.x86_64.rpm +dnf install atom.rpm + +python3.7 -m pip install \ + python-language-server[all]==0.21.5 \ + parso==0.5.2 \ + jedi==0.15.2 + +apm install \ + atom-ide-ui@0.13.0 \ + atom-jinja2@0.6.0 \ + atom-typescript@14.1.2 \ + autocomplete-python@1.16.0 \ + ide-python@1.6.2 \ + ide-typescript@0.9.1 \ + language-docker \ + language-ini \ + language-restructuredtext \ + language-rpm-spec \ + minimap