I am trying to make some change in a branch. I was...
# troubleshoot
s
I am trying to make some change in a branch. I was running these commands https://datahubproject.io/docs/metadata-ingestion/developing#testing
Copy code
metadata-ingestion ❯ mypy .

setup.py: error: Duplicate module named "setup" (also at "./examples/transforms/setup.py")
setup.py: note: Are you missing an __init__.py? Alternatively, consider using --exclude to avoid checking one of them.
Found 1 error in 1 file (errors prevented further checking)
Are these commands out of date? Is there a way to filter this folder out?
Similar problem with
Copy code
metadata-ingestion ❯ flake8 .

./examples/transforms/custom_transform_example.py:9:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:10:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:12:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:13:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:14:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:15:1: E402 module level import not at top of file
./examples/transforms/custom_transform_example.py:16:1: E402 module level import not at top of file
Tests on github seem to be different than what is in the guide https://github.com/linkedin/datahub/pull/3035#issuecomment-893320703
m
@square-activity-64562 I usually just run the gradle equivalents.
Copy code
../gradlew :metadata-ingestion:lintFix
etc.
c
Yep – looks like there’s some inconsistencies between this guide and what we run in gradle (typically only the
src/
and
test/
directories). I’ll update the docs!
thankyou 1