Zsolt Dollenstein
d9a1dc8473
Fix all type errors ( #579 )
...
* bump pyre version
* make sure CI-pyre uses working copy
* remove unused pyre suppressions
* suppress invalid decorations
* fix undefined attributes
* fix missing return annotations
* fix tuple concatenation issues
* add native stubs
* fix invalid typing of **kwargs in test_apply_type_annotations
* only install pyre on non-windows
* update test fixture to reflect changes in recent pyre versions
* suppress errors related to mismatched positions
2022-01-05 18:13:01 +00:00
Zsolt Dollenstein
c44ff0500b
Fix license headers ( #560 )
...
* Facebook -> Meta
* remove year from doc copyright
2021-12-28 11:55:18 +00:00
Steven Troxler
5e1e3fe970
The ufmt tool combines usort and black with a consistent wrapper, ( #515 )
...
which ensures we won't have inconsistent black-vs-isort errors
going forward. We can always format by running `ufmt format .`
at the root, and check with `ufmt check .` in our CI actions.
2021-08-25 20:39:29 -04:00
Germán Méndez Bravo
b4032a3232
Fix pyre error: kwonlydefaults is Optional
2020-08-07 11:15:21 -07:00
jimmylai
c023fa7c4c
[typing] enable Pyre strict mode by default ( #313 )
...
Co-authored-by: Jimmy Lai <jimmylai@fb.com>
2020-06-12 18:24:18 -07:00
Jennifer Taylor
0ff9a6c5b7
Add a visitor which can remove unused imports using scope analysis.
2020-02-18 16:02:10 -08:00
Jimmy Lai
295847faea
Fix comment indentation
2020-01-09 13:55:49 -08:00
Jennifer Taylor
9bfc4faea9
Add documentation for libcst.codemod and friends.
2019-12-17 11:59:51 -08:00
Jennifer Taylor
f7e13df680
Apply correct copyright header to all open-sourced files.
2019-12-12 15:34:13 -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
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
20acb169db
Rename overrideable function to be public.
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