Skip to content

Commit 7ba7a0a

Browse files
srirclaude
andcommitted
Fix import check in scripts/lint
- Update scripts/lint to import orb_sdk instead of orb - Simplify mypy exclude (no need for _compat.py exclusion) - Update apply-customizations.sh to fix scripts/lint 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 7736199 commit 7ba7a0a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ show_error_codes = true
166166
#
167167
# We also exclude our `tests` as mypy doesn't always infer
168168
# types correctly and Pyright will still catch any type errors.
169-
exclude = ['src/orb_sdk/_files.py', 'src/orb_sdk/_utils/_compat.py', '_dev/.*.py', 'tests/.*']
169+
exclude = ['src/orb_sdk/_files.py', '_dev/.*.py', 'tests/.*']
170170

171171
strict_equality = true
172172
implicit_reexport = true

scripts/apply-customizations.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ echo "Updating mock.patch and error message strings in tests/"
2929
find tests -name "*.py" -exec sed -i "s/\"orb\._/\"orb_sdk._/g" {} +
3030
find tests -name "*.py" -exec sed -i "s/'orb\._/'orb_sdk._/g" {} +
3131

32-
# Add _compat.py to mypy exclude (type comparison issues)
33-
echo "Excluding _compat.py from mypy"
34-
sed -i "s/exclude = \['src\/orb_sdk\/_files.py'/exclude = ['src\/orb_sdk\/_files.py', 'src\/orb_sdk\/_utils\/_compat.py'/" pyproject.toml
32+
# Update scripts/lint import check
33+
echo "Updating scripts/lint import check"
34+
sed -i "s/python -c 'import orb'/python -c 'import orb_sdk'/" scripts/lint
3535

3636
# Update pyproject.toml
3737
echo "Updating pyproject.toml"

scripts/lint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ echo "==> Running lints"
88
rye run lint
99

1010
echo "==> Making sure it imports"
11-
rye run python -c 'import orb'
11+
rye run python -c 'import orb_sdk'

0 commit comments

Comments
 (0)