-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make naming consistent - Fix `KeyError` when config doesn't contain an `ignore` section * Add ADR about name stylization
- Loading branch information
Showing
9 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
docs/architecture/decisions/0004-use-consistent-repo-man-stylization.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# 4. Use consistent repo-man stylization | ||
|
||
Date: 2023-11-14 | ||
|
||
## Status | ||
|
||
Accepted | ||
|
||
## Context | ||
|
||
It is often nice to use a single word for shell command names and Python package names. | ||
If the name is short enough to work as a single word it is probably usable and memorable. | ||
The `repoman` name was already taken on the Python Package Index, but `repo-man` was available. | ||
|
||
As the maintainer I have already tripped on the fact that there exist both `repo-man` and `repoman` instances in this project. | ||
Using a consistent name stylization relieves this friction. | ||
|
||
## Decision | ||
|
||
Use `repo-man` and its Python-compatible equivalent `repo_man` consistently for everything. | ||
|
||
## Consequences | ||
|
||
- The shell command name most notably changes from `repoman` to `repo-man` | ||
- The Python package import name changes from `repoman` to `repo_man` | ||
- Confusion will be minimized about stylization; it's always two-worded | ||
- Those using tab completion in their shell should be minimally impacted | ||
- Those using the command in scripts will need to update it | ||
- There is little utility to using the Python package directly at present, so little impact is expected |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
def test_package_is_importable(): | ||
import repoman | ||
import repo_man | ||
|
||
print(repoman) | ||
print(repo_man) |