Coder Social home page Coder Social logo

mes0903 / ziyou-python-write-ups Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openmcl/ziyou-python-write-ups

0.0 0.0 0.0 2.6 MB

Student write-ups for Ziyou Python courses

Home Page: http://140.115.26.67:12080/view/647ec65b-2194-4bb3-8524-bf3a628c583a

License: BSD 3-Clause "New" or "Revised" License

Python 59.86% TeX 40.02% Makefile 0.13%

ziyou-python-write-ups's Introduction

簡明 Python 學習講義:習題解答集

Code style: black

國立**大學吳維漢教授一著「簡明 Python 學習講義」的習題解答集、暨 MCL 工讀生合著紀念集。

Build Documents

Make sure you already have a XeLaTeX complier (to write documents), and a proper Python interpreter (to write codes).

Then, clone the project first (with submodules):

git clone --recurse-submodules https://github.com/OpenMCL/ziyou-python-write-ups

Enter the project, and run the following command to build the document:

xelatex docs/main.tex
xelatex docs/main.tex

or simply run make docs if you have make.

This would output a pdf file called main.pdf at the project root folder.

Setup Coding Environments

We suggest using Python 3.8 or higher versions.

Install Dependencies

With Poetry (Recommended)

To install all requirements, run the following command:

poetry install --with dev

With Pip

If you do not have poetry, you can also install all requirements with the following command:

pip install numpy matplotlib black flake8 flake8-black flake8-bugbear

Offline Code Linting

After the above installation, you can run flake8 to check code format:

flake8 src

or simply run make lint if you have make.

Contribution

We would love to accept your patches to this project. There are some guidelines you need to follow:

Coding Style

  • Please follow PEP8. We recommend you check your patch with Flake8.
  • In addition, please format your code with Black.

We recommend you use VS Code to write code with ease. You can put the following settings to ${workspaceFolder}/.vscode/settings.json:

{
  "[python]": {
    "editor.formatOnSave": true,
    "editor.codeActionsOnSave": {
      "source.organizeImports": true
    }
  },
  "python.formatting.provider": "black",
  "python.linting.enabled": true,
  "python.linting.flake8Enabled": true
}

Peer Review

All submissions require review. We use GitHub (or GitLab) pull requests and review systems to meet these requirements. See help here for more information on using GitHub pull requests.

License

ziyou-python-write-ups's People

Contributors

stephlin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.