``` python_library( name=‘foo', sources=globs(...
# general
h
Copy code
python_library(
  name=‘foo',
  sources=globs('*.py', exclude=[globs('*_test.py')]),
  dependencies=[
    ...
  ],
)


python_tests(
  name='tests',
  sources=globs('*_test.py'),
  dependencies=[
    ‘:foo',
    ...
  ],
)