Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename generated module to canvas_generated #62

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
- id: end-of-file-fixer
exclude_types:
- svg
exclude: &generated canvas_generated/
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
exclude_types:
Expand Down Expand Up @@ -41,30 +42,22 @@ repos:
rev: 6.3.0
hooks:
- id: pydocstyle
exclude: |
(?x)(
tests.py
)$
exclude: *generated
additional_dependencies: [tomli]

# upgrading to v2.0.0 will cause package dependencies issues
- repo: https://github.com/PyCQA/autoflake
rev: v2.2.1
hooks:
- id: autoflake
args: ["--remove-all-unused-imports", "--in-place", "--recursive"]

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
exclude: *generated

- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
args: ["--config=pyproject.toml"]
exclude: *generated

- repo: https://github.com/rtts/djhtml
rev: 3.0.6
Expand Down Expand Up @@ -109,7 +102,7 @@ repos:
rev: v1.9.0
hooks:
- id: mypy
exclude: canvas_cli/templates/
exclude: "canvas_generated/|canvas_cli/templates/"
# https://github.com/python-poetry/poetry/issues/7184
entry: |
bash -c "
Expand Down
6 changes: 3 additions & 3 deletions canvas_cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from canvas_cli.apps import plugin
from canvas_cli.apps.logs import logs as logs_command
from canvas_cli.utils.context import context
from generated.messages.events_pb2 import Event as PluginRunnerEvent
from generated.messages.events_pb2 import EventType as PluginRunnerEventType
from generated.services.plugin_runner_pb2_grpc import PluginRunnerStub
from canvas_generated.messages.events_pb2 import Event as PluginRunnerEvent
from canvas_generated.messages.events_pb2 import EventType as PluginRunnerEventType
from canvas_generated.services.plugin_runner_pb2_grpc import PluginRunnerStub

APP_NAME = "canvas_cli"

Expand Down
28 changes: 28 additions & 0 deletions canvas_generated/messages/effects_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions canvas_generated/messages/events_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from generated.messages import effects_pb2 as _effects_pb2
from canvas_generated.messages import effects_pb2 as _effects_pb2
from google.protobuf.internal import containers as _containers
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
from google.protobuf import descriptor as _descriptor
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions canvas_generated/services/plugin_runner_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading