Jimmy Lai
9b7219b1a9
run pyre codegen in CI
2020-01-02 10:08:00 -08:00
Jimmy Lai
f6ecf67bb9
move type inference related logic to TypeInferenceProvider
2019-12-28 20:51:29 -08:00
Jimmy Lai
3c4c282bbe
add documents for TypeInferenceProvider and FullRepoManager
2019-12-28 20:51:29 -08:00
Jimmy Lai
657cbfe816
add FullRepoManagerTest
2019-12-28 20:51:29 -08:00
Jimmy Lai
9b84df7feb
add FullRepoManager
2019-12-28 20:51:29 -08:00
Jimmy Lai
87fbf0897b
rebase onto pyre_test_suite
2019-12-28 20:51:29 -08:00
Jimmy Lai
88267c8de1
rebase onto pyre_test_suite
2019-12-27 12:35:53 -08:00
Jimmy Lai
65e3b760b9
[metadata] add TypeInferenceProvider
2019-12-27 12:35:53 -08:00
Jimmy Lai
0a5bc066ce
fix broken usage link
2019-12-27 11:40:15 -08:00
Jimmy Lai
7a17cac2cf
remove unused parentheses
2019-12-27 11:40:15 -08:00
Jimmy Lai
bf0bfd40db
Merge branch 'pyre_test_suite'
2019-12-26 11:08:14 -08:00
Jimmy Lai
9bdb2b4eb5
Merge branch 'master' of github.com:Instagram/LibCST into pyre_test_suite
2019-12-23 23:53:05 -08:00
Jimmy Lai
a67dc670b8
upgrade Pyre to 0.0.38
2019-12-23 23:52:40 -08:00
Jimmy Lai
9a95ada52c
Black formatting
2019-12-21 10:59:42 -08:00
Jimmy Lai
c4891761b2
Merge branch 'master' of github.com:Instagram/LibCST into pyre_test_suite
2019-12-20 13:02:28 -08:00
Jennifer Taylor
9231e5ca3a
Plumb through the ability to override the python version used for parsing in libcst.tool.
2019-12-19 11:40:22 -08:00
Jennifer Taylor
da9d310048
Use qualified name scope in string replacement codemod.
2019-12-19 11:40:10 -08:00
Jimmy Lai
a341c37c52
Upgrade Pyre to 0.0.36
2019-12-18 22:02:51 -08:00
Jimmy Lai
495b65206c
ignore typing errors
2019-12-17 14:27:53 -08:00
Jimmy Lai
073a5588d8
Upgrade pyre-check version
2019-12-17 14:27:53 -08:00
Jimmy Lai
641ad91885
apply new Black formatting
2019-12-17 14:26:38 -08:00
Jennifer Taylor
9bfc4faea9
Add documentation for libcst.codemod and friends.
2019-12-17 11:59:51 -08:00
Jimmy Lai
779f20d358
add test suite for pyre regression test
2019-12-17 09:28:57 -08:00
Jimmy Lai
3006f884bf
Merge branch 'full_repo_manager'
2019-12-16 08:48:15 -08:00
jimmylai
ecebaaf857
Merge branch 'master' into full_repo_manager
2019-12-16 08:40:37 -08:00
Mark Vismonte
2aa9dc15b2
Merge pull request #165 from DragonMinded/opensource_2
...
Codemod Utilities and Example Codemods
2019-12-12 20:36:15 -08:00
Jennifer Taylor
aaac707a77
Add additional testing and guards for add imports visitor.
2019-12-12 19:52:17 -08:00
Jimmy Lai
3f2655e9ad
Merge branch 'master' of github.com:Instagram/LibCST into full_repo_manager
2019-12-12 16:38:08 -08:00
Jimmy Lai
cd0252bbb9
check cache is not None
2019-12-12 16:22:59 -08:00
Jimmy Lai
b8fd1a78e4
Merge branch 'master' of github.com:Instagram/LibCST into full_repo_manager
2019-12-12 16:21:16 -08:00
Jennifer Taylor
4ce17d43e9
Add some tests for uncovered areas of f-string codemod.
2019-12-12 15:55:03 -08:00
Jennifer Taylor
f7e13df680
Apply correct copyright header to all open-sourced files.
2019-12-12 15:34:13 -08:00
Jennifer Taylor
23accb47a8
Resolve full path of formatter so that it can be found in subprocess.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
9d06c3e860
Allow wrapping scripts to override the name of the command when printing tool help.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
5b81857673
Change codemod command help to print out description of codemod in question if it is available.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
508927aabf
Run add strict codemod across codemod directory, fix pyre errors.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
f5c5f296fd
Open-source a decent chunk of utility codemods that aren't instagram-specific.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
1fcf279eed
Add descriptions to all tool help, plumb tool name all the way to top level.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
2f472d16b5
Add a utility to libcst.tool which can list out all available codemods in the current configuration.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
196ca197c4
Add a utility to libcst.tool that can initialize a directory with a default LibCST codemod config.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
9459b581f4
Add a config file format to allow customization of LibCST codemod runner.
2019-12-12 11:31:05 -08:00
Jennifer Taylor
fcb9ac71be
Add some tests to fix missing coverage.
2019-12-12 11:28:53 -08:00
Jennifer Taylor
12946fcae4
Remove useless oncall designations for open-sourced files.
2019-12-12 11:28:53 -08:00
Jennifer Taylor
20acb169db
Rename overrideable function to be public.
2019-12-12 11:28:53 -08:00
Jennifer Taylor
c2900b5a39
Initial work to open-source codemod runner frontend, integrating it into libcst.tool.
2019-12-12 11:28:53 -08:00
Jennifer Taylor
8854b42735
Separate base testing class to a mixin so that it can be used with alternative testing frameworks.
2019-12-12 11:28:53 -08:00
Jennifer Taylor
69fd60edcf
Initial work to open-source codemod framework core.
2019-12-12 11:28:53 -08:00
Zach Hammer
20a73807c1
Fix black formatting
2019-12-06 10:58:50 -08:00
Zach Hammer
e211bea16c
Fix inconsistent type override errors
...
It seems that @mark_no_op was not correctly preserving type signatures
in pyre previous to this change. Preserving type signatures in the
decorator caused some pyre errors in tests where visitors are defined
that don't share the same arg names as their parent.
2019-12-06 10:58:50 -08:00
Zach Hammer
745cf3a344
Use bound=Callable directly
...
As per @dragonminded's suggestion. This seems to work on mypy
2019-12-06 10:58:50 -08:00