Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 2.55 KB

Instruction.md

File metadata and controls

44 lines (30 loc) · 2.55 KB

Contribution Instructions

To manage our codebase, it is necessary to learn some tools. This may take some time for beginners, but will benefit the rest life. All the following instructions assume that the reader is familiar and comfortable with linux command line.

Workflow

Steps to contribute your codes to this repository:

  1. Fork the repo to your own github account.
  2. git clone and git pull the forked repo to your own computer.
  3. Create your own branch git checkout -b. Write codes and test.
  4. git commit your changes with clean commit message.
  5. Push your branch to your forked repo with git push.
  6. Head on over to the forked repo on GitHub, and open a pull request to merge your changes to main project.
  7. Get your PR reviewed and approved.

Style

Tools and Codes

VSCode

VSCode is the recommended IDE for coding. It is extremely powerful with the following plugins:

  • remote ssh: link to remote server
  • debug python codes by simply adding breakpoints with mouse click
  • autoformat your code to pep8 standard
  • nested jupyter notebook
  • markdown editing and preview
  • and so on...

Github

Please always use git to track your codes. Refer to the Pro Git book for comprehensive understanding of git. You may also get a quick start with the git cheatsheet. Also, the chinese Git教程 is also available. Some suggestions:

  • Write clean commit message when you push to this repository.
  • If conflict happens when you push your code, you can pull down the repository first with git pull origin main and fix the merge.

Anaconda

Please manage your local coding dependencies with anaconda.