Skip to content

Commit

Permalink
Merge pull request #993 from elementary-data/ele-1315-add-script-for-…
Browse files Browse the repository at this point in the history
…dealing-with-editable-installs

Added the script.
  • Loading branch information
elongl authored Jul 14, 2023
2 parents 70ad242 + 793c6ed commit 9798e6b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/run-precommit.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Run pre-commit hooks
on:
push:
paths:
- '**.py'
- '.pre-commit-config.yaml'
- '.github/workflows/run-precommit.yml'
workflow_dispatch:

jobs:
Expand All @@ -17,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.8'
python-version: "3.8"

# mainly needed so mypy will have the dependencies it needs
- name: Install elementary
Expand Down
10 changes: 10 additions & 0 deletions scripts/install_develop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

# This script installs the package in editable mode in a way that allows static type checkers to work.
# Information about the problem can be found in the following sources:
# - https://github.com/python/mypy/issues/13392
# - https://microsoft.github.io/pyright/#/import-resolution?id=editable-installs
# - https://setuptools.pypa.io/en/latest/userguide/development_mode.html#legacy-behavior

pip install -e . --config-settings editable_mode=compat

0 comments on commit 9798e6b

Please sign in to comment.