-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-104504: Run mypy on cases_generator in CI (and blacken the code) #108090
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
Changes from 6 commits
6f4ab6e
c0fb645
840dab9
6c89a68
42ed502
6bc0d26
999ba10
5078f7a
e695d2f
a136c24
d26b39e
c0ae7c2
dcb3ada
7f9e68b
9b13d6b
5b3732d
aebfff3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
pull_request: | ||
paths: | ||
- "Tools/clinic/**" | ||
- "Tools/cases_generator/**" | ||
- ".github/workflows/mypy.yml" | ||
workflow_dispatch: | ||
|
||
|
@@ -24,7 +25,21 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
mypy: | ||
mypy-cases-generator: | ||
name: Run mypy on Tools/cases_generator/ | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there constraints on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's use 3.11. We need dog fooding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#specifying-a-python-version That's 3.11 now, and will be 3.12 shortly after its release. So There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good! |
<
10000
/tr>
||
cache: pip | ||
cache-dependency-path: Tools/requirements-dev.txt | ||
- run: pip install -r Tools/requirements-dev.txt | ||
- run: mypy --config-file Tools/cases_generator/mypy.ini | ||
|
||
mypy-clinic: | ||
name: Run mypy on Tools/clinic/ | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
@@ -34,6 +49,6 @@ jobs: | |
with: | ||
python-version: "3.x" | ||
cache: pip | ||
cache-dependency-path: Tools/clinic/requirements-dev.txt | ||
- run: pip install -r Tools/clinic/requirements-dev.txt | ||
cache-dependency-path: Tools/requirements-dev.txt | ||
- run: pip install -r Tools/requirements-dev.txt | ||
- run: mypy --config-file Tools/clinic/mypy.ini |
Uh oh!
There was an error while loading. Please reload this page.