Skip to content

Fix SyntaxWarning on package init - #68

Open
ababak wants to merge 1 commit into
ftrackhq:mainfrom
ababak:main
Open

Fix SyntaxWarning on package init#68
ababak wants to merge 1 commit into
ftrackhq:mainfrom
ababak:main

Conversation

@ababak

@ababak ababak commented Jul 17, 2026

Copy link
Copy Markdown

Resolves #67

  • I have added automatic tests where applicable.
  • The PR contains a description of what has been changed.
  • The description contains manual test instructions.
  • The PR contains updates to the release notes.
  • I have verified that the documentation is still up to date.

Changes

Fixed SyntaxWarning on package init. Described here: #67
Python 3.13 is already used in Houdini 22.0 and Maya 2027 so these warnings are annoying.

Test

Summary by CodeRabbit

  • Refactor
    • Improved handling of internal text and filesystem sanitization patterns without changing user-visible behavior.

@coderabbitai

coderabbitai Bot commented Jul 17, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 2f3bd884-8dd2-46a3-a617-7be6ec64ec4c

📥 Commits

Reviewing files that changed from the base of the PR and between 4ee2ffb and 1ef817a.

📒 Files selected for processing (2)
  • source/ftrack_api/plugin.py
  • source/ftrack_api/structure/standard.py
🔗 Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

  • ftrackhq/ftrack (manual) → reviewed against branch main instead of the default branch

📝 Walkthrough

Walkthrough

Two string literals were changed to raw-string syntax: the discover docstring and the filesystem sanitization regex. Their content and behavior remain otherwise unchanged.

Changes

Raw string syntax updates

Layer / File(s) Summary
Raw string syntax changes
source/ftrack_api/plugin.py, source/ftrack_api/structure/standard.py
The discover docstring delimiter and sanitise_for_filesystem regex argument now use raw-string literals without changing their content or substitution logic.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the main goal: fixing a SyntaxWarning in package initialization-related code.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

SyntaxWarning on Ftrack API 3.1.0 on Python 3.13

1 participant