Skip to content

[Merged by Bors] - feat(ImportGraph): add option to exclude tactics#6153

Closed
joneugster wants to merge 10 commits intomasterfrom
eugster/grap_exclude_tactics
Closed

[Merged by Bors] - feat(ImportGraph): add option to exclude tactics#6153
joneugster wants to merge 10 commits intomasterfrom
eugster/grap_exclude_tactics

Conversation

@joneugster
Copy link
Copy Markdown
Contributor

@joneugster joneugster commented Jul 26, 2023

Add an option lake exe graph --excludeMeta which removes all nodes that start with Mathlib.[Tactic|Lean|Util]


Implementation note: in replacement of all deleted nodes it adds a single node Mathlib.Tactics which is added as import to any node importing a deleted node. To avoid loops, this new node does not receive any imports from any other Mathlib files:

For example, there are imports Mathlib.Tactic.X → Mathlib.Init.Logic → Mathlib.Tactic.Y, so my approach now is to only display Mathlib.Tactics → Mathlib.Init.Logic

Open in Gitpod

@joneugster joneugster added WIP Work in progress awaiting-review t-meta Tactics, attributes or user commands labels Jul 26, 2023
@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 26, 2023
@joneugster joneugster removed the WIP Work in progress label Jul 26, 2023
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jul 26, 2023

bors d+

(Obviously wait until the earlier PR has been updated and approved! :-)

@bors
Copy link
Copy Markdown

bors bot commented Jul 26, 2023

✌️ joneugster can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jul 26, 2023
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 6, 2023
@ghost
Copy link
Copy Markdown

ghost commented Aug 6, 2023

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 6, 2023
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Aug 6, 2023
@joneugster
Copy link
Copy Markdown
Contributor Author

@semorrison in case you'd like to skim over the modifications I made while resolving merge conflicts:

  1. renamed option to --exclude-meta
  2. renamed new node to «Mathlib.Tactics» (with French quotes)
  3. added comments to code

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Aug 10, 2023

I'm slightly concerned that someone somewhere will try to use «Mathlib.Tactics» as an import, but I don't see a better solution for now.

@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Aug 10, 2023

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Aug 10, 2023
bors bot pushed a commit that referenced this pull request Aug 10, 2023
Add an option `lake exe graph --excludeMeta` which removes all nodes that start with `Mathlib.[Tactic|Lean|Util]`
@bors
Copy link
Copy Markdown

bors bot commented Aug 10, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat(ImportGraph): add option to exclude tactics [Merged by Bors] - feat(ImportGraph): add option to exclude tactics Aug 10, 2023
@bors bors bot closed this Aug 10, 2023
@bors bors bot deleted the eugster/grap_exclude_tactics branch August 10, 2023 01:01
@joneugster
Copy link
Copy Markdown
Contributor Author

I'm slightly concerned that someone somewhere will try to use «Mathlib.Tactics» as an import, but I don't see a better solution for now.

That's why I added the French quotes at least. I considered something like Mathlib.Tactics* but that's not a valid Name.

kim-em pushed a commit that referenced this pull request Aug 14, 2023
Add an option `lake exe graph --excludeMeta` which removes all nodes that start with `Mathlib.[Tactic|Lean|Util]`
kim-em pushed a commit that referenced this pull request Aug 15, 2023
Add an option `lake exe graph --excludeMeta` which removes all nodes that start with `Mathlib.[Tactic|Lean|Util]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-meta Tactics, attributes or user commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants