Skip to content
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

mypy: Fix mypy CI #2044

Merged
merged 2 commits into from
Feb 3, 2025
Merged

mypy: Fix mypy CI #2044

merged 2 commits into from
Feb 3, 2025

Conversation

arthurscchan
Copy link
Contributor

@arthurscchan arthurscchan commented Feb 3, 2025

After changing FI to module based operation, the mypy CI fails to check on the module because the module is not installed. This PR fixes the mypy CI to install the FI modules before the checking to ensure the mypy CI picks up typing errors in the FI modules, including the tree-sitter frontend. This PR also fixes the mypy errors in frontend_cpp to pass the mypy check.

Signed-off-by: Arthur Chan <[email protected]>
@@ -21,6 +21,9 @@
- name: Install Dependencies
run: |
pip install mypy types-PyYAML
- name: Install FI as modules
run: |
cd src && pip install .

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 2: pipCommand not pinned by hash
Click Remediation section below to solve this issue
@arthurscchan arthurscchan marked this pull request as ready for review February 3, 2025 08:11
@DavidKorczynski DavidKorczynski merged commit b550680 into ossf:main Feb 3, 2025
11 checks passed
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.

2 participants