GithubHelp home page GithubHelp logo

firatozdemir / code-template-lightning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nperraud/code-template-lightning

0.0 0.0 0.0 307 KB

Template for Python packages with pytorch lightning

Python 51.12% Makefile 7.57% Jupyter Notebook 41.31%

code-template-lightning's Introduction

packagename: Template for Python packages with pytorch lightning

The first thing you need to do is to replace `packagename` in all files with the name of your package. Then rename the folder `packagename` to the name of your package.

Once this is done, you can proceed with the instatllation of the package as described below.

Getting started

To get started, make sure you have the necessary permissions and clone the repository:

git clone
cd code-template-lightning

Working with Poetry

To install Poetry, run the following command in the terminal:

curl -sSL https://install.python-poetry.org | python3 -

Activate the Poetry shell and install the dependencies:

poetry shell
poetry install

To add an additional package to the project, use the add command. For example:

poetry add numpy

To run tests, use the following command:

pytest .

The tests code are located in the folder packagename/tests.

Tests

The tests are located in the folder packagename/tests. The tests are run using pytest. To run the tests, use the following command:

`bash pytest packagename ` or `bash make test `

Documentation

Check the sphynx documentation in the folder doc. Update the documentation accordingly.

You can compile the doc using the following command:

`bash make doc `

Style and linting

The code is linted using flake8. To run the linter, use the following command:

`bash flake8 --doctests --exclude=doc --ignore=E501 ` or `bash make lint `

To help you to get the right format, you can use black: `bash black packagename `

Package information

The package information is stored in the file pyproject.toml. Update the information accordingly.

TODOs

code-template-lightning's People

Contributors

nperraud 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.