-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
♻️ Maintenance: repo-wide cleanup of modules setups and utils #2669
♻️ Maintenance: repo-wide cleanup of modules setups and utils #2669
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2669 +/- ##
========================================
- Coverage 78.0% 78.0% -0.1%
========================================
Files 636 638 +2
Lines 26073 26093 +20
Branches 2525 2525
========================================
+ Hits 20355 20365 +10
- Misses 5049 5057 +8
- Partials 669 671 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
5377d4f
to
7186a87
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very cool. making things more consistent is always very good! thanks for taking the time to do that.
packages/dask-task-models-library/src/dask_task_models_library/__init__.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/utils_aiohttp.py
Outdated
Show resolved
Hide resolved
services/web/server/src/simcore_service_webserver/utils_aiohttp.py
Outdated
Show resolved
Hide resolved
15cad19
to
b1c6e13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like the more compact and unified setup.py formats.
90069df
to
152be76
Compare
data for testing that is random shall be created with faker
152be76
to
c74d76c
Compare
@GitHK , @sanderegg I also extended unit-test-python-linting to python 3.10 to anticipate possible deprecations and/or incompatibilities with coming releases. Note that this CI job is NOT required for merging but keep us informed. |
…rmit py3.10 failures for a while
What do these changes do?
Some side cleanup work from other PRs and some conventions proposals to improve maintainability.
♻️
aiohttp
utilsMany tools in
servicelib/aiohttp
is deprecated. Slowly collecting useful utils in web-server'sutils_aiohttp.py
with the intention of moving them toservicelib/aiohttp
as soon as all tools there are removed (e.g.openapi-core
,trafaret
etc). For the moment, we have centralized there:Handlers
,Middlewares
, etc)♻️ Proposal: Naming convention
fake
andmock
mocker
fixture orunittest.mock
module)♻️ Proposal:
setup.py
SETUP
constant with all metadata and eventually extra tmp constants to avoid duplication, etc (this simple approach is taken from aiohttp)Then setup metadata fields can be retrieved :
SETUP
constant andjson
dump it.python -c "from setup import SETUP; import json; print(json.dumps(SETUP, indent=1))"
setuptools.setup
APIsetup.cfg
__version__
setup( ... version=)
VERSION
as the source of truth for each module in the repo🩺 Linter check for python 3.10
In anticipation of future upgrades, we want to be aware ahead of possible deprecation warnings and/or syntax incompatibilities with latest releases of python. This CI job is just informative and therefore is not required for merging.