Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
msyyc committed Dec 26, 2024
1 parent bc61e3f commit 3bb65dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/autorest.python/scripts/eng/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ignore=_generated,samples,examples,test,tests,doc,.tox,generated_samples
# 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,useless-suppression
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,useless-suppression,too-many-instance-attributes

[FORMAT]
max-line-length=120
Expand Down
2 changes: 1 addition & 1 deletion packages/typespec-python/scripts/eng/lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function pylint() {
}

function checkPythonFile(directory: string): boolean {
const files = fs.existsSync(directory) ? fs.readdirSync(directory): [];
const files = fs.existsSync(directory) ? fs.readdirSync(directory) : [];
for (let i = 0; i < files.length; i++) {
if (path.extname(files[i]) === ".py") {
return true;
Expand Down

0 comments on commit 3bb65dc

Please sign in to comment.