-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathmakefile
49 lines (42 loc) · 1.61 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
setup:
make install-tests
make install-jupyter
make setup-pre-commit
make setup-organizor
# 安装必要的代码检查工具
# black: https://github.com/psf/black
# flake8: https://github.com/pycqa/flake8
# isort: https://github.com/PyCQA/isort
# nbstripout: https://github.com/kynan/nbstripout
# pydocstyle: https://github.com/PyCQA/pydocstyle
# pre-commit-hooks: https://github.com/pre-commit/pre-commit-hooks
setup-organizor:
poetry add hydra-core
poetry add --group dev sourcery
setup-pre-commit:
poetry add --group dev flake8 isort nbstripout pydocstyle pre-commit-hooks
poetry run pre-commit install
install-jupyter:
poetry add ipykernel --group dev
poetry add --group dev jupyterlab
poetry add jupyterlab_execute_time --group dev
poetry add jupyterlab-lsp --group dev
poetry add python-lsp-server --group dev
install-tests:
poetry add pytest allure-pytest --group dev
# https://timvink.github.io/mkdocs-git-authors-plugin/index.html
install-docs:
poetry add --group docs mkdocs mkdocs-material
poetry add --group docs mkdocs-git-revision-date-localized-plugin
poetry add --group docs mkdocs-minify-plugin
poetry add --group docs mkdocs-redirects
poetry add --group docs mkdocs-awesome-pages-plugin
poetry add --group docs mkdocs-git-authors-plugin
poetry add --group docs mkdocstrings\[python\]
poetry add --group docs mkdocs-bibtex
poetry add --group docs mkdocs-macros-plugin
# poetry add --group docs mkdocs-jupyter
poetry add --group docs mkdocs-callouts
poetry add --group docs mkdocs-glightbox
obsidian-docs:
git clone --depth=1 [email protected]:SongshGeo/Obsidian-MkDocs-Vault-Template.git .obsidian