-
Notifications
You must be signed in to change notification settings - Fork 162
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
Updated setup.cfg with check-manifest #705
Conversation
@Sanketh7 needs an |
MANIFEST.in
Outdated
recursive-include examples *.ipynb | ||
recursive-include examples *.md | ||
recursive-include examples *.png |
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.
concerned these are included in the installation... they shouldn't be
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.
that is ipynb
, md
, and png
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.
if I take them out I receive
missing from sdist:
examples/DL-Flowchart.png
examples/add_new_model_to_data_labeler.ipynb
examples/column_name_labeler.ipynb
examples/data_profiler_demo.ipynb
examples/data_readers.ipynb
examples/graph_data_demo.ipynb
examples/great_expecations/README.md
examples/great_expecations/ge_expect_column_value_confidence_for_data_label.ipynb
examples/great_expecations/ge_expect_column_values_vs_profile_min.ipynb
examples/great_expecations/ge_expect_profile_numeric_columns_diff_in_range.ipynb
examples/great_expecations/ge_expect_profile_numeric_columns_percent_diff_in_range.ipynb
examples/intro_data_profiler.ipynb
examples/labeler.ipynb
examples/merge_profile_list.ipynb
examples/popmon_dp_loader_example.ipynb
examples/regex_labeler_from_scratch/DataLabeler_from_scratch.ipynb
examples/structured_profilers.ipynb
examples/unstructured_profilers.ipynb
and check-manifest
recommends adding those 3 lines (15 - 17)
# Check-manifest: ensures required non-Python files are included in MANIFEST.in | ||
# https://github.com/mgedmin/check-manifest/blob/master/.pre-commit-hooks.yaml | ||
- repo: https://github.com/mgedmin/check-manifest | ||
rev: "0.48" | ||
hooks: | ||
- id: check-manifest | ||
additional_dependencies: ['h5py', 'wheel', 'future', 'numpy', 'pandas', | ||
'python-dateutil', 'pytz', 'six', 'pyarrow', 'chardet', 'fastavro', | ||
'python-snappy', 'charset-normalizer', 'psutil', 'scipy', 'requests', | ||
'networkx','typing-extensions'] |
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.
run check-manifest
on pre-commit run
setup.cfg
Outdated
DataProfiler.egg-info/** | ||
dataprofiler/reports/.mypy_cache/** | ||
dataprofiler/tests/data/json/honeypot | ||
dataprofiler/labelers/embeddings/glove-reduced-64D.txt | ||
resources/__pycache__/__init__.cpython** |
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.
had to add these for check-manifest
to pass
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.
that is lines 17 - 21
@@ -1,3 +1,4 @@ | |||
check-manifest>=0.48 |
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.
adding new dependency of check-manifest
for pre-commit
additional_dependencies: ['h5py', 'wheel', 'future', 'numpy', 'pandas', | ||
'python-dateutil', 'pytz', 'six', 'pyarrow', 'chardet', 'fastavro', | ||
'python-snappy', 'charset-normalizer', 'psutil', 'scipy', 'requests', | ||
'networkx','typing-extensions'] |
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.
have to add these for check-manifest
to run in the pre-commit
environment
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.
read this but was reading a post from the creator of pre-commit
that using -r requirements.txt
in the add_dependencies
is not good practice
Adding
check-manifest
as hook forpre-commit