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

Enable generation and caching of fine-grained dependencies from normal runs #4526

Merged
merged 4 commits into from
Jan 31, 2018

Conversation

msullivan
Copy link
Collaborator

No description provided.

@msullivan msullivan requested a review from JukkaL January 31, 2018 21:15
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Basically LG, two stylistic nits.

mypy/build.py Outdated
@@ -1977,6 +1986,19 @@ def _patch_indirect_dependencies(self,
elif dep not in self.suppressed and dep in self.manager.missing_modules:
self.suppressed.append(dep)

def find_fine_grained_deps(self) -> None:
Copy link
Member

Choose a reason for hiding this comment

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

Would you mind renaming this so the name more clearly implies that it has a side-effect?

mypy/build.py Outdated
@@ -1183,6 +1184,7 @@ def compute_hash(text: str) -> str:


def write_cache(id: str, path: str, tree: MypyFile,
fine_grained_deps: Dict[str, List[str]],
Copy link
Member

Choose a reason for hiding this comment

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

I'd rename this to serialized_fine_grained_deps just to clarify that it does not have the same type as State.fine_grained_deps (List vs. Set).

@msullivan msullivan merged commit e05fe58 into master Jan 31, 2018
@msullivan msullivan deleted the gen_fg_cache branch January 31, 2018 23:59
carljm added a commit to carljm/mypy that referenced this pull request Feb 14, 2018
* master: (32 commits)
  Fix some fine-grained cache/fswatcher problems (python#4560)
  Sync typeshed (python#4559)
  Add _cached suffix to test cases in fine-grained tests with cache (python#4558)
  Add back support for simplified fine-grained logging (python#4557)
  Type checking of class decorators (python#4544)
  Sync typeshed (python#4556)
  When loading from a fine-grained cache, use the real path, not the cached (python#4555)
  Switch all of the fine-grained debug logging to use manager.log (python#4550)
  Caching for fine-grained incremental mode (python#4483)
  Fix --warn-return-any for NotImplemented (python#4545)
  Remove myunit (python#4369)
  Store line numbers of imports in the cache metadata (python#4533)
  README.md: Fix a typo (python#4529)
  Enable generation and caching of fine-grained dependencies from normal runs (python#4526)
  Move argument parsing for the fine-grained flag into the main arg parsing code (python#4524)
  Don't warn about unrecognized options starting with 'x_' (python#4522)
  stubgen: don't append star arg when args list already has varargs appended (python#4518)
  Handle TypedDict in diff and deps (python#4510)
  Fix Options.__repr__ to not infinite recurse (python#4514)
  Fix some fine-grained incremental bugs with newly imported files (python#4502)
  ...
@emmatyping emmatyping mentioned this pull request Feb 16, 2018
8 tasks
gvanrossum pushed a commit that referenced this pull request Mar 6, 2018
This was discovered in #4403. I thought I'd add it while I am splitting changes out of that PR. It was originally introduced in #4526 but not added to the docs it seems.

(the rest of the diff is due to my using an actual output of the help command from master)
yedpodtrzitko pushed a commit to kiwicom/mypy that referenced this pull request Mar 15, 2018
This was discovered in python#4403. I thought I'd add it while I am splitting changes out of that PR. It was originally introduced in python#4526 but not added to the docs it seems.

(the rest of the diff is due to my using an actual output of the help command from master)
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