diff --git a/check_copyright.sh b/check_copyright.sh new file mode 100755 index 000000000..0f801999a --- /dev/null +++ b/check_copyright.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + +set -eu +EXITCODE=0 +error() { echo "$1"; EXITCODE=1; } + +EXCEPTION_PATTERNS=( + "^native/libcst/tests/fixtures/" + "^libcst/_add_slots\.py$" + "^libcst/tests/test_\(e2e\|fuzz\)\.py$" + "^libcst/_parser/base_parser\.py$" + "^libcst/_parser/parso/utils\.py$" + "^libcst/_parser/parso/pgen2/\(generator\|grammar_parser\)\.py$" + "^libcst/_parser/parso/python/\(py_token\|tokenize\)\.py$" + "^libcst/_parser/parso/tests/test_\(fstring\|tokenize\|utils\)\.py$" +) + + +while read filename; do \ + if ! head -n 16 "$filename" | grep -q "Copyright (c) Meta Platforms, Inc. and affiliates."; then + error "Missing copyright in $filename" + fi +done < <( git ls-tree -r --name-only HEAD | grep "\(.py\|\.sh\|\.rs\)$" | grep -v "${EXCEPTION_PATTERNS[@]/#/-e}" ) +exit $EXITCODE \ No newline at end of file diff --git a/libcst/_nodes/tests/test_match.py b/libcst/_nodes/tests/test_match.py index a203ffefe..2f1e41935 100644 --- a/libcst/_nodes/tests/test_match.py +++ b/libcst/_nodes/tests/test_match.py @@ -1,4 +1,4 @@ -# Copyright (c) Facebook, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/_parser/parso/python/token.py b/libcst/_parser/parso/python/token.py index de8837193..ea3578744 100644 --- a/libcst/_parser/parso/python/token.py +++ b/libcst/_parser/parso/python/token.py @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/_parser/py_whitespace_parser.py b/libcst/_parser/py_whitespace_parser.py index a3c53a97f..b1fd9b5ed 100644 --- a/libcst/_parser/py_whitespace_parser.py +++ b/libcst/_parser/py_whitespace_parser.py @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/_parser/types/py_config.py b/libcst/_parser/types/py_config.py index cb91d5580..d77325912 100644 --- a/libcst/_parser/types/py_config.py +++ b/libcst/_parser/types/py_config.py @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/_parser/types/py_token.py b/libcst/_parser/types/py_token.py index 7fac5eb8c..d2f9b5379 100644 --- a/libcst/_parser/types/py_token.py +++ b/libcst/_parser/types/py_token.py @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/_parser/types/py_whitespace_state.py b/libcst/_parser/types/py_whitespace_state.py index 99047590d..6359e83eb 100644 --- a/libcst/_parser/types/py_whitespace_state.py +++ b/libcst/_parser/types/py_whitespace_state.py @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/libcst/codemod/visitors/_apply_type_annotations.py b/libcst/codemod/visitors/_apply_type_annotations.py index 24cd50a7e..ac954d2fc 100644 --- a/libcst/codemod/visitors/_apply_type_annotations.py +++ b/libcst/codemod/visitors/_apply_type_annotations.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016-present, Meta Platforms, Inc. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree diff --git a/libcst/codemod/visitors/tests/test_apply_type_annotations.py b/libcst/codemod/visitors/tests/test_apply_type_annotations.py index 8689afbd2..03e5ffbd5 100644 --- a/libcst/codemod/visitors/tests/test_apply_type_annotations.py +++ b/libcst/codemod/visitors/tests/test_apply_type_annotations.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016-present, Meta Platforms, Inc. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/native/libcst/Cargo.toml b/native/libcst/Cargo.toml index b0e111eea..d2916e174 100644 --- a/native/libcst/Cargo.toml +++ b/native/libcst/Cargo.toml @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/native/libcst/benches/parser_benchmark.rs b/native/libcst/benches/parser_benchmark.rs index 7a12ebb32..ad96d867c 100644 --- a/native/libcst/benches/parser_benchmark.rs +++ b/native/libcst/benches/parser_benchmark.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/bin.rs b/native/libcst/src/bin.rs index 1b42859a2..1517cce4a 100644 --- a/native/libcst/src/bin.rs +++ b/native/libcst/src/bin.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/lib.rs b/native/libcst/src/lib.rs index 997ac0bc0..d2e475abf 100644 --- a/native/libcst/src/lib.rs +++ b/native/libcst/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/codegen.rs b/native/libcst/src/nodes/codegen.rs index 99cc377a9..1ebf8d807 100644 --- a/native/libcst/src/nodes/codegen.rs +++ b/native/libcst/src/nodes/codegen.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/expression.rs b/native/libcst/src/nodes/expression.rs index 29f77deb0..570c55cab 100644 --- a/native/libcst/src/nodes/expression.rs +++ b/native/libcst/src/nodes/expression.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/inflate_helpers.rs b/native/libcst/src/nodes/inflate_helpers.rs index 262de5acd..8bf5c8aff 100644 --- a/native/libcst/src/nodes/inflate_helpers.rs +++ b/native/libcst/src/nodes/inflate_helpers.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/nodes/macros.rs b/native/libcst/src/nodes/macros.rs index 76498b8e5..c9ed49c18 100644 --- a/native/libcst/src/nodes/macros.rs +++ b/native/libcst/src/nodes/macros.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/mod.rs b/native/libcst/src/nodes/mod.rs index b6be09df6..69463d998 100644 --- a/native/libcst/src/nodes/mod.rs +++ b/native/libcst/src/nodes/mod.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/nodes/module.rs b/native/libcst/src/nodes/module.rs index 21e7e66c1..661c7bb74 100644 --- a/native/libcst/src/nodes/module.rs +++ b/native/libcst/src/nodes/module.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/op.rs b/native/libcst/src/nodes/op.rs index afa97d5dd..800f8ebd5 100644 --- a/native/libcst/src/nodes/op.rs +++ b/native/libcst/src/nodes/op.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/parser_config.rs b/native/libcst/src/nodes/parser_config.rs index acf140ee6..6dfdf544c 100644 --- a/native/libcst/src/nodes/parser_config.rs +++ b/native/libcst/src/nodes/parser_config.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/py_cached.rs b/native/libcst/src/nodes/py_cached.rs index 0a7fe6914..d23980516 100644 --- a/native/libcst/src/nodes/py_cached.rs +++ b/native/libcst/src/nodes/py_cached.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/statement.rs b/native/libcst/src/nodes/statement.rs index a740b2c9f..d68ec0557 100644 --- a/native/libcst/src/nodes/statement.rs +++ b/native/libcst/src/nodes/statement.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/test_utils.rs b/native/libcst/src/nodes/test_utils.rs index 109d471d8..675b493d7 100644 --- a/native/libcst/src/nodes/test_utils.rs +++ b/native/libcst/src/nodes/test_utils.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/nodes/traits.rs b/native/libcst/src/nodes/traits.rs index b6ab115c4..aabd27ef1 100644 --- a/native/libcst/src/nodes/traits.rs +++ b/native/libcst/src/nodes/traits.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/nodes/whitespace.rs b/native/libcst/src/nodes/whitespace.rs index 13c4c8c4b..59b314c2f 100644 --- a/native/libcst/src/nodes/whitespace.rs +++ b/native/libcst/src/nodes/whitespace.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/parser/errors.rs b/native/libcst/src/parser/errors.rs index 6438ffbec..aae7fdb61 100644 --- a/native/libcst/src/parser/errors.rs +++ b/native/libcst/src/parser/errors.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/parser/grammar.rs b/native/libcst/src/parser/grammar.rs index 8c1e5e344..3aaf71305 100644 --- a/native/libcst/src/parser/grammar.rs +++ b/native/libcst/src/parser/grammar.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/parser/mod.rs b/native/libcst/src/parser/mod.rs index 8e6ec8e14..05937ab3e 100644 --- a/native/libcst/src/parser/mod.rs +++ b/native/libcst/src/parser/mod.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/parser/numbers.rs b/native/libcst/src/parser/numbers.rs index 99a7d7920..286a33c73 100644 --- a/native/libcst/src/parser/numbers.rs +++ b/native/libcst/src/parser/numbers.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/py.rs b/native/libcst/src/py.rs index b938b691d..4cc30fbe5 100644 --- a/native/libcst/src/py.rs +++ b/native/libcst/src/py.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/src/tokenizer/core/mod.rs b/native/libcst/src/tokenizer/core/mod.rs index 0dd60944e..9a8695556 100644 --- a/native/libcst/src/tokenizer/core/mod.rs +++ b/native/libcst/src/tokenizer/core/mod.rs @@ -1,4 +1,4 @@ -// This implementation is Copyright (c) Meta Platforms, Inc. and its affiliates. +// This implementation is Copyright (c) Meta Platforms, Inc. and affiliates. // // CPython 3.10.0a5 and the original C code this is based on is // Copyright (c) 2001-2021 Python Software Foundation; All Rights Reserved diff --git a/native/libcst/src/tokenizer/core/string_types.rs b/native/libcst/src/tokenizer/core/string_types.rs index 27f0be362..8f9e0cf0f 100644 --- a/native/libcst/src/tokenizer/core/string_types.rs +++ b/native/libcst/src/tokenizer/core/string_types.rs @@ -1,4 +1,4 @@ -// This implementation is Copyright (c) Meta Platforms, Inc. and its affiliates. +// This implementation is Copyright (c) Meta Platforms, Inc. and affiliates. // // CPython 3.10.0a5 and the original C code this is based on is // Copyright (c) 2001-2021 Python Software Foundation; All Rights Reserved diff --git a/native/libcst/src/tokenizer/debug_utils.rs b/native/libcst/src/tokenizer/debug_utils.rs index 543258a10..1e476a47f 100644 --- a/native/libcst/src/tokenizer/debug_utils.rs +++ b/native/libcst/src/tokenizer/debug_utils.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/mod.rs b/native/libcst/src/tokenizer/mod.rs index 60f1a20dc..9f7bbe2c7 100644 --- a/native/libcst/src/tokenizer/mod.rs +++ b/native/libcst/src/tokenizer/mod.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/operators.rs b/native/libcst/src/tokenizer/operators.rs index 94f708050..e5ef1526f 100644 --- a/native/libcst/src/tokenizer/operators.rs +++ b/native/libcst/src/tokenizer/operators.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/tests.rs b/native/libcst/src/tokenizer/tests.rs index 2be070d13..300e6d299 100644 --- a/native/libcst/src/tokenizer/tests.rs +++ b/native/libcst/src/tokenizer/tests.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/text_position/char_width.rs b/native/libcst/src/tokenizer/text_position/char_width.rs index 879e12834..10c65a41d 100644 --- a/native/libcst/src/tokenizer/text_position/char_width.rs +++ b/native/libcst/src/tokenizer/text_position/char_width.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/text_position/mod.rs b/native/libcst/src/tokenizer/text_position/mod.rs index f94d73110..9c394d527 100644 --- a/native/libcst/src/tokenizer/text_position/mod.rs +++ b/native/libcst/src/tokenizer/text_position/mod.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. diff --git a/native/libcst/src/tokenizer/whitespace_parser.rs b/native/libcst/src/tokenizer/whitespace_parser.rs index ec463f990..f09ce7895 100644 --- a/native/libcst/src/tokenizer/whitespace_parser.rs +++ b/native/libcst/src/tokenizer/whitespace_parser.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst/tests/parser_roundtrip.rs b/native/libcst/tests/parser_roundtrip.rs index b16a46f08..7618eaec4 100644 --- a/native/libcst/tests/parser_roundtrip.rs +++ b/native/libcst/tests/parser_roundtrip.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst_derive/src/codegen.rs b/native/libcst_derive/src/codegen.rs index 4fce05df7..7dee8adcb 100644 --- a/native/libcst_derive/src/codegen.rs +++ b/native/libcst_derive/src/codegen.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst_derive/src/inflate.rs b/native/libcst_derive/src/inflate.rs index 323160c11..e457b0683 100644 --- a/native/libcst_derive/src/inflate.rs +++ b/native/libcst_derive/src/inflate.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst_derive/src/into_py.rs b/native/libcst_derive/src/into_py.rs index 3530b3d8b..d37a92d33 100644 --- a/native/libcst_derive/src/into_py.rs +++ b/native/libcst_derive/src/into_py.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst_derive/src/lib.rs b/native/libcst_derive/src/lib.rs index 97d1e3214..12ce4ff1d 100644 --- a/native/libcst_derive/src/lib.rs +++ b/native/libcst_derive/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/libcst_derive/src/parenthesized_node.rs b/native/libcst_derive/src/parenthesized_node.rs index fe716510b..9165dd1ba 100644 --- a/native/libcst_derive/src/parenthesized_node.rs +++ b/native/libcst_derive/src/parenthesized_node.rs @@ -1,4 +1,4 @@ -// Copyright (c) Meta Platforms, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree diff --git a/native/roundtrip.sh b/native/roundtrip.sh index 3f732143c..c75241f70 100755 --- a/native/roundtrip.sh +++ b/native/roundtrip.sh @@ -1,5 +1,10 @@ #!/bin/bash +# Copyright (c) Meta Platforms, Inc. and affiliates. +# +# This source code is licensed under the MIT license found in the +# LICENSE file in the root directory of this source tree. + PARSE=$(dirname $0)/target/release/parse exec diff -u "$1" <($PARSE < "$1") diff --git a/stubs/libcst/native.pyi b/stubs/libcst/native.pyi index 4741266b1..2a84d6a74 100644 --- a/stubs/libcst/native.pyi +++ b/stubs/libcst/native.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/stubs/libcst_native/parser_config.pyi b/stubs/libcst_native/parser_config.pyi index 412da05ef..1a095cfc1 100644 --- a/stubs/libcst_native/parser_config.pyi +++ b/stubs/libcst_native/parser_config.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/stubs/libcst_native/token_type.pyi b/stubs/libcst_native/token_type.pyi index 4dacfad7e..b51e8b483 100644 --- a/stubs/libcst_native/token_type.pyi +++ b/stubs/libcst_native/token_type.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/stubs/libcst_native/tokenize.pyi b/stubs/libcst_native/tokenize.pyi index 91c6d2e9b..12270da58 100644 --- a/stubs/libcst_native/tokenize.pyi +++ b/stubs/libcst_native/tokenize.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/stubs/libcst_native/whitespace_parser.pyi b/stubs/libcst_native/whitespace_parser.pyi index b2b51b54f..7c60189b8 100644 --- a/stubs/libcst_native/whitespace_parser.pyi +++ b/stubs/libcst_native/whitespace_parser.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. diff --git a/stubs/libcst_native/whitespace_state.pyi b/stubs/libcst_native/whitespace_state.pyi index 82db95278..75264a147 100644 --- a/stubs/libcst_native/whitespace_state.pyi +++ b/stubs/libcst_native/whitespace_state.pyi @@ -1,4 +1,4 @@ -# Copyright (c) Meta Platforms, Inc. and its affiliates. +# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree.