Skip to content

skip venv, .downloads and third_party with isort and pyink. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 18, 2024

Conversation

advaitjain
Copy link
Contributor

Manually tested that format.sh works as intended in my local setup.

format.sh now matches test_code_style.sh:

PYINK_COMMAND="pyink --pyink-use-majority-quotes --pyink-indentation 2 --extend-exclude third_party --extend-exclude .downloads --check ./"
echo "Testing python formatting with ${PYINK_COMMAND}"
${PYINK_COMMAND}
PYTHON_FORMAT_RESULT=$?
ISORT_COMMAND="isort --profile google --multi-line 7 --skip .downloads --skip venv --skip third_party --skip .downloads --check ./"
echo "Testing python imports with ${ISORT_COMMAND}"
${ISORT_COMMAND}
ISORT_RESULT=$?

BUG=fix dev workflow

Manually tested that format.sh works as intended in my local setup.

BUG=fix dev workflow
@advaitjain advaitjain requested a review from a team as a code owner May 18, 2024 05:55
@advaitjain advaitjain requested a review from chunnienc May 18, 2024 05:55
@advaitjain advaitjain enabled auto-merge May 18, 2024 05:56
pyink --pyink-use-majority-quotes --pyink-indentation 2 ./
isort --profile google --multi-line 7 --skip .downloads ./
pyink --pyink-use-majority-quotes --pyink-indentation 2 --extend-exclude third_party --extend-exclude .downloads ./
isort --profile google --multi-line 7 --skip .downloads ./ --skip venv --skip third_party
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: isort --profile google --multi-line 7 --skip .downloads --skip venv --skip third_party ./

@advaitjain advaitjain added this pull request to the merge queue May 18, 2024
Merged via the queue into google-ai-edge:main with commit fc0c910 May 18, 2024
10 checks passed
@advaitjain advaitjain deleted the fix-format-script branch May 18, 2024 06:23
advaitjain added a commit to advaitjain/ai-edge-torch that referenced this pull request May 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants