frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Modern Python Boilerplate – good package basic structure

6•lambda-science•1d ago
TL;DR: Python Boilerplate repo for fast package building with all best practices

Hello,

I wanted to share a small repository I made named “Modern Python Boilerplate”. I created it because I saw in multiple projects including in professional environnement, the lack of good structure and practice, leading to ugly code or even non-functional, environnement mess…

The goal is to provide a python repository setup that provides all the best good-practices tool available and pre-configure them. It makes it easy to build and publish python package !

The link is here https://github.com/lambda-science/modern-python-boilerplate

It include (in a single Makefile !) modern python management (structure, packaging, version and deps w/ UV), modern CI (listing, formatting, type checking, testing, coverage, pre-commit hooks w/ Ruff/Ty), documentation (automatic API Reference building and publishing on Github/Gitlab w/ Mkdocs) and running (basic Dockerfile, Makefile, DevContainer tested on Pycharm, module running as a terminal command…)

Don’t hesitate to share feedback or comments on this, what could be improved.

I heard for example that some people hate pre-commit hooks, so I just kept it to the straight minimum of checking/re-formatting code.

Ask HN: How do you promote your personal projects with a limited budget?

111•javafactory•23h ago•79 comments

Ask HN: Conversational AI to Learn a Language

76•edweis•5d ago•54 comments

Ask HN: Places in the UK / Europe Related to computers

3•sailorganymede•5h ago•2 comments

Ask HN: Has anyone been able to overcome crippling executive dysfunction?

32•justanything•14h ago•28 comments

Ask HN: How to Make Friendster Great?

82•ca98am79•21h ago•115 comments

Ask HN: Engineering Statics and Dynamics book recommendation

6•areoform•14h ago•1 comments

Ask HN: Pros and cons of offering a self-hosted version of your SaaS?

11•DavyCreddy•1d ago•1 comments

I spent 15 years developing a tool to make sense of software version numbers

29•a1tern•1d ago•5 comments

Ask HN: How are you using LLMs for research on a library of journal articles?

3•jopizio•22h ago•0 comments

I'm Peter Roberts, immigration attorney, who does work for YC and startups. AMA

254•proberts•5d ago•452 comments

Ask HN: Where to find UX design resources?

7•bindd•1d ago•4 comments

Modern Python Boilerplate – good package basic structure

6•lambda-science•1d ago•0 comments

What If Every Picture You've Ever Seen Already Exists?

16•cin4ed•1d ago•26 comments

Built an AI Tool? List It for Free on Aisofto.com

6•rahulbstomar•23h ago•0 comments

Is this necassary to fail at first time? No money with 280 Users

2•gurpreet_codes•1d ago•5 comments

Tell HN: The Hetzner Experience - Invisible Outages

32•AmazingTurtle•2d ago•12 comments

Ask HN: Don't You Mind That LLMs Are Mostly Proprietary?

18•dakiol•2d ago•17 comments

Ask HN: Does the languages we speak affect the way we think?

7•Genius_um•2d ago•16 comments

Big Beautiful Bill R&D Tax: Will tech go on a hiring spree again?

19•jbverschoor•3d ago•19 comments

How to Fix the Gaming Industry

3•azyLum•2d ago•8 comments

Ask HN: Anyone working in traditional ML/stats research instead of LLMs?

21•itsmekali321•5d ago•10 comments

Ask HN: When do you just give up and ship it?

15•90s_dev•2d ago•12 comments

Ask HN: Do people actually pay for small web tools?

54•scratchyone•4d ago•64 comments

Ask HN: Way to build AI voice agents

8•warthog•1d ago•0 comments

Ask HN: How do you use AI for development in high security environments?

6•thesurlydev•2d ago•4 comments

Ask HN: Is there a Wikipedia or LLM wrapper for kids (with parental controls)?

4•soferio•2d ago•8 comments