Skip to content

Commit

Permalink
Merge pull request #62 from canvas-medical/ad/rename_generated_module
Browse files Browse the repository at this point in the history
Rename generated module to canvas_generated
  • Loading branch information
aduane authored Jun 20, 2024
2 parents b60a40d + 54ff62a commit d8a83c8
Show file tree
Hide file tree
Showing 25 changed files with 156 additions and 145 deletions.
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.

File renamed without changes.
File renamed without changes.
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
File renamed without changes.

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

File renamed without changes.
File renamed without changes.
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

0 comments on commit d8a83c8

Please sign in to comment.