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

[MAINTENANCE] Pin mypy to 0.990 #6361

Merged
merged 7 commits into from
Nov 15, 2022
Merged

[MAINTENANCE] Pin mypy to 0.990 #6361

merged 7 commits into from
Nov 15, 2022

Conversation

Kilo59
Copy link
Member

@Kilo59 Kilo59 commented Nov 15, 2022

Changes proposed in this pull request:

The following changes should make our typing CI step much more consistent and reliable.

Pin mypy version to prevent CI breakage - as recommended by mypy

Update mypy config to always run as if it was python 3.7 (our oldest supported version)

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for niobium-lead-7998 ready!

Name Link
🔨 Latest commit 8425026
🔍 Latest deploy log https://app.netlify.com/sites/niobium-lead-7998/deploys/6373a177938dc300097198ed
😎 Deploy Preview https://deploy-preview-6361--niobium-lead-7998.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ghost
Copy link

ghost commented Nov 15, 2022

👇 Click on the image for a new way to code review
  • Make big changes easier — review code in small groups of related files

  • Know where to start — see the whole change at a glance

  • Take a code tour — explore the change with an interactive tour

  • Make comments and review — all fully sync’ed with github

    Try it now!

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

@Kilo59 Kilo59 marked this pull request as ready for review November 15, 2022 14:29
@@ -752,7 +752,6 @@ def show_expectations_by_expectation_type(
pprint.pprint(
object=pprint_objects,
indent=2,
sort_dicts=False,
Copy link
Member Author

@Kilo59 Kilo59 Nov 15, 2022

Choose a reason for hiding this comment

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

@Kilo59 Kilo59 enabled auto-merge (squash) November 15, 2022 14:35
@@ -13,6 +13,7 @@ skip_gitignore = true
extend_skip_glob = ['venv/*', 'docs/*']

[tool.mypy]
python_version = "3.7"
Copy link
Member Author

Choose a reason for hiding this comment

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

This should help a bit with getting consistent errors across dev environments.
If you are using a python 3.10 feature that doesn't exist in 3.7 mypy should warn you.

@Kilo59 Kilo59 merged commit 89d14b7 into develop Nov 15, 2022
@Kilo59 Kilo59 deleted the m/none/pin-mypy branch November 15, 2022 15:04
@Kilo59 Kilo59 mentioned this pull request Nov 15, 2022
6 tasks
Shinnnyshinshin pushed a commit that referenced this pull request Nov 15, 2022
* develop:
  [MAINTENANCE] Update column_reflection_fallback to also use schema name for Trino (#6350)
  [MAINTENANCE] Misc cleanup of GX Cloud helpers (#6352)
  [MAINTENANCE] Pin `mypy` to `0.990` (#6361)
  Subject: Support to include ID/PK in validation result for each row t… (#5876)
  [MAINTENANCE] Fix computed metrics type hint in ExecutionEngine.resolve_metrics() method (#6347)
  [MAINTENANCE] Refactor `usage_stats_opt_out` method in DataContext (#5339)
  Zep PostgresDatasource returns a list of batches. (#6341)
  [DOCS] Add `yarn snippet-check` command (#6351)
  [MAINTENANCE] Refactor out `termcolor` dependency (#6348)
  [MAINTENANCE] Move Cloud-specific enums to `cloud_constants.py` (#6349)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants