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
See the [extended installation docs](https://thinc.ai/docs/install#extended) for details on optional dependencies for different backends and GPU. You might also want to [set up static type checking](https://thinc.ai/docs/install#type-checking) to take advantage of Thinc's type system.
50
+
See the [extended installation docs](https://thinc.ai/docs/install#extended) for
51
+
details on optional dependencies for different backends and GPU. You might also
52
+
want to
53
+
[set up static type checking](https://thinc.ai/docs/install#type-checking) to
54
+
take advantage of Thinc's type system.
48
55
49
56
> ⚠️ If you have installed PyTorch and you are using Python 3.7+, uninstall the
50
-
> package `dataclasses` with `pip uninstall dataclasses`, since it may have
51
-
> been installed by PyTorch and is incompatible with Python 3.7+.
57
+
> package `dataclasses` with `pip uninstall dataclasses`, since it may have been
58
+
> installed by PyTorch and is incompatible with Python 3.7+.
52
59
53
60
### 📓 Selected examples and notebooks
54
61
55
-
Also see the [`/examples`](examples) directory and [usage documentation](https://thinc.ai/docs) for more examples. Most examples are Jupyter notebooks – to launch them on [Google Colab](https://colab.research.google.com) (with GPU support!) click on the button next to the notebook name.
62
+
Also see the [`/examples`](examples) directory and
63
+
[usage documentation](https://thinc.ai/docs) for more examples. Most examples
64
+
are Jupyter notebooks – to launch them on
65
+
[Google Colab](https://colab.research.google.com) (with GPU support!) click on
@@ -103,7 +119,12 @@ Also see the [`/examples`](examples) directory and [usage documentation](https:/
103
119
104
120
## 🐍 Development notes
105
121
106
-
Thinc uses [`black`](https://github.com/psf/black) for auto-formatting, [`flake8`](http://flake8.pycqa.org/en/latest/) for linting and [`mypy`](https://mypy.readthedocs.io/en/latest/) for type checking. All code is written compatible with **Python 3.6+**, with type hints wherever possible. See the [type reference](https://thinc.ai/docs/api-types) for more details on Thinc's custom types.
122
+
Thinc uses [`black`](https://github.com/psf/black) for auto-formatting,
123
+
[`flake8`](http://flake8.pycqa.org/en/latest/) for linting and
124
+
[`mypy`](https://mypy.readthedocs.io/en/latest/) for type checking. All code is
125
+
written compatible with **Python 3.6+**, with type hints wherever possible. See
126
+
the [type reference](https://thinc.ai/docs/api-types) for more details on
Thinc comes with an [extensive test suite](thinc/tests). The following should all pass and not report any warnings or errors:
162
+
Thinc comes with an [extensive test suite](thinc/tests). The following should
163
+
all pass and not report any warnings or errors:
142
164
143
165
```bash
144
166
python -m pytest thinc # test suite
145
167
python -m mypy thinc # type checks
146
168
python -m flake8 thinc # linting
147
169
```
148
170
149
-
To view test coverage, you can run `python -m pytest thinc --cov=thinc`. We aim for a 100% test coverage. This doesn't mean that we meticulously write tests for every single line – we ignore blocks that are not relevant or difficult to test and make sure that the tests execute all code paths.
171
+
To view test coverage, you can run `python -m pytest thinc --cov=thinc`. We aim
172
+
for a 100% test coverage. This doesn't mean that we meticulously write tests for
173
+
every single line – we ignore blocks that are not relevant or difficult to test
174
+
and make sure that the tests execute all code paths.
0 commit comments