From 65894a5f7da0d58eebcdb5664ec116b31056a2ab Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sun, 10 Nov 2024 13:46:44 +0100 Subject: Migrate to proper Python package layout Up until now we've kept the entirety of later(1)'s functionality in one file. Whilst this is perfectly fine for smaller scripts, the functionality of later(1) has grown to a size where this become less feasible. Since we expect it to grow even further, switch to a "proper" source layout sooner rather than later. This will allow easier extension, testing and packaging later on. Since we want to keep installation simple for end-users still, package later(1) as a zipapp [1] in the Makefile. When installed, this file can be executed just like the single Python script before it. Using this way of installation is not mandatory however, the package layout also supports regular installation with pip and development with poetry. [1] https://docs.python.org/3.12/library/zipapp.html --- ruff.toml | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 ruff.toml (limited to 'ruff.toml') diff --git a/ruff.toml b/ruff.toml deleted file mode 100644 index d00d37e..0000000 --- a/ruff.toml +++ /dev/null @@ -1,18 +0,0 @@ -include = ["later"] - -[lint] -# https://docs.astral.sh/ruff/rules/ -select = [ - "F", # pyflakes - "E", # pycodestyle - "W", # pycodestyle - "I", # isort - "UP", # pyupgrade - "A", # flake8-builtins - "B", # flake8-bugbear - "SIM", # flake8-simplify - "FURB" # refurb -] - -[lint.flake8-builtins] -builtins-ignorelist = ["exit"] -- cgit v1.2.3-2-gb3c3