You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ Configuration
26
26
27
27
``live_mode`` (default is True) provides type checking as you type. This writes to a tempfile every time a check is done.
28
28
29
-
Turning off live_mode means you must save your changes for mypy diagnostics to update correctly.
29
+
Turning off ``live_mode`` means you must save your changes for mypy diagnostics to update correctly.
30
30
31
31
Depending on your editor, the configuration (found in a file called mypy-ls.cfg in your workspace or a parent directory) should be roughly like this:
32
32
@@ -37,3 +37,26 @@ Depending on your editor, the configuration (found in a file called mypy-ls.cfg
37
37
"live_mode": True,
38
38
"strict": False
39
39
}
40
+
41
+
Developing
42
+
-------------
43
+
44
+
Install development dependencies with (you might want to create a virtualenv first):
45
+
46
+
::
47
+
48
+
pip install -r requirements.txt
49
+
50
+
The project is formatted with `black`_. You can either configure your IDE to automatically format code with it, run it manually (``black .``) or rely on pre-commit (see below) to format files on git commit.
51
+
52
+
This project uses `pre-commit`_ to enforce code-quality. After cloning the repository install the pre-commit hooks with:
53
+
54
+
::
55
+
56
+
pre-commit install
57
+
58
+
After that pre-commit will run `all defined hooks`_ on every ``git commit`` and keep you from committing if there are any errors.
0 commit comments