Giter Club home page Giter Club logo

mcoding-all-dunders's Introduction

mCoding All Dunders Video

Contributing

If you'd like to add a code example, make sure it has not already been done or is in progress (see the spreadsheet or the Issues tab for reference). Once you have confirmed that, open an issue for the dunder(s) you'd like to add examples for. When you're done, simply make a PR!

Submission guidelines

  • The code has to be PEP8-compliant and lines must be at most 80 chars long
  • Typehints are not necessary (unless needed for the example to work)
  • Be consistent about typehints: either do them properly or don't include them at all
  • Examples can include multiple dunders if they go together
  • The code should be a minimal working example that uses the dunder(s)

When submitting code for the __cool_dunder__ dunder, name the file cool_dunder.py (basically strip the underlines). When submitting multiple dunders in one example, you can:

  • use the dunder name that's the most important/widely used, e.g. name.py when adding __name__ and __qualname__
  • use a name that easily describes all of them, e.g. comparisons.py when adding __gt__, __le__, etc.

The file should be put in the corresponding folder inside src, e.g. a __post_init__ example should be located in src/library-lagoon/post_init.py (see categories in the spreadsheet).

Your code must pass CI. To check if your code will pass CI locally run these commands:

pip install -r requirements.txt
black --check .
ruff check .

You can also apply fixes if these checks don't pass:

black .
ruff check . --fix

Giveaway

Everyone who contributes a dunder before July 23 is entered into the giveaway for Discord Nitro or a JetBrains license. All entrants have the same chances regardless of how many dunders they have added. However, the winners with the highest number of contributions have priority and can choose their prize.

Prize Pool
2x 1-Month Discord Nitro
1x 1-Year Discord Nitro
2x JetBrains License

The giveaway was funded by @mcoding and @pi3014 on Discord ❤️

Credits

People who have contributed at least 1 dunder or have reviewed at least 2 PRs are eligible for the Volunteer role on the mCoding server.

Big thanks to everybody who contributed with code examples or code reviews:

mcoding-all-dunders's People

Contributors

trag1c avatar lunarmagpie avatar micaeljarniac avatar fuexfollets avatar edsaac 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.