Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc committed Feb 13, 2025
1 parent d346059 commit 60bee32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/typespec-python/scripts/eng/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enable=useless-suppression
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
# too-many-lines: Due to code generation many files end up with too many lines.
# Let's black deal with bad-continuation
disable=missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin,unknown-option-value,client-accepts-api-version-keyword
disable=missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,consider-using-f-string,super-with-arguments,redefined-builtin,import-outside-toplevel,client-suffix-needed,unnecessary-dunder-call,unnecessary-ellipsis,disallowed-name,consider-using-max-builtin,unknown-option-value

[FORMAT]
max-line-length=120
Expand Down
3 changes: 3 additions & 0 deletions packages/typespec-python/scripts/eng/regenerate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ async function getSubdirectories(baseDir: string, flags: RegenerateFlags): Promi
// after fix test generation for nested operation group, remove this check
if (mainTspRelativePath.includes("client-operation-group")) return;

// after https://github.com/Azure/autorest.python/issues/3043 fixed, remove this check
if (mainTspRelativePath.includes("azure/client-generator-core/api-version")) return;

const hasMainTsp = await promises
.access(mainTspPath)
.then(() => true)
Expand Down

0 comments on commit 60bee32

Please sign in to comment.