Git Product home page Git Product logo

repo-template's Introduction

Contributing

Local

For local development, we recommend leveraging conda and an IDE, such as VSCode.

1 - Environment Setup

  1. Clone the repository to your local machine and cd into the directory. Note that you may need to prepend your token like this: git clone https://YOUR_TOKEN@REPOSITORY_URL.
  2. Install the package via pip install -e '.[dev]'. This will install all required dependencies, dev dependencies, and create a local package at the directory of interest.
  3. Validate the install with pip show PACKAGE_NAME - you should see your local path in the Editable project location field.

2 - Making Changes

  1. Create a new branch via git checkout -b BRANCH_NAME
  2. Make your changes
  3. Run pytest in the root directory to test your changes.

3 - Create a PR

  1. Test that your code style is correct by running make lint from your home directory. If there are errors, you can manually resolve them and/or run make format. Note that not all issues can be resolved by the linter.
  2. Run all pre-commit checks via make check.
  3. Add your files to staging via git add ..
  4. Commit your files via git commit . -m "COMMIT MESSAGE"
  5. Push your changes via git push and copying and running the output push message.
  6. Go to the repository in github and create a PR via the UI. Once your CI tests pass, request a reviewer from the team.
  7. After the reviewer has approved your PR, merge it and delete your branch.

Philosophy

  • We will have strong test coverage on utilities and self-contained functions.
  • We will have weak test coverage for integrations and environment-dependent functionality.
  • Each independent tool will have its own folder in src, as shown below.
    • src
      • tool_1
      • tool_2
      • ...
      • utils
    • tests
      • tool_1
      • tool_2
      • ...
      • utils
  • Variable names should be understandable and self-describing.
  • Code readability will typically be more important than efficiency.

repo-template's People

Contributors

michael-berk avatar

Stargazers

 avatar

Watchers

 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.