Jennifer Taylor
|
8c25dc1ae7
|
Add support for "Parameters" and "Params" nodes in templates.
|
2020-02-03 10:30:29 -08:00 |
|
Jennifer Taylor
|
0c5f8d83a9
|
Add "AssignTarget" to valid types that can be templated.
|
2020-02-03 10:30:29 -08:00 |
|
Jennifer Taylor
|
d58005a8be
|
Add "Annotation" as a supported template replacement type.
|
2020-02-03 10:30:29 -08:00 |
|
Jennifer Taylor
|
c5d7861ed5
|
Add "evaluated_value" support to integer types.
|
2020-01-30 17:07:21 -08:00 |
|
Jimmy Lai
|
14077b8a80
|
[codemod] add ConvertPercentFormatStringCommand
|
2020-01-30 06:01:21 +08:00 |
|
Jennifer Taylor
|
379c9d06e7
|
Add a few print statements so that a user knows that LibCST isn't hanging if metadata calculation takes awhile.
|
2020-01-28 13:45:18 -08:00 |
|
Jennifer Taylor
|
9bfc6fdd29
|
Fix dependencies in LibCST setup.py discovered when setting up LibCST from scratch.
|
2020-01-28 13:45:18 -08:00 |
|
Jennifer Taylor
|
d13be3f2e0
|
Integrate FullRepoManager into codemod command, allowing codemods to depend on full-repo capable metadata providers.
|
2020-01-28 13:45:18 -08:00 |
|
Jennifer Taylor
|
761426cfc7
|
Use new SimpleString helper in a few codemods.
|
2020-01-28 13:45:03 -08:00 |
|
Jimmy Lai
|
7b474703a0
|
[doc] fix indentation
|
2020-01-29 05:25:30 +08:00 |
|
Jimmy Lai
|
c1284f21b1
|
remove unused TODO comment
|
2020-01-29 05:22:41 +08:00 |
|
Jennifer Taylor
|
6a9fd40413
|
Upgrade Pyre to 0.0.41 to hopefully resolve issue with installation.
|
2020-01-28 09:28:15 -08:00 |
|
Jennifer Taylor
|
e48aa6eaf7
|
Implement basic templated statement/expression/module parsing.
This has some corner cases that we do not currently handle, but those will come in a later commit.
|
2020-01-23 10:17:47 -08:00 |
|
Jimmy Lai
|
a2afdde360
|
add SimpleString.evaluated_value
|
2020-01-22 15:24:16 -08:00 |
|
Jennifer Taylor
|
13c0f14c34
|
Fix list behavior to not crash and burn if a codemod or test tries to do something on import.
|
2020-01-22 13:30:46 -08:00 |
|
Jennifer Taylor
|
9af717dcaa
|
Refactor string split helper method into core attributes.
|
2020-01-22 13:30:34 -08:00 |
|
Jennifer Taylor
|
b45a87ef2b
|
Clarify documentation about f-string spacing.
|
2020-01-21 17:31:39 -08:00 |
|
Jennifer Taylor
|
acdda22b51
|
Bump LibCST to new release 0.3.0.
|
2020-01-17 11:38:06 -08:00 |
|
Jennifer Taylor
|
fdd5cbbfe6
|
Implement parsing of posonly param indicator ('/'). This brings us to full 3.8 compatibility.
|
2020-01-17 10:57:48 -08:00 |
|
Jennifer Taylor
|
f45c57342b
|
Support f{x=} debugging syntax that was added to f-strings in 3.8.
|
2020-01-16 13:13:54 -08:00 |
|
Jimmy Lai
|
1f8ef1144a
|
[scope] add support for tracking reference in del expression context
|
2020-01-15 17:14:09 -08:00 |
|
Jennifer Taylor
|
d30b04559d
|
Implement a --python-version override flag to "libcst.tool print".
|
2020-01-15 17:05:33 -08:00 |
|
Jennifer Taylor
|
bcae954484
|
Add environment variable to require config file before proceeding.
|
2020-01-15 14:00:14 -08:00 |
|
Jennifer Taylor
|
6eb6ec7b1d
|
Add posonly parameter support to Parameters node.
This is part one of a two-part change to support the posonly param indicator "/".
|
2020-01-15 11:18:12 -08:00 |
|
Jimmy Lai
|
0d01792e6d
|
expose all helpers in libcst.helpers for convenience
|
2020-01-14 15:11:48 -08:00 |
|
Jimmy Lai
|
4a6b279ec4
|
[helper] QualifiedNameProvider.has_name
|
2020-01-10 15:45:55 -08:00 |
|
Jimmy Lai
|
fdce46a2da
|
Apply make_fixture_data() to codemod output
|
2020-01-10 15:38:23 -08:00 |
|
Jimmy Lai
|
257fd5755e
|
move ensure_future to libcst.helpers.expression
|
2020-01-10 12:15:38 -08:00 |
|
Jimmy Lai
|
dffb27b5b9
|
add get_full_name_for_expression helper
|
2020-01-10 12:15:38 -08:00 |
|
Jimmy Lai
|
2fb0db33d1
|
Clean up redundant code.
|
2020-01-10 08:47:21 -08:00 |
|
Jennifer Taylor
|
37554a85c0
|
Support reading arguments from file.
|
2020-01-09 16:05:49 -08:00 |
|
Jimmy Lai
|
194e5de936
|
Fix some typos.
|
2020-01-09 14:28:24 -08:00 |
|
Jimmy Lai
|
1de6f2cc8a
|
use transformer function (instead of visitor) in MatcherDecoratableTransformer
|
2020-01-09 14:04:51 -08:00 |
|
Jimmy Lai
|
e132b8e9f7
|
[typing] add missing return value type to Callable
|
2020-01-09 13:56:17 -08:00 |
|
Jimmy Lai
|
295847faea
|
Fix comment indentation
|
2020-01-09 13:55:49 -08:00 |
|
Jimmy Lai
|
78f0e13c48
|
Upgrade Pyre to 0.0.39
|
2020-01-09 11:06:40 -08:00 |
|
Jennifer Taylor
|
92050fac39
|
Fix a few typos in docs.
|
2020-01-08 18:08:30 -08:00 |
|
Jennifer Taylor
|
5d7d1a6fc4
|
Remove deprecated attributes and objects in metadata.
|
2020-01-08 17:41:39 -08:00 |
|
Jennifer Taylor
|
3ca41ffabc
|
Remove deprecated position provider objects.
|
2020-01-08 17:19:03 -08:00 |
|
Jennifer Taylor
|
91387f5f2f
|
Remove deprecated default_params attribute.
|
2020-01-08 17:18:41 -08:00 |
|
Jennifer Taylor
|
40e19ac457
|
Remove deprecated ExtSlice.
|
2020-01-08 17:18:19 -08:00 |
|
Jennifer Taylor
|
b319312de3
|
Add docstring for CodemodTest.
|
2020-01-08 17:17:48 -08:00 |
|
Jennifer Taylor
|
44afacbc67
|
Support codemods in subdirectories of configured modules.
|
2020-01-08 14:31:33 -08:00 |
|
Jimmy Lai
|
8887c3f3b8
|
remove unused type vars.
|
2020-01-08 12:01:22 -08:00 |
|
Jimmy Lai
|
f420cf9f7f
|
Reuse CSTNodeT type var
|
2020-01-08 12:01:22 -08:00 |
|
Jennifer Taylor
|
744ca1e47d
|
Bump LibCST to 0.2.7 in preparation for changing instagram source of truth.
|
2020-01-07 11:45:28 -08:00 |
|
Jennifer Taylor
|
0932049c75
|
Port add import updates to open-source.
|
2020-01-07 11:45:16 -08:00 |
|
Jennifer Taylor
|
109a0bbc16
|
Port runtime calculation by @joshkehn to open-source.
|
2020-01-06 12:56:41 -08:00 |
|
Jimmy Lai
|
a1bd01990a
|
bump LibCST version to 0.2.6
|
2020-01-02 10:08:33 -08:00 |
|
Jimmy Lai
|
b6ec177933
|
Use Pyre strict mode in Pyre test suite
|
2020-01-02 10:08:15 -08:00 |
|