Add CLI entry point umd

- add the following file:
  + src/urban_meal_delivery/console.py => click-based CLI tools
  + tests/test_console.py => tests for the module above
- add a CLI entry point `umd`:
  + implement the --version / -V option
    to show the installed package's version
  + rework to package's top-level:
    * add a __pkg_name__ variable to parameterize the package name
  + add unit and integration tests
- fix that pylint cannot know the proper order of imports in the
  isolated nox session
This commit is contained in:
Alexander Hess 2020-08-04 21:14:40 +02:00
commit 97d714d9ee
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
7 changed files with 196 additions and 15 deletions

View file

@ -107,6 +107,8 @@ per-file-ignores =
S101,
# Shadowing outer scopes occurs naturally with mocks.
WPS442,
# No overuse of string constants (e.g., '__version__').
WPS226,
# Explicitly set mccabe's maximum complexity to 10 as recommended by
# Thomas McCabe, the inventor of the McCabe complexity, and the NIST.
@ -124,7 +126,9 @@ show-source = true
# wemake-python-styleguide's settings
# ===================================
allowed-domain-names =
param,
result,
value,
min-name-length = 3
max-name-length = 40
# darglint
@ -173,7 +177,7 @@ single_line_exclusions = typing
[mypy]
cache_dir = .cache/mypy
[mypy-nox.*,packaging.*,pytest]
[mypy-nox.*,packaging.*,pytest,_pytest.*]
ignore_missing_imports = true