Skip to content

chore(api): lint API doc example protocol files#18142

Merged
ecormany merged 2 commits intoedgefrom
lint-api-docs-python
Apr 23, 2025
Merged

chore(api): lint API doc example protocol files#18142
ecormany merged 2 commits intoedgefrom
lint-api-docs-python

Conversation

@ecormany
Copy link
Copy Markdown
Contributor

@ecormany ecormany commented Apr 22, 2025

Overview

Lint the Python protocol files distributed as part of the v2 API docs. Addresses RTC-137.

Test Plan and Hands on Testing

  1. Add docs/v2/example_protocols to the black command make -C api lint and make -C api format. Was going to add it to flake as well, but these files deliberately violate some flake rules, like never explicitly referring back to the trash bin but definitely requiring one to pass analysis.
  2. Everything should fail because I formatted these files with tabs like a heathen.
  3. Run format and hopefully everything works.

Changelog

  • Update Makefile
  • Update Python protocols to pass new lint

Review requests

Cool cool?

Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols are modified

@ecormany ecormany marked this pull request as ready for review April 22, 2025 21:49
@ecormany ecormany requested a review from a team as a code owner April 22, 2025 21:49
Copy link
Copy Markdown
Contributor

@SyntaxColoring SyntaxColoring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it, thank you!

FYI you can usually prefix a variable with _, like _trash_bin, to indicate to tools that it's deliberately unused.

@ecormany
Copy link
Copy Markdown
Contributor Author

Interesting! I don't think we'd necessarily advise protocol authors to do that. A little too 🐍

@ecormany ecormany merged commit 8e72a89 into edge Apr 23, 2025
24 checks passed
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 16, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 17, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 19, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 20, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 22, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 23, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 24, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
ddcc4 pushed a commit that referenced this pull request May 29, 2025
# Overview

Lint the Python protocol files distributed as part of the v2 API docs.
Addresses RTC-137.

## Test Plan and Hands on Testing

1. Add `docs/v2/example_protocols` to the `black` command `make -C api
lint` and `make -C api format`. Was going to add it to `flake` as well,
but these files deliberately violate some `flake` rules, like never
explicitly referring back to the trash bin but definitely requiring one
to pass analysis.
2. Everything should fail because I formatted these files with tabs like
a heathen.
3. Run `format` and hopefully everything works.

## Changelog

- [x] Update Makefile
- [x] Update Python protocols to pass new lint

## Review requests

Cool cool?

## Risk assessment

v low, shouldn't introduce any CI failures unless the example protocols
are modified

(cherry picked from commit 8e72a89)
@ecormany ecormany deleted the lint-api-docs-python branch July 29, 2025 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants