# REPO.bazel files

{% dynamic setvar source_file "NONE" %} {% dynamic setvar version "8.1.0" %} {% dynamic setvar original_path "/rules/lib/globals/repo" %} {% include "_buttons.html" %} Methods available in REPO.bazel files.

## Members

- ignore_directories
- repo

## ignore_directories

    None ignore_directories(dirs)

The list of directories to ignore in this repository.

This function takes a list of strings and a directory is ignored if any of the given strings matches its repository-relative path according to the semantics of the `glob()` function. This function can be used to ignore directories that are implementation details of source control systems, output files of other build systems, etc.

### Parameters

Parameter | Description
--- | ---
`dirs` | sequence of strings; required

## repo

    None repo(**kwargs)

Declares metadata that applies to every rule in the repository. It must be called at most once per REPO.bazel file. If called, it must be the first call in the REPO.bazel file.

### Parameters

Parameter | Description
--- | ---
`kwargs` | required The `repo()` function accepts exactly the same arguments as the `package()` function in BUILD files.