File tree Expand file tree Collapse file tree 5 files changed +15
-18
lines changed
Expand file tree Collapse file tree 5 files changed +15
-18
lines changed Original file line number Diff line number Diff line change 88.DEFAULT_GOAL := help
99default : help
1010
11- COLOR_RESET =\033[0m
12- COLOR_CYAN_BOLD =\033[1;36m
1311define INFO_MESSAGE
14- @echo "⏩$( COLOR_CYAN_BOLD )$( 1 )$( COLOR_RESET ) "
12+ @echo "⏩\033[1;38;5;208m $( 1 ) \033[0m "
1513endef
1614
1715# ###########################################################################
1816# = BASIC USAGE
1917
2018.PHONY : help
2119help : # # Display help message
20+ $(call INFO_MESSAGE, Prepare local dev env: Create virtual env and install the pre-commit hooks)
2221 @./sbin/makefile-extract-documentation ${MAKEFILE_LIST}
2322
2423# ###########################################################################
@@ -27,10 +26,10 @@ help: ## Display help message
2726install : devready
2827.PHONY : devready
2928devready : # # Prepare local dev env: Create virtual env, install the pre-commit hooks
30- $(call INFO_MESSAGE, " Prepare local dev env: Create virtual env and install the pre-commit hooks" )
29+ $(call INFO_MESSAGE, Prepare local dev env: Create virtual env and install the pre-commit hooks)
3130 uv sync --dev
3231 uv run pre-commit install
33- @echo ' ⚠️ Activate the virtual env with `source .venv/bin/activate` '
32+ $( call INFO_MESSAGE, Activate the virtual env with \ `source .venv/bin/activate\`)
3433
3534.PHONY : build
3635build : # # Build package
Original file line number Diff line number Diff line change 1414 - uv build
1515 - uv publish
1616
17- uvx --from biocommons-example marvin-quote
17+ uvx --from python-package marvin-quote
1818
1919- [ ] move installation instructions to docs
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ keywords = [
5151 " variation"
5252]
5353license = " Apache-2.0"
54- name = " biocommons-example "
54+ name = " python-package "
5555readme = " README.md"
5656requires-python = " >=3.11"
5757
Original file line number Diff line number Diff line change @@ -12,25 +12,23 @@ import re
1212
1313CSI = "\033 ["
1414BOLD = CSI + "1m"
15- COMMAND_COLOR = CSI + "36m"
16- HEADER_COLOR = CSI + "32m"
17- RESET = CSI + "0m"
18- SECTION_COLOR = CSI + "95m"
1915UNDERLINE = CSI + "4m"
16+ RESET = CSI + "0m"
17+ HEADER_COLOR = CSI + "38;5;208m"
18+ SECTION_COLOR = "" # CSI + "38;5;99m"
19+ COMMAND_COLOR = CSI + "38;5;208m"
2020
21- print (f"""🌟🌟 { BOLD } { HEADER_COLOR } { UNDERLINE } MAKE TARGETS{ RESET } 🌟🌟
22-
23- usage: make [target ...]
21+ print ("""usage: make [target ...]
2422
2523biocommons packages consolidate command invocations in make targets to promote
26- consistency across developers and environments ( including GitHub actions) . Using
27- other invocations is not supported and will be ignored in bug reports.
24+ consistency across developers and environments, including GitHub actions. Using
25+ other invocation methods is not supported and will be ignored in bug reports.
2826
2927This makefile supports the following targets:
3028""" )
3129
3230for line in fileinput .input (): # noqa: SIM115
3331 if m := re .match (r"#= (.+)" , line ):
34- print (f"\n { BOLD } { UNDERLINE } { SECTION_COLOR } { m .group (1 )} { RESET } " )
32+ print (f"\n { UNDERLINE } { SECTION_COLOR } { m .group (1 )} { RESET } " )
3533 elif m := re .match (r"([-\s\w]+):.+?##\s+(.+)" , line ):
3634 print (f"{ BOLD } { COMMAND_COLOR } { m .group (1 ):<20} { RESET } { m .group (2 )} " )
You can’t perform that action at this time.
0 commit comments