-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation for developers #1419
Comments
Realised this functionality is already available via |
This is indeed very valuable information. Do you mind adding a PR updating https://github.com/theislab/scanpy/blob/master/docs/installation.rst ? |
Yes, no problem. I'll update it in a bit. |
I had a look at scanpy's setup file pip install -e .
pip install ".[dev]" does neither install all packages used within Scanpy's code base nor packages required for documentation or testing. IMO, these packages should be installed in a developer installation as they are all part of the development cycle. Adding a file pip install -e .
pip install -r requirements-dev.txt Any thoughts on this? |
Were there every any thoughts or discussions on adding pre-commit hooks? This would, for example, automatically enforce the black coding style prior to committing new changes. The # .pre-commit-hooks.yaml
repos:
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black |
Sorry, no, I didn't open a PR since I hadn't heard back regarding above comments. Fine to close it in favour of #1563, although it only concerns pre-commit hooks, right? The original idea of this issue was to make the dev installation easier, i.e. installing all required packages to run the full code base, tests etc. This currently doesn't happen when installing through |
that's a very good point yes, I know there is also #1527 underway, can you guys comment on this @flying-sheep @ivirshup cause I'm not sure timing wise how is it going ? |
I think #1527 is coming along nicely. It seems to mostly work now. It'd be great if some other team members could try it out and see if it works for them! |
As far as I can tell, #1527 still doesn't install all packages in a dev installation required to run the entire code base and tests. |
|
I think this is has been covered by the "Contributing" section of the docs. |
Description
For an easier start of potential contributors, it might be helpful to add a file such as
requirements-dev.txt
including all packages required to e.g. run unit tests locally. Otherwise, several packages (e.g.leidenalg
,louvain
,scikit-misc
,harmonypy
,python-igraph
) have to be installed manually which is rather tedious:The wheels to install
python-igraph
under Windows can, for example, be found here.The text was updated successfully, but these errors were encountered: