Skip to content

ENH: added the PythonModuleHasher#34

Merged
sbrugman merged 4 commits into
mainfrom
python-module-hasher
Dec 4, 2023
Merged

ENH: added the PythonModuleHasher#34
sbrugman merged 4 commits into
mainfrom
python-module-hasher

Conversation

@sbrugman

@sbrugman sbrugman commented Dec 3, 2023

Copy link
Copy Markdown
Collaborator

Depends on #31

Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
src/pycodehash/__init__.py                                  4      0   100%
src/pycodehash/datasets/__init__.py                         3      0   100%
src/pycodehash/datasets/approximate_hasher.py              24      1    96%
src/pycodehash/datasets/hive.py                            21      4    81%
src/pycodehash/datasets/local.py                           37     10    73%
src/pycodehash/datasets/python.py                          32      0   100%
src/pycodehash/datasets/s3.py                              26      2    92%
src/pycodehash/decorators.py                               25     25     0%
src/pycodehash/hashing.py                                  53      1    98%
src/pycodehash/preprocessing/__init__.py                    6      0   100%
src/pycodehash/preprocessing/decorator_stripper.py         16      9    44%
src/pycodehash/preprocessing/docstring_stripper.py         15      0   100%
src/pycodehash/preprocessing/function_stripper.py           7      0   100%
src/pycodehash/preprocessing/lines_transformer.py           2      0   100%
src/pycodehash/preprocessing/typehint_stripper.py          15      0   100%
src/pycodehash/preprocessing/whitespace_normalizer.py       7      0   100%
src/pycodehash/python_module/__init__.py                    0      0   100%
src/pycodehash/python_module/import_visitor.py             15      2    87%
src/pycodehash/python_module/python_module_hasher.py       62      4    94%
src/pycodehash/sql/__init__.py                              0      0   100%
src/pycodehash/sql/ast_transformer.py                       2      0   100%
src/pycodehash/sql/sql_hasher.py                           23      0   100%
src/pycodehash/sql/whitespace_filter.py                    21      3    86%
src/pycodehash/stores.py                                   74      4    95%
src/pycodehash/tracing.py                                  52      4    92%
src/pycodehash/transfomers.py                              38      0   100%
src/pycodehash/unparse.py                                   6      2    67%
src/pycodehash/utils.py                                    30      0   100%
src/pycodehash/version.py                                   1      0   100%
---------------------------------------------------------------------------
TOTAL                                                     617     71    88%

@sbrugman sbrugman force-pushed the python-module-hasher branch 6 times, most recently from da1f4a6 to 98078d7 Compare December 4, 2023 10:24
This is required to make hashes invariant, e.g. to absolute paths.
@sbrugman sbrugman force-pushed the python-module-hasher branch from 98078d7 to fdb8fb3 Compare December 4, 2023 11:30
Make hash invariant to changes in absolute path
@sbrugman sbrugman force-pushed the python-module-hasher branch from a500839 to 06a19bf Compare December 4, 2023 11:48
RUrlus
RUrlus previously approved these changes Dec 4, 2023
Comment thread src/pycodehash/datasets/approximate_hasher.py Outdated
@sbrugman sbrugman merged commit b8e7c0c into main Dec 4, 2023
@sbrugman sbrugman deleted the python-module-hasher branch December 4, 2023 12:15
@sbrugman sbrugman added the enhancement New feature or request label Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants