-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #993 from elementary-data/ele-1315-add-script-for-…
…dealing-with-editable-installs Added the script.
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|