Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
abe-winter committed Apr 12, 2024
1 parent 7fa8e40 commit 6216501
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
push:

jobs:
lint:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: install
run: pip install ruff
- name: check
run: ruff check
6 changes: 0 additions & 6 deletions examples/classless.py

This file was deleted.

2 changes: 2 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[lint]
ignore = ["E501", "E401"]
2 changes: 1 addition & 1 deletion viam_wrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def pymod_to_models(mod: ModuleType, register: bool = True) -> Iterator[type]:
continue
if is_imported(val, mod):
continue
if type(val.MODEL) is str:
if isinstance(val.MODEL, str):
val.MODEL = parse_model(val.MODEL)
patch_attrs(val, new=dynamic_new, reconfigure=dynamic_reconfigure)
if register:
Expand Down

0 comments on commit 6216501

Please sign in to comment.