Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 8d3b0c5

Browse files
committed
Merge branch 'main' into shuowei-job-history
2 parents 29b4e12 + 915cce5 commit 8d3b0c5

File tree

657 files changed

+25271
-23899
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

657 files changed

+25271
-23899
lines changed

.gemini/common/constraints.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
## Constraints
2+
3+
- Only add git commits. Do not change git history.
4+
- Follow the spec file for development.
5+
- Check off items in the "Acceptance
6+
criteria" and "Detailed steps" sections with `[x]`.
7+
- Please do this as they are completed.
8+
- Refer back to the spec after each step.

.gemini/common/docs.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Documentation
2+
3+
If a method or property is implementing the same interface as a third-party
4+
package such as pandas or scikit-learn, place the relevant docstring in the
5+
corresponding `third_party/bigframes_vendored/package_name` directory, not in
6+
the `bigframes` directory. Implementations may be placed in the `bigframes`
7+
directory, though.
8+
9+
@../tools/test_docs.md
Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,4 @@
1-
# Contribution guidelines, tailored for LLM agents
2-
3-
## Testing
4-
5-
We use `nox` to instrument our tests.
6-
7-
- To test your changes, run unit tests with `nox`:
8-
9-
```bash
10-
nox -r -s unit
11-
```
12-
13-
- To run a single unit test:
14-
15-
```bash
16-
nox -r -s unit-3.13 -- -k <name of test>
17-
```
18-
19-
- Ignore this step if you lack access to Google Cloud resources. To run system
20-
tests, you can execute::
21-
22-
# Run all system tests
23-
$ nox -r -s system
24-
25-
# Run a single system test
26-
$ nox -r -s system-3.13 -- -k <name of test>
27-
28-
- The codebase must have better coverage than it had previously after each
29-
change. You can test coverage via `nox -s unit system cover` (takes a long
30-
time). Omit `system` if you lack access to cloud resources.
31-
32-
## Code Style
33-
34-
- We use the automatic code formatter `black`. You can run it using
35-
the nox session `format`. This will eliminate many lint errors. Run via:
36-
37-
```bash
38-
nox -r -s format
39-
```
40-
41-
- PEP8 compliance is required, with exceptions defined in the linter configuration.
42-
If you have ``nox`` installed, you can test that you have not introduced
43-
any non-compliant code via:
44-
45-
```
46-
nox -r -s lint
47-
```
48-
49-
- When writing tests, use the idiomatic "pytest" style.
50-
51-
## Documentation
52-
53-
If a method or property is implementing the same interface as a third-party
54-
package such as pandas or scikit-learn, place the relevant docstring in the
55-
corresponding `third_party/bigframes_vendored/package_name` directory, not in
56-
the `bigframes` directory. Implementations may be placed in the `bigframes`
57-
directory, though.
58-
59-
### Testing code samples
60-
61-
Code samples are very important for accurate documentation. We use the "doctest"
62-
framework to ensure the samples are functioning as expected. After adding a code
63-
sample, please ensure it is correct by running doctest. To run the samples
64-
doctests for just a single method, refer to the following example:
65-
66-
```bash
67-
pytest --doctest-modules bigframes/pandas/__init__.py::bigframes.pandas.cut
68-
```
69-
70-
## Tips for implementing common BigFrames features
71-
72-
### Adding a scalar operator
1+
## Adding a scalar operator
732

743
For an example, see commit
754
[c5b7fdae74a22e581f7705bc0cf5390e928f4425](https://github.com/googleapis/python-bigquery-dataframes/commit/c5b7fdae74a22e581f7705bc0cf5390e928f4425).
@@ -136,13 +65,3 @@ To add a new scalar operator, follow these steps:
13665
- If you are overriding a pandas or GeoPandas property, add a unit test to
13766
ensure the correct behavior (e.g., raising `NotImplementedError` if the
13867
functionality is not supported).
139-
140-
141-
## Constraints
142-
143-
- Only add git commits. Do not change git history.
144-
- Follow the spec file for development.
145-
- Check off items in the "Acceptance
146-
criteria" and "Detailed steps" sections with `[x]`.
147-
- Please do this as they are completed.
148-
- Refer back to the spec after each step.

.gemini/tools/style_nox.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Code Style with nox
2+
3+
- We use the automatic code formatter `black`. You can run it using
4+
the nox session `format`. This will eliminate many lint errors. Run via:
5+
6+
```bash
7+
nox -r -s format
8+
```
9+
10+
- PEP8 compliance is required, with exceptions defined in the linter configuration.
11+
If you have ``nox`` installed, you can test that you have not introduced
12+
any non-compliant code via:
13+
14+
```
15+
nox -r -s lint
16+
```
17+
18+
- When writing tests, use the idiomatic "pytest" style.

.gemini/tools/test_docs.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
## Testing code samples
2+
3+
Code samples are very important for accurate documentation. We use the "doctest"
4+
framework to ensure the samples are functioning as expected. After adding a code
5+
sample, please ensure it is correct by running doctest. To run the samples
6+
doctests for just a single method, refer to the following example:
7+
8+
```bash
9+
pytest --doctest-modules bigframes/pandas/__init__.py::bigframes.pandas.cut
10+
```

.gemini/tools/test_nox.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Testing with nox
2+
3+
Use `nox` to instrument our tests.
4+
5+
- To test your changes, run unit tests with `nox`:
6+
7+
```bash
8+
nox -r -s unit
9+
```
10+
11+
- To run a single unit test:
12+
13+
```bash
14+
nox -r -s unit-3.14 -- -k <name of test>
15+
```
16+
17+
- Ignore this step if you lack access to Google Cloud resources. To run system
18+
tests, you can execute::
19+
20+
# Run all system tests
21+
$ nox -r -s system
22+
23+
# Run a single system test
24+
$ nox -r -s system-3.14 -- -k <name of test>
25+
26+
- The codebase must have better coverage than it had previously after each
27+
change. You can test coverage via `nox -s unit system cover` (takes a long
28+
time). Omit `system` if you lack access to cloud resources.

.gemini/tools/test_pytest.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Testing with pytest
2+
3+
Use `pytest` to instrument our tests.
4+
5+
- To test your changes, run `pytest`:
6+
7+
```bash
8+
pytest <test_file>::<test_case>
9+
```

.github/CODEOWNERS

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
66
# Note: This file is autogenerated. To make changes to the codeowner team, please update .repo-metadata.json.
77

8-
# @googleapis/yoshi-python @googleapis/api-bigquery-dataframe are the default owners for changes in this repo
9-
* @googleapis/yoshi-python @googleapis/api-bigquery-dataframe
8+
# @googleapis/cloud-sdk-python-team @googleapis/bigquery-dataframe-team are the default owners for changes in this repo
9+
* @googleapis/cloud-sdk-python-team @googleapis/bigquery-dataframe-team
1010

11-
# @googleapis/python-samples-reviewers @googleapis/api-bigquery-dataframe are the default owners for samples changes
12-
/samples/ @googleapis/python-samples-reviewers @googleapis/api-bigquery-dataframe
11+
# @googleapis/python-samples-reviewers @googleapis/bigquery-dataframe-team are the default owners for samples changes
12+
/samples/ @googleapis/python-samples-reviewers @googleapis/bigquery-dataframe-team

.github/blunderbuss.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
# Note: This file is autogenerated. To make changes to the assignee
55
# team, please update `codeowner_team` in `.repo-metadata.json`.
66
assign_issues:
7-
- googleapis/api-bigquery-dataframe
7+
- googleapis/bigquery-dataframe-team
88

99
assign_issues_by:
1010
- labels:
1111
- "samples"
1212
to:
1313
- googleapis/python-samples-reviewers
14-
- googleapis/api-bigquery-dataframe
14+
- googleapis/bigquery-dataframe-team
1515

1616
assign_prs:
17-
- googleapis/api-bigquery-dataframe
17+
- googleapis/bigquery-dataframe-team

.github/workflows/docs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,3 @@ jobs:
3636
run: |
3737
python -m pip install --upgrade setuptools pip wheel
3838
python -m pip install nox
39-
- name: Run docfx
40-
run: |
41-
nox -s docfx

0 commit comments

Comments
 (0)