formate-js 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (663) hide show
  1. formate_js-0.1.0/.bumpversion.cfg +28 -0
  2. formate_js-0.1.0/.github/ISSUE_TEMPLATE/bug_report.md +51 -0
  3. formate_js-0.1.0/.github/ISSUE_TEMPLATE/feature_request.md +27 -0
  4. formate_js-0.1.0/.github/auto_assign.yml +9 -0
  5. formate_js-0.1.0/.github/dependabot.yml +11 -0
  6. formate_js-0.1.0/.github/milestones.py +28 -0
  7. formate_js-0.1.0/.github/stale.yml +63 -0
  8. formate_js-0.1.0/.github/workflows/CI.yml +204 -0
  9. formate_js-0.1.0/.github/workflows/flake8.yml +51 -0
  10. formate_js-0.1.0/.github/workflows/mypy.yml +55 -0
  11. formate_js-0.1.0/.github/workflows/octocheese.yml +20 -0
  12. formate_js-0.1.0/.github/workflows/python_ci.yml +69 -0
  13. formate_js-0.1.0/.github/workflows/python_ci_linux.yml +70 -0
  14. formate_js-0.1.0/.github/workflows/python_ci_macos.yml +69 -0
  15. formate_js-0.1.0/.gitignore +86 -0
  16. formate_js-0.1.0/.imgbotconfig +6 -0
  17. formate_js-0.1.0/.pre-commit-config.yaml +97 -0
  18. formate_js-0.1.0/.pylintrc +407 -0
  19. formate_js-0.1.0/.style.yapf +393 -0
  20. formate_js-0.1.0/CONTRIBUTING.rst +73 -0
  21. formate_js-0.1.0/Cargo.lock +1406 -0
  22. formate_js-0.1.0/Cargo.toml +18 -0
  23. formate_js-0.1.0/LICENSE +19 -0
  24. formate_js-0.1.0/PKG-INFO +142 -0
  25. formate_js-0.1.0/README.rst +114 -0
  26. formate_js-0.1.0/formate.toml +41 -0
  27. formate_js-0.1.0/justfile +25 -0
  28. formate_js-0.1.0/pyproject.toml +84 -0
  29. formate_js-0.1.0/python/formate_js/__init__.py +89 -0
  30. formate_js-0.1.0/python/formate_js/_formate_js.pyi +614 -0
  31. formate_js-0.1.0/python/formate_js/enums.py +322 -0
  32. formate_js-0.1.0/python/formate_js/py.typed +0 -0
  33. formate_js-0.1.0/repo_helper.yml +42 -0
  34. formate_js-0.1.0/requirements.txt +1 -0
  35. formate_js-0.1.0/rustfmt.toml +1 -0
  36. formate_js-0.1.0/src/configuration.rs +2477 -0
  37. formate_js-0.1.0/src/configuration_builder.rs +712 -0
  38. formate_js-0.1.0/src/format_text.rs +70 -0
  39. formate_js-0.1.0/src/lib.rs +21 -0
  40. formate_js-0.1.0/tests/conftest.py +1 -0
  41. formate_js-0.1.0/tests/requirements.txt +8 -0
  42. formate_js-0.1.0/tests/specs/LICENSE +21 -0
  43. formate_js-0.1.0/tests/specs/README.md +5 -0
  44. formate_js-0.1.0/tests/specs/clauses/catchClause/CatchClause_All.txt +41 -0
  45. formate_js-0.1.0/tests/specs/clauses/catchClause/CatchClause_SpaceAround_True.txt +42 -0
  46. formate_js-0.1.0/tests/specs/comments/CommentBlocks_All.txt +102 -0
  47. formate_js-0.1.0/tests/specs/comments/CommentLines_All.txt +69 -0
  48. formate_js-0.1.0/tests/specs/comments/CommentLines_ForceSpaceAfterDoubleSlash_False.txt +10 -0
  49. formate_js-0.1.0/tests/specs/comments/IgnoreComments_All.txt +75 -0
  50. formate_js-0.1.0/tests/specs/comments/IgnoreComments_Custom.txt +70 -0
  51. formate_js-0.1.0/tests/specs/comments/IgnoreComments_Jsx.txt +50 -0
  52. formate_js-0.1.0/tests/specs/comments/InnerComments_All.txt +10 -0
  53. formate_js-0.1.0/tests/specs/comments/JSDocComments_All.txt +166 -0
  54. formate_js-0.1.0/tests/specs/common/ComputedProperty/ComputedProperty_All.txt +40 -0
  55. formate_js-0.1.0/tests/specs/common/DeclarationFile_All.txt +44 -0
  56. formate_js-0.1.0/tests/specs/common/configuration/IllegalTrailingCommas.txt +84 -0
  57. formate_js-0.1.0/tests/specs/common/configuration/UseTabs_IndentWidth.txt +8 -0
  58. formate_js-0.1.0/tests/specs/common/identifier/Identifier_All.txt +32 -0
  59. formate_js-0.1.0/tests/specs/common/typeAnnotation/TypeAnnotation_SpaceBeforeColon_True.txt +54 -0
  60. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_Body.txt +41 -0
  61. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_Body_Comments.txt +31 -0
  62. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_BracePosition_Maintain.txt +38 -0
  63. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_BracePosition_NextLine.txt +51 -0
  64. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_BracePosition_SameLine.txt +18 -0
  65. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_Decorators.txt +76 -0
  66. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_Header.txt +223 -0
  67. formate_js-0.1.0/tests/specs/declarations/class/ClassDeclaration_PreferHanging_True.txt +81 -0
  68. formate_js-0.1.0/tests/specs/declarations/class/auto_accessor/AutoAccessor_All.txt +32 -0
  69. formate_js-0.1.0/tests/specs/declarations/class/decorator/Decorator_All.txt +104 -0
  70. formate_js-0.1.0/tests/specs/declarations/class/decorator/Decorator_JavaScript.txt +11 -0
  71. formate_js-0.1.0/tests/specs/declarations/class/decorator/Decorators_PreferSingleLine_True.txt +37 -0
  72. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_All.txt +141 -0
  73. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_BracePosition_Maintain.txt +58 -0
  74. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_BracePosition_NextLine.txt +49 -0
  75. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_BracePosition_SameLine.txt +29 -0
  76. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_DeclareMethod.txt +11 -0
  77. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_DeclareMethod_SemiColons_Asi.txt +10 -0
  78. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_PreferHanging_True.txt +56 -0
  79. formate_js-0.1.0/tests/specs/declarations/class/method/ClassMethod_SpaceBeforeParentheses_True.txt +12 -0
  80. formate_js-0.1.0/tests/specs/declarations/class/parameter_property/ParameterProperty_All.txt +23 -0
  81. formate_js-0.1.0/tests/specs/declarations/class/private_method/PrivateMethod_All.txt +26 -0
  82. formate_js-0.1.0/tests/specs/declarations/class/private_property/PrivateProperty_All.txt +39 -0
  83. formate_js-0.1.0/tests/specs/declarations/class/property/ClassProperty_All.txt +51 -0
  84. formate_js-0.1.0/tests/specs/declarations/class/property/ClassProperty_SemiColons_Asi.txt +28 -0
  85. formate_js-0.1.0/tests/specs/declarations/class/static_block/StaticBlock_All.txt +17 -0
  86. formate_js-0.1.0/tests/specs/declarations/class/static_block/StaticBlock_BracePosition_Maintain.txt +26 -0
  87. formate_js-0.1.0/tests/specs/declarations/class/static_block/StaticBlock_BracePosition_NextLine.txt +13 -0
  88. formate_js-0.1.0/tests/specs/declarations/class/static_block/StaticBlock_BracePosition_SameLine.txt +13 -0
  89. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_All.txt +70 -0
  90. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_BracePosition_Maintain.txt +18 -0
  91. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_BracePosition_NextLine.txt +9 -0
  92. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_BracePosition_SameLine.txt +9 -0
  93. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_MemberSpacing_Blankline.txt +23 -0
  94. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_MemberSpacing_Maintain.txt +22 -0
  95. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_MemberSpacing_Newline.txt +20 -0
  96. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_TrailingCommas_Always.txt +13 -0
  97. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_TrailingCommas_Never.txt +13 -0
  98. formate_js-0.1.0/tests/specs/declarations/enum/EnumDeclaration_TrailingCommas_OnlyMultiLine.txt +13 -0
  99. formate_js-0.1.0/tests/specs/declarations/enum/members/EnumMember_All.txt +30 -0
  100. formate_js-0.1.0/tests/specs/declarations/export/ExportAllDeclaration_All.txt +28 -0
  101. formate_js-0.1.0/tests/specs/declarations/export/ExportAllDeclaration_SemiColons_Asi.txt +6 -0
  102. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_All.txt +7 -0
  103. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_ForceMultiLine_Always.txt +81 -0
  104. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_ForceMultiLine_OnlyWhenMultiple.txt +49 -0
  105. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_ForceSingleLine_True.txt +49 -0
  106. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_PreferSingleLine_True.txt +34 -0
  107. formate_js-0.1.0/tests/specs/declarations/export/ExportDeclaration_SpaceSurroundingNamedExports_False.txt +6 -0
  108. formate_js-0.1.0/tests/specs/declarations/export/ExportDefaultDeclaration_All.txt +16 -0
  109. formate_js-0.1.0/tests/specs/declarations/export/ExportDefaultExpression_All.txt +20 -0
  110. formate_js-0.1.0/tests/specs/declarations/export/ExportDefaultExpression_SemiColons_Asi.txt +8 -0
  111. formate_js-0.1.0/tests/specs/declarations/export/ExportNamedDeclaration_All.txt +179 -0
  112. formate_js-0.1.0/tests/specs/declarations/export/ExportNamedDeclaration_SemiColons_Asi.txt +6 -0
  113. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_PreferHanging_False.txt +19 -0
  114. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_PreferHanging_True.txt +51 -0
  115. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortNamedTypeExports_First.txt +18 -0
  116. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortNamedTypeExports_Last.txt +18 -0
  117. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortNamedTypeExports_None.txt +18 -0
  118. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortOrder_CaseInsensitive.txt +92 -0
  119. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortOrder_CaseSensitive.txt +15 -0
  120. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_SortOrder_Maintain.txt +15 -0
  121. formate_js-0.1.0/tests/specs/declarations/export/NamedExports_TrailingCommas_Never.txt +24 -0
  122. formate_js-0.1.0/tests/specs/declarations/function/Function_All.txt +107 -0
  123. formate_js-0.1.0/tests/specs/declarations/function/Function_BracePosition_Maintain.txt +38 -0
  124. formate_js-0.1.0/tests/specs/declarations/function/Function_BracePosition_NextLine.txt +19 -0
  125. formate_js-0.1.0/tests/specs/declarations/function/Function_BracePosition_SameLine.txt +18 -0
  126. formate_js-0.1.0/tests/specs/declarations/function/Function_CloseBraceOverMaxWidth.txt +48 -0
  127. formate_js-0.1.0/tests/specs/declarations/function/Function_Parens_PreferSingleLine_False.txt +29 -0
  128. formate_js-0.1.0/tests/specs/declarations/function/Function_Parens_PreferSingleLine_True.txt +22 -0
  129. formate_js-0.1.0/tests/specs/declarations/function/Function_PreferHanging_True.txt +44 -0
  130. formate_js-0.1.0/tests/specs/declarations/function/Function_SemiColons_Asi.txt +6 -0
  131. formate_js-0.1.0/tests/specs/declarations/function/Function_SpaceBeforeParentheses_True.txt +32 -0
  132. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_All.txt +176 -0
  133. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_ForceMultiLine_Always.txt +91 -0
  134. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_ForceMultiLine_Never.txt +6 -0
  135. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_ForceMultiLine_OnlyWhenMultiple.txt +16 -0
  136. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_ForceSingleLine_True.txt +56 -0
  137. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_PreferSingleLine_True.txt +34 -0
  138. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_SemiColons_Asi.txt +6 -0
  139. formate_js-0.1.0/tests/specs/declarations/import/ImportDeclaration_SpaceSurroundingNamedExports_False.txt +6 -0
  140. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_PreferHanging_False.txt +17 -0
  141. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_PreferHanging_True.txt +37 -0
  142. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortNamedTypeImports_First.txt +18 -0
  143. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortNamedTypeImports_Last.txt +18 -0
  144. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortNamedTypeImports_None.txt +18 -0
  145. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortOrder_CaseInsensitive.txt +92 -0
  146. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortOrder_CaseSensitive.txt +15 -0
  147. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_SortOrder_Maintain.txt +15 -0
  148. formate_js-0.1.0/tests/specs/declarations/import/NamedImports_TrailingCommas_Never.txt +24 -0
  149. formate_js-0.1.0/tests/specs/declarations/importEquals/ImportEqualsDeclaration_All.txt +16 -0
  150. formate_js-0.1.0/tests/specs/declarations/importEquals/ImportEqualsDeclaration_SemiColons_Asi.txt +6 -0
  151. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_Body.txt +40 -0
  152. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_BracePosition_Maintain.txt +38 -0
  153. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_BracePosition_NextLine.txt +35 -0
  154. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_BracePosition_SameLine.txt +18 -0
  155. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_Header.txt +123 -0
  156. formate_js-0.1.0/tests/specs/declarations/interface/InterfaceDeclaration_PreferHanging_True.txt +76 -0
  157. formate_js-0.1.0/tests/specs/declarations/interface/callSignature/CallSignature_All.txt +66 -0
  158. formate_js-0.1.0/tests/specs/declarations/interface/callSignature/CallSignature_PreferHanging_True.txt +23 -0
  159. formate_js-0.1.0/tests/specs/declarations/interface/callSignature/CallSignature_SemiColons_Asi.txt +10 -0
  160. formate_js-0.1.0/tests/specs/declarations/interface/constructSignature/ConstructSignature_All.txt +74 -0
  161. formate_js-0.1.0/tests/specs/declarations/interface/constructSignature/ConstructSignature_PreferHanging_True.txt +23 -0
  162. formate_js-0.1.0/tests/specs/declarations/interface/constructSignature/ConstructSignature_SemiColons_Asi.txt +10 -0
  163. formate_js-0.1.0/tests/specs/declarations/interface/constructSignature/ConstructSignature_SpaceAfterNewKeyword_True.txt +12 -0
  164. formate_js-0.1.0/tests/specs/declarations/interface/getterSignature/GetterSignature_All.txt +22 -0
  165. formate_js-0.1.0/tests/specs/declarations/interface/indexSignature/IndexSignature_All.txt +25 -0
  166. formate_js-0.1.0/tests/specs/declarations/interface/indexSignature/IndexSignature_SemiColons_Asi.txt +10 -0
  167. formate_js-0.1.0/tests/specs/declarations/interface/methodSignature/MethodSignature_All.txt +58 -0
  168. formate_js-0.1.0/tests/specs/declarations/interface/methodSignature/MethodSignature_PreferHanging_True.txt +23 -0
  169. formate_js-0.1.0/tests/specs/declarations/interface/methodSignature/MethodSignature_SemiColons_Asi.txt +10 -0
  170. formate_js-0.1.0/tests/specs/declarations/interface/propertySignature/PropertySignature_All.txt +17 -0
  171. formate_js-0.1.0/tests/specs/declarations/interface/propertySignature/PropertySignature_SemiColons_Asi.txt +10 -0
  172. formate_js-0.1.0/tests/specs/declarations/interface/setterSignature/SetterSignature_All.txt +22 -0
  173. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_Body.txt +40 -0
  174. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_BracePosition_Maintain.txt +18 -0
  175. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_BracePosition_NextLine.txt +9 -0
  176. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_BracePosition_SameLine.txt +9 -0
  177. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_Header.txt +51 -0
  178. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_NoBody.txt +5 -0
  179. formate_js-0.1.0/tests/specs/declarations/module/ModuleDeclaration_NoBody_SemiColons_Asi.txt +6 -0
  180. formate_js-0.1.0/tests/specs/declarations/namespaceExport/TSNamespaceExportDeclaration_All.txt +5 -0
  181. formate_js-0.1.0/tests/specs/declarations/namespaceExport/TSNamespaceExportDeclaration_SemiColons_Asi.txt +6 -0
  182. formate_js-0.1.0/tests/specs/declarations/typeAlias/TypeAlias_All.txt +24 -0
  183. formate_js-0.1.0/tests/specs/declarations/using/Using_All.txt +58 -0
  184. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_All.txt +167 -0
  185. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_Comments.txt +90 -0
  186. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_PreferHanging_Always.txt +32 -0
  187. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_PreferSingleLine_True.txt +65 -0
  188. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_SpaceAround_True.txt +6 -0
  189. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_TrailingCommas_Always.txt +30 -0
  190. formate_js-0.1.0/tests/specs/expressions/ArrayExpression/ArrayExpression_TrailingCommas_OnlyMultiLine.txt +30 -0
  191. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_All.txt +271 -0
  192. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_BracePosition_Maintain.txt +38 -0
  193. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_BracePosition_NextLine.txt +19 -0
  194. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_BracePosition_SameLine.txt +18 -0
  195. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_Cts.txt +10 -0
  196. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_Mts.txt +10 -0
  197. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_PreferHanging_Always.txt +19 -0
  198. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_PreferHanging_Never.txt +17 -0
  199. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_PreferSingleLine_False.txt +30 -0
  200. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_PreferSingleLine_True.txt +23 -0
  201. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_UseParentheses_Force.txt +20 -0
  202. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_UseParentheses_Maintain.txt +38 -0
  203. formate_js-0.1.0/tests/specs/expressions/ArrowFunctionExpression/ArrowFunctionExpression_UseParentheses_PreferNone.txt +42 -0
  204. formate_js-0.1.0/tests/specs/expressions/AsExpression/AsExpression_All.txt +26 -0
  205. formate_js-0.1.0/tests/specs/expressions/AssignmentExpression/AssignmentExpression_All.txt +59 -0
  206. formate_js-0.1.0/tests/specs/expressions/AwaitExpression/AwaitExpression_All.txt +17 -0
  207. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_All.txt +288 -0
  208. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_LinePerExpression_True.txt +32 -0
  209. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_LinePerExpression_True_PreferSingleLine_True.txt +46 -0
  210. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_Logical.txt +163 -0
  211. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_OperatorPosition_Maintain.txt +24 -0
  212. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_OperatorPosition_NextLine.txt +56 -0
  213. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_OperatorPosition_SameLine.txt +56 -0
  214. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_PreferSingleLine_True.txt +35 -0
  215. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_SpaceSurroundingOperator_False.txt +6 -0
  216. formate_js-0.1.0/tests/specs/expressions/BinaryExpression/BinaryExpression_Unary_In.txt +39 -0
  217. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_All.txt +35 -0
  218. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_HangingIndentWithHangingArgs.txt +14 -0
  219. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_PreferHanging_Always.txt +25 -0
  220. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_PreferHanging_Never.txt +53 -0
  221. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_PreferHanging_OnlySingleItem.txt +83 -0
  222. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_PreferSingleLine_False.txt +11 -0
  223. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_PreferSingleLine_True.txt +8 -0
  224. formate_js-0.1.0/tests/specs/expressions/CallExpression/CallExpression_TestLibraries.txt +101 -0
  225. formate_js-0.1.0/tests/specs/expressions/ClassExpression/ClassExpression_BracePosition_Maintain.txt +38 -0
  226. formate_js-0.1.0/tests/specs/expressions/ClassExpression/ClassExpression_BracePosition_NextLine.txt +53 -0
  227. formate_js-0.1.0/tests/specs/expressions/ClassExpression/ClassExpression_BracePosition_SameLine.txt +18 -0
  228. formate_js-0.1.0/tests/specs/expressions/ClassExpression/ClassExpression_Decorators.txt +108 -0
  229. formate_js-0.1.0/tests/specs/expressions/ClassExpression/ClassExpression_Header.txt +191 -0
  230. formate_js-0.1.0/tests/specs/expressions/Computed/Computed_PreferSingleLine_True.txt +8 -0
  231. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_All.txt +122 -0
  232. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_LinePerExpression_False.txt +40 -0
  233. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_OperatorPosition_Maintain.txt +20 -0
  234. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_OperatorPosition_NextLine.txt +44 -0
  235. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_OperatorPosition_SameLine.txt +62 -0
  236. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_PreferSingleLine_False.txt +28 -0
  237. formate_js-0.1.0/tests/specs/expressions/ConditionalExpression/ConditionalExpression_PreferSingleLine_True.txt +30 -0
  238. formate_js-0.1.0/tests/specs/expressions/ConstAssertion/ConstAssertion_All.txt +9 -0
  239. formate_js-0.1.0/tests/specs/expressions/ExpressionWithTypeArguments/ExpressionWithTypeArguments_All.txt +7 -0
  240. formate_js-0.1.0/tests/specs/expressions/ExternalModuleReference/ExternalModuleReference_All.txt +15 -0
  241. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_All.txt +77 -0
  242. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_BracePosition_Maintain.txt +38 -0
  243. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_BracePosition_NextLine.txt +19 -0
  244. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_BracePosition_SameLine.txt +18 -0
  245. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_PreferHanging_Always.txt +19 -0
  246. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_PreferHanging_Never.txt +19 -0
  247. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_PreferSingleLine_False.txt +29 -0
  248. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_SpaceAfterFunctionKeyword_True.txt +21 -0
  249. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_SpaceBeforeParentheses_True.txt +31 -0
  250. formate_js-0.1.0/tests/specs/expressions/FunctionExpression/FunctionExpression_SpaceSettings_True.txt +33 -0
  251. formate_js-0.1.0/tests/specs/expressions/MemberExpression/MemberExpression_All.txt +171 -0
  252. formate_js-0.1.0/tests/specs/expressions/MemberExpression/MemberExpression_LinePerExpression_True.txt +34 -0
  253. formate_js-0.1.0/tests/specs/expressions/MemberExpression/MemberExpression_LinePerExpression_True_PreferSingleLine_True.txt +30 -0
  254. formate_js-0.1.0/tests/specs/expressions/MemberExpression/MemberExpression_PreferSingleLine_True.txt +20 -0
  255. formate_js-0.1.0/tests/specs/expressions/MemberExpression/MemberExpression_WiderWidth.txt +15 -0
  256. formate_js-0.1.0/tests/specs/expressions/MetaProperty/MetaProperty_All.txt +17 -0
  257. formate_js-0.1.0/tests/specs/expressions/NewExpression/NewExpression_All.txt +7 -0
  258. formate_js-0.1.0/tests/specs/expressions/NewExpression/NewExpression_PreferHanging_Never.txt +35 -0
  259. formate_js-0.1.0/tests/specs/expressions/NonNullExpression/NonNullExpression_All.txt +5 -0
  260. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_All.txt +81 -0
  261. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_Comments.txt +56 -0
  262. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_PreferHanging_True.txt +38 -0
  263. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_PreferSingleLine_True.txt +38 -0
  264. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_SpaceSurroundingProperties_False.txt +6 -0
  265. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_TrailingCommas_Always.txt +18 -0
  266. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_TrailingCommas_Never.txt +18 -0
  267. formate_js-0.1.0/tests/specs/expressions/ObjectExpression/ObjectExpression_TrailingCommas_OnlyMultiLine.txt +29 -0
  268. formate_js-0.1.0/tests/specs/expressions/ObjectMethod/ObjectMethod_All.txt +84 -0
  269. formate_js-0.1.0/tests/specs/expressions/ObjectMethod/ObjectMethod_PreferHanging_Always.txt +28 -0
  270. formate_js-0.1.0/tests/specs/expressions/ObjectProperty/ObjectProperty_All.txt +53 -0
  271. formate_js-0.1.0/tests/specs/expressions/ParenExpr/ParenExpr_All.txt +233 -0
  272. formate_js-0.1.0/tests/specs/expressions/ParenExpr/ParenExpr_SpaceAround_True.txt +198 -0
  273. formate_js-0.1.0/tests/specs/expressions/SatisfactionExpression/SatisfactionExpression_All.txt +26 -0
  274. formate_js-0.1.0/tests/specs/expressions/SequenceExpression/SequenceExpression_All.txt +28 -0
  275. formate_js-0.1.0/tests/specs/expressions/SequenceExpression/SequenceExpression_PreferHanging_True.txt +7 -0
  276. formate_js-0.1.0/tests/specs/expressions/SpreadElement/SpreadElement_All.txt +5 -0
  277. formate_js-0.1.0/tests/specs/expressions/TaggedTemplateExpression/TaggedTemplateExpression_All.txt +55 -0
  278. formate_js-0.1.0/tests/specs/expressions/TaggedTemplateExpression/TaggedTemplateExpression_SpaceBeforeTemplate_False.txt +34 -0
  279. formate_js-0.1.0/tests/specs/expressions/TsInstantiation/TsInstantiation_All.txt +35 -0
  280. formate_js-0.1.0/tests/specs/expressions/TypeAssertion/TypeAssertion_All.txt +17 -0
  281. formate_js-0.1.0/tests/specs/expressions/TypeAssertion/TypeAssertion_SpaceBeforeExpression_False.txt +8 -0
  282. formate_js-0.1.0/tests/specs/expressions/UnaryExpression/UnaryExpression_All.txt +19 -0
  283. formate_js-0.1.0/tests/specs/expressions/UpdateExpression/UpdateExpression_All.txt +11 -0
  284. formate_js-0.1.0/tests/specs/expressions/YieldExpression/YieldExpression_All.txt +47 -0
  285. formate_js-0.1.0/tests/specs/file/File_All.txt +24 -0
  286. formate_js-0.1.0/tests/specs/file/File_IgnoreFileComment.txt +83 -0
  287. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortExportDeclarations_CaseInsensitive.txt +8 -0
  288. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortExportDeclarations_CaseSensitive.txt +8 -0
  289. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortExportDeclarations_Maintain.txt +8 -0
  290. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortImportDeclarations_Alpha.txt +14 -0
  291. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortImportDeclarations_CaseInsensitive.txt +8 -0
  292. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortImportDeclarations_CaseSensitive.txt +8 -0
  293. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortImportDeclarations_Maintain.txt +8 -0
  294. formate_js-0.1.0/tests/specs/file/sorting/Statements_SortOrder.txt +143 -0
  295. formate_js-0.1.0/tests/specs/file_indent_level/FileIndentLevel.txt +16 -0
  296. formate_js-0.1.0/tests/specs/general/Arguments_All.txt +154 -0
  297. formate_js-0.1.0/tests/specs/general/Arguments_Comments.txt +41 -0
  298. formate_js-0.1.0/tests/specs/general/Arguments_PreferHanging_True.txt +48 -0
  299. formate_js-0.1.0/tests/specs/general/Arguments_PreferSingleLine_False.txt +12 -0
  300. formate_js-0.1.0/tests/specs/general/Arguments_PreferSingleLine_PreferHanging_True.txt +69 -0
  301. formate_js-0.1.0/tests/specs/general/Arguments_PreferSingleLine_True.txt +39 -0
  302. formate_js-0.1.0/tests/specs/general/Arguments_SpaceAround_True.txt +51 -0
  303. formate_js-0.1.0/tests/specs/general/Parameters_All.txt +96 -0
  304. formate_js-0.1.0/tests/specs/general/Parameters_PreferHanging_True.txt +10 -0
  305. formate_js-0.1.0/tests/specs/general/Parameters_PreferSingleLine_False.txt +26 -0
  306. formate_js-0.1.0/tests/specs/general/Parameters_PreferSingleLine_True.txt +81 -0
  307. formate_js-0.1.0/tests/specs/general/Parameters_SpaceAround_True.txt +18 -0
  308. formate_js-0.1.0/tests/specs/general/Parentheses_All.txt +114 -0
  309. formate_js-0.1.0/tests/specs/general/Parentheses_PreferSingleLine_True.txt +69 -0
  310. formate_js-0.1.0/tests/specs/general/SpaceSurroundingProperties_False.txt +10 -0
  311. formate_js-0.1.0/tests/specs/issues/issue0011.txt +16 -0
  312. formate_js-0.1.0/tests/specs/issues/issue0015.txt +30 -0
  313. formate_js-0.1.0/tests/specs/issues/issue0021.txt +31 -0
  314. formate_js-0.1.0/tests/specs/issues/issue0022.txt +28 -0
  315. formate_js-0.1.0/tests/specs/issues/issue0023.txt +12 -0
  316. formate_js-0.1.0/tests/specs/issues/issue0024.txt +18 -0
  317. formate_js-0.1.0/tests/specs/issues/issue0025.txt +14 -0
  318. formate_js-0.1.0/tests/specs/issues/issue0030.txt +11 -0
  319. formate_js-0.1.0/tests/specs/issues/issue0046.txt +8 -0
  320. formate_js-0.1.0/tests/specs/issues/issue0047.txt +13 -0
  321. formate_js-0.1.0/tests/specs/issues/issue0059.txt +18 -0
  322. formate_js-0.1.0/tests/specs/issues/issue0065.txt +11 -0
  323. formate_js-0.1.0/tests/specs/issues/issue0085.txt +10 -0
  324. formate_js-0.1.0/tests/specs/issues/issue0094.txt +50 -0
  325. formate_js-0.1.0/tests/specs/issues/issue0095.txt +5 -0
  326. formate_js-0.1.0/tests/specs/issues/issue0103.txt +16 -0
  327. formate_js-0.1.0/tests/specs/issues/issue0112.txt +11 -0
  328. formate_js-0.1.0/tests/specs/issues/issue0116.txt +6 -0
  329. formate_js-0.1.0/tests/specs/issues/issue0122.txt +13 -0
  330. formate_js-0.1.0/tests/specs/issues/issue0123.txt +9 -0
  331. formate_js-0.1.0/tests/specs/issues/issue0124.txt +19 -0
  332. formate_js-0.1.0/tests/specs/issues/issue0127.txt +28 -0
  333. formate_js-0.1.0/tests/specs/issues/issue0128.txt +9 -0
  334. formate_js-0.1.0/tests/specs/issues/issue0137.txt +28 -0
  335. formate_js-0.1.0/tests/specs/issues/issue0139.txt +27 -0
  336. formate_js-0.1.0/tests/specs/issues/issue0141.txt +49 -0
  337. formate_js-0.1.0/tests/specs/issues/issue0264.txt +16 -0
  338. formate_js-0.1.0/tests/specs/issues/issue0265.txt +6 -0
  339. formate_js-0.1.0/tests/specs/issues/issue0266.txt +9 -0
  340. formate_js-0.1.0/tests/specs/issues/issue0268_01.txt +14 -0
  341. formate_js-0.1.0/tests/specs/issues/issue0268_02.txt +17 -0
  342. formate_js-0.1.0/tests/specs/issues/issue0272.txt +36 -0
  343. formate_js-0.1.0/tests/specs/issues/issue0276.txt +18 -0
  344. formate_js-0.1.0/tests/specs/issues/issue0303.txt +24 -0
  345. formate_js-0.1.0/tests/specs/issues/issue0306.txt +7 -0
  346. formate_js-0.1.0/tests/specs/issues/issue0312.txt +11 -0
  347. formate_js-0.1.0/tests/specs/issues/issue0335.txt +10 -0
  348. formate_js-0.1.0/tests/specs/issues/issue0351.txt +7 -0
  349. formate_js-0.1.0/tests/specs/issues/issue0359.txt +54 -0
  350. formate_js-0.1.0/tests/specs/issues/issue0364.txt +110 -0
  351. formate_js-0.1.0/tests/specs/issues/issue0372.txt +17 -0
  352. formate_js-0.1.0/tests/specs/issues/issue0382.txt +22 -0
  353. formate_js-0.1.0/tests/specs/issues/issue0390.txt +12 -0
  354. formate_js-0.1.0/tests/specs/issues/issue0402.txt +16 -0
  355. formate_js-0.1.0/tests/specs/issues/issue0403.txt +54 -0
  356. formate_js-0.1.0/tests/specs/issues/issue0406.txt +21 -0
  357. formate_js-0.1.0/tests/specs/issues/issue0409.txt +27 -0
  358. formate_js-0.1.0/tests/specs/issues/issue0413.txt +17 -0
  359. formate_js-0.1.0/tests/specs/issues/issue0415.txt +9 -0
  360. formate_js-0.1.0/tests/specs/issues/issue0416.txt +24 -0
  361. formate_js-0.1.0/tests/specs/issues/issue0421.txt +13 -0
  362. formate_js-0.1.0/tests/specs/issues/issue0424.txt +16 -0
  363. formate_js-0.1.0/tests/specs/issues/issue0426.txt +5 -0
  364. formate_js-0.1.0/tests/specs/issues/issue0440.txt +14 -0
  365. formate_js-0.1.0/tests/specs/issues/issue0468.txt +19 -0
  366. formate_js-0.1.0/tests/specs/issues/issue0510.txt +11 -0
  367. formate_js-0.1.0/tests/specs/issues/issue0511.txt +11 -0
  368. formate_js-0.1.0/tests/specs/issues/issue0516.txt +37 -0
  369. formate_js-0.1.0/tests/specs/issues/issue0520.txt +1043 -0
  370. formate_js-0.1.0/tests/specs/issues/issue0533.txt +20 -0
  371. formate_js-0.1.0/tests/specs/issues/issue0539.txt +10 -0
  372. formate_js-0.1.0/tests/specs/issues/issue0556.txt +40 -0
  373. formate_js-0.1.0/tests/specs/issues/issue0565.txt +17 -0
  374. formate_js-0.1.0/tests/specs/issues/issue0632.txt +7 -0
  375. formate_js-0.1.0/tests/specs/issues/issue0650.txt +52 -0
  376. formate_js-0.1.0/tests/specs/issues/old_repo/issue022.txt +9 -0
  377. formate_js-0.1.0/tests/specs/issues/old_repo/issue028.txt +19 -0
  378. formate_js-0.1.0/tests/specs/issues/old_repo/issue035.txt +11 -0
  379. formate_js-0.1.0/tests/specs/issues/old_repo/issue035_PreferSingleLine.txt +9 -0
  380. formate_js-0.1.0/tests/specs/issues/old_repo/issue036.txt +20 -0
  381. formate_js-0.1.0/tests/specs/issues/old_repo/issue046.txt +20 -0
  382. formate_js-0.1.0/tests/specs/issues/old_repo/issue051.txt +29 -0
  383. formate_js-0.1.0/tests/specs/issues/old_repo/issue062.txt +15 -0
  384. formate_js-0.1.0/tests/specs/issues/old_repo/issue066.txt +7 -0
  385. formate_js-0.1.0/tests/specs/issues/old_repo/issue067.txt +34 -0
  386. formate_js-0.1.0/tests/specs/issues/old_repo/issue083.txt +11 -0
  387. formate_js-0.1.0/tests/specs/issues/old_repo/issue084.txt +15 -0
  388. formate_js-0.1.0/tests/specs/issues/old_repo/issue105.txt +43 -0
  389. formate_js-0.1.0/tests/specs/issues/old_repo/issue107.txt +14 -0
  390. formate_js-0.1.0/tests/specs/issues/old_repo/issue116.txt +24 -0
  391. formate_js-0.1.0/tests/specs/issues/old_repo/issue117.txt +5 -0
  392. formate_js-0.1.0/tests/specs/issues/old_repo/issue122.txt +11 -0
  393. formate_js-0.1.0/tests/specs/issues/old_repo/issue123.txt +12 -0
  394. formate_js-0.1.0/tests/specs/issues/old_repo/issue124.txt +12 -0
  395. formate_js-0.1.0/tests/specs/issues/old_repo/issue128.txt +14 -0
  396. formate_js-0.1.0/tests/specs/issues/old_repo/issue131.txt +11 -0
  397. formate_js-0.1.0/tests/specs/issues/old_repo/issue132.txt +12 -0
  398. formate_js-0.1.0/tests/specs/issues/old_repo/issue133.txt +12 -0
  399. formate_js-0.1.0/tests/specs/issues/old_repo/issue134.txt +18 -0
  400. formate_js-0.1.0/tests/specs/issues/old_repo/issue139.txt +10 -0
  401. formate_js-0.1.0/tests/specs/issues/old_repo/issue140.txt +47 -0
  402. formate_js-0.1.0/tests/specs/issues/old_repo/issue142.txt +5 -0
  403. formate_js-0.1.0/tests/specs/issues/old_repo/issue150.txt +9 -0
  404. formate_js-0.1.0/tests/specs/issues/old_repo/issue158.txt +54 -0
  405. formate_js-0.1.0/tests/specs/issues/old_repo/issue165.txt +32 -0
  406. formate_js-0.1.0/tests/specs/issues/old_repo/issue170.txt +23 -0
  407. formate_js-0.1.0/tests/specs/issues/old_repo/issue174.txt +28 -0
  408. formate_js-0.1.0/tests/specs/issues/old_repo/issue174_PreferHanging.txt +12 -0
  409. formate_js-0.1.0/tests/specs/issues/old_repo/issue175.txt +11 -0
  410. formate_js-0.1.0/tests/specs/issues/old_repo/issue179.txt +16 -0
  411. formate_js-0.1.0/tests/specs/issues/old_repo/issue180.txt +30 -0
  412. formate_js-0.1.0/tests/specs/issues/old_repo/issue183.txt +5 -0
  413. formate_js-0.1.0/tests/specs/issues/old_repo/issue197.txt +10 -0
  414. formate_js-0.1.0/tests/specs/issues/old_repo/issue199.txt +17 -0
  415. formate_js-0.1.0/tests/specs/issues/old_repo/issue201.txt +5 -0
  416. formate_js-0.1.0/tests/specs/issues/old_repo/issue212.txt +12 -0
  417. formate_js-0.1.0/tests/specs/issues/old_repo/issue217.txt +15 -0
  418. formate_js-0.1.0/tests/specs/issues/old_repo/issue219.txt +33 -0
  419. formate_js-0.1.0/tests/specs/issues/old_repo/issue220.txt +17 -0
  420. formate_js-0.1.0/tests/specs/jsx/JsxAttribute/JsxAttribute_All.txt +22 -0
  421. formate_js-0.1.0/tests/specs/jsx/JsxClosingElement/JsxClosingElement_All.txt +6 -0
  422. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_All.txt +291 -0
  423. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_ForceNewLineSurroundingContent.txt +31 -0
  424. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_MultiLineParens_Always.txt +250 -0
  425. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_MultiLineParens_Never.txt +124 -0
  426. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_MultiLineParens_Prefer.txt +196 -0
  427. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_PreferSingleLine_True.txt +56 -0
  428. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxElement_Spaces.txt +388 -0
  429. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxOpeningElement_BracketPosition_Maintain.txt +62 -0
  430. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxOpeningElement_BracketPosition_NextLine.txt +63 -0
  431. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxOpeningElement_BracketPosition_SameLine.txt +61 -0
  432. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxSelfClosingElement_BracketPosition_Maintain.txt +48 -0
  433. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxSelfClosingElement_BracketPosition_NextLine.txt +38 -0
  434. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxSelfClosingElement_BracketPosition_SameLine.txt +37 -0
  435. formate_js-0.1.0/tests/specs/jsx/JsxElement/JsxSelfClosingElement_SpaceBeforeSlash_False.txt +43 -0
  436. formate_js-0.1.0/tests/specs/jsx/JsxEmptyExpression/JsxEmptyExpression_All.txt +6 -0
  437. formate_js-0.1.0/tests/specs/jsx/JsxExpressionContainer/JsxExpressionContainer_All.txt +66 -0
  438. formate_js-0.1.0/tests/specs/jsx/JsxExpressionContainer/JsxExpressionContainer_SpaceSurroundingExpression_True.txt +7 -0
  439. formate_js-0.1.0/tests/specs/jsx/JsxFragment/JsxClosingFragment_All.txt +6 -0
  440. formate_js-0.1.0/tests/specs/jsx/JsxFragment/JsxFragment_All.txt +118 -0
  441. formate_js-0.1.0/tests/specs/jsx/JsxFragment/JsxFragment_MultiLineParens_False.txt +97 -0
  442. formate_js-0.1.0/tests/specs/jsx/JsxFragment/JsxOpeningFragment_All.txt +6 -0
  443. formate_js-0.1.0/tests/specs/jsx/JsxMemberExpression/JsxMemberExpression_All.txt +6 -0
  444. formate_js-0.1.0/tests/specs/jsx/JsxNamespacedName/JsxNamespacedName_All.txt +6 -0
  445. formate_js-0.1.0/tests/specs/jsx/JsxOpeningElement/JsxOpeningElement_All.txt +152 -0
  446. formate_js-0.1.0/tests/specs/jsx/JsxOpeningElement/JsxOpeningElement_PreferHanging_True.txt +48 -0
  447. formate_js-0.1.0/tests/specs/jsx/JsxOpeningElement/JsxOpeningElement_PreferSingleLine_True.txt +49 -0
  448. formate_js-0.1.0/tests/specs/jsx/JsxOpeningElement/JsxOpeningElement_TypeArguments.txt +34 -0
  449. formate_js-0.1.0/tests/specs/jsx/JsxSpreadAttribute/JsxSpreadAttribute_All.txt +6 -0
  450. formate_js-0.1.0/tests/specs/jsx/JsxSpreadChild/JsxSpreadChild_All.txt +6 -0
  451. formate_js-0.1.0/tests/specs/jsx/JsxText/JsxText_All.txt +72 -0
  452. formate_js-0.1.0/tests/specs/keywords/Various.txt +5 -0
  453. formate_js-0.1.0/tests/specs/keywords/import/Import_All.txt +5 -0
  454. formate_js-0.1.0/tests/specs/literals/BigIntLiteral/BigIntLiteral_All.txt +7 -0
  455. formate_js-0.1.0/tests/specs/literals/NumericLiteral/NumericLiteral_All.txt +15 -0
  456. formate_js-0.1.0/tests/specs/literals/RegExpLiteral/RegExpLiteral_All.txt +9 -0
  457. formate_js-0.1.0/tests/specs/literals/StringLiteral/DirectiveLiteral_QuoteStyle_AlwaysDouble.txt +12 -0
  458. formate_js-0.1.0/tests/specs/literals/StringLiteral/DirectiveLiteral_QuoteStyle_AlwaysSingle.txt +12 -0
  459. formate_js-0.1.0/tests/specs/literals/StringLiteral/DirectiveLiteral_QuoteStyle_PreferDouble.txt +12 -0
  460. formate_js-0.1.0/tests/specs/literals/StringLiteral/DirectiveLiteral_QuoteStyle_PreferSingle.txt +12 -0
  461. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_All.txt +17 -0
  462. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_QuoteProps_AsNeeded.txt +176 -0
  463. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_QuoteProps_Consistent.txt +188 -0
  464. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_QuoteProps_Preserve.txt +138 -0
  465. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_QuoteStyle_AlwaysDouble_Jsx.txt +7 -0
  466. formate_js-0.1.0/tests/specs/literals/StringLiteral/StringLiteral_QuoteStyle_AlwaysSingle_Jsx.txt +18 -0
  467. formate_js-0.1.0/tests/specs/literals/StringLiteralTypeAnnotation/StringLiteralTypeAnnotation_QuoteStyle_AlwaysDouble.txt +12 -0
  468. formate_js-0.1.0/tests/specs/literals/StringLiteralTypeAnnotation/StringLiteralTypeAnnotation_QuoteStyle_AlwaysSingle.txt +12 -0
  469. formate_js-0.1.0/tests/specs/literals/StringLiteralTypeAnnotation/StringLiteralTypeAnnotation_QuoteStyle_PreferDouble.txt +12 -0
  470. formate_js-0.1.0/tests/specs/literals/StringLiteralTypeAnnotation/StringLiteralTypeAnnotation_QuoteStyle_PreferSingle.txt +12 -0
  471. formate_js-0.1.0/tests/specs/literals/TemplateLiteral/TemplateLiteral_All.txt +194 -0
  472. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_All.txt +56 -0
  473. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_PreferHanging_True.txt +11 -0
  474. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_PreferSingleLine_True.txt +25 -0
  475. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_SpaceAround_True.txt +10 -0
  476. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_TrailingCommas_Always.txt +22 -0
  477. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_TrailingCommas_Never.txt +22 -0
  478. formate_js-0.1.0/tests/specs/patterns/ArrayPattern/ArrayPattern_TrailingCommas_OnlyMultiLine.txt +35 -0
  479. formate_js-0.1.0/tests/specs/patterns/AssignmentPattern/AssignmentPattern_All.txt +15 -0
  480. formate_js-0.1.0/tests/specs/patterns/KeyValuePatProp/KeyValuePatProp_All.txt +17 -0
  481. formate_js-0.1.0/tests/specs/patterns/ObjectPattern/ObjectPattern_All.txt +37 -0
  482. formate_js-0.1.0/tests/specs/patterns/ObjectPattern/ObjectPattern_PreferHanging_True.txt +23 -0
  483. formate_js-0.1.0/tests/specs/patterns/ObjectPattern/ObjectPattern_PreferSingleLine_True.txt +35 -0
  484. formate_js-0.1.0/tests/specs/patterns/ObjectPattern/ObjectPattern_SpaceSurroundingProperties_False.txt +6 -0
  485. formate_js-0.1.0/tests/specs/patterns/RestPattern/RestPattern_All.txt +13 -0
  486. formate_js-0.1.0/tests/specs/statements/blockStatement/BlockStatement_All.txt +43 -0
  487. formate_js-0.1.0/tests/specs/statements/blockStatement/BlockStatement_Comments.txt +83 -0
  488. formate_js-0.1.0/tests/specs/statements/breakStatement/BreakStatement_All.txt +18 -0
  489. formate_js-0.1.0/tests/specs/statements/breakStatement/BreakStatement_SemiColons_Asi.txt +9 -0
  490. formate_js-0.1.0/tests/specs/statements/continueStatement/ContinueStatement_All.txt +19 -0
  491. formate_js-0.1.0/tests/specs/statements/continueStatement/ContinueStatement_SemiColons_Asi.txt +9 -0
  492. formate_js-0.1.0/tests/specs/statements/debuggerStatement/DebuggerStatement_All.txt +5 -0
  493. formate_js-0.1.0/tests/specs/statements/debuggerStatement/DebuggerStatement_SemiColons_Asi.txt +6 -0
  494. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_All.txt +70 -0
  495. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_BracePosition_Maintain.txt +18 -0
  496. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_BracePosition_NextLine.txt +9 -0
  497. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_BracePosition_SameLine.txt +9 -0
  498. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_NextControlFlowPosition_Maintain.txt +22 -0
  499. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_NextControlFlowPosition_NextLine.txt +39 -0
  500. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_NextControlFlowPosition_SameLine.txt +11 -0
  501. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_PreferHanging_True.txt +34 -0
  502. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_SpaceAfterWhileKeyword_False.txt +8 -0
  503. formate_js-0.1.0/tests/specs/statements/doWhileStatement/DoWhileStatement_SpaceAround_True.txt +12 -0
  504. formate_js-0.1.0/tests/specs/statements/emptyStatement/EmptyStatement_All.txt +62 -0
  505. formate_js-0.1.0/tests/specs/statements/exportAssignment/ExportAssignment_All.txt +5 -0
  506. formate_js-0.1.0/tests/specs/statements/exportAssignment/ExportAssignment_SemiColons_Asi.txt +6 -0
  507. formate_js-0.1.0/tests/specs/statements/expressionStatement/ExpressionStatement_SemiColonInsertion.txt +52 -0
  508. formate_js-0.1.0/tests/specs/statements/expressionStatement/ExpressionStatement_SemiColons_Asi.txt +6 -0
  509. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_All.txt +89 -0
  510. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_BracePosition_Maintain.txt +38 -0
  511. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_BracePosition_NextLine.txt +19 -0
  512. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_BracePosition_SameLine.txt +19 -0
  513. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_PreferHanging_True.txt +26 -0
  514. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_SingleBodyPosition_Maintain.txt +15 -0
  515. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_SingleBodyPosition_NextLine.txt +17 -0
  516. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_SingleBodyPosition_SameLine.txt +23 -0
  517. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_SpaceAfterForKeyword_False.txt +12 -0
  518. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_SpaceAround_True.txt +10 -0
  519. formate_js-0.1.0/tests/specs/statements/forInStatement/ForInStatement_UseBraces_PreferNone.txt +20 -0
  520. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_All.txt +97 -0
  521. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_BracePosition_Maintain.txt +38 -0
  522. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_BracePosition_NextLine.txt +19 -0
  523. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_BracePosition_SameLine.txt +19 -0
  524. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_PreferHanging_True.txt +26 -0
  525. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_SingleBodyPosition_Maintain.txt +15 -0
  526. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_SingleBodyPosition_NextLine.txt +17 -0
  527. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_SingleBodyPosition_SameLine.txt +23 -0
  528. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_SpaceAfterForKeyword_False.txt +12 -0
  529. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_SpaceAround_True.txt +10 -0
  530. formate_js-0.1.0/tests/specs/statements/forOfStatement/ForOfStatement_UseBraces_PreferNone.txt +20 -0
  531. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_All.txt +156 -0
  532. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_BracePosition_Maintain.txt +38 -0
  533. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_BracePosition_NextLine.txt +19 -0
  534. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_BracePosition_SameLine.txt +19 -0
  535. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_PreferHanging_True.txt +40 -0
  536. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_PreferSingleLine_True.txt +16 -0
  537. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SemiColons_Asi.txt +12 -0
  538. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SingleBodyPosition_Maintain.txt +15 -0
  539. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SingleBodyPosition_NextLine.txt +17 -0
  540. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SingleBodyPosition_SameLine.txt +23 -0
  541. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SpaceAfterForKeyword_False.txt +12 -0
  542. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SpaceAfterSemiColons_False.txt +20 -0
  543. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_SpaceAround_True.txt +8 -0
  544. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_UseBraces_Always.txt +15 -0
  545. formate_js-0.1.0/tests/specs/statements/forStatement/ForStatement_UseBraces_PreferNone.txt +20 -0
  546. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_All.txt +42 -0
  547. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_BracePosition_Maintain.txt +104 -0
  548. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_BracePosition_NextLine.txt +35 -0
  549. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_BracePosition_SameLine.txt +35 -0
  550. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_Comments.txt +22 -0
  551. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_HeaderComment.txt +86 -0
  552. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_NextControlFlowPosition_Maintain.txt +56 -0
  553. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_NextControlFlowPosition_NextLine.txt +35 -0
  554. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_NextControlFlowPosition_SameLine.txt +14 -0
  555. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_PreferHanging_True.txt +35 -0
  556. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_SingleBodyPosition_Maintain.txt +22 -0
  557. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_SingleBodyPosition_NextLine.txt +25 -0
  558. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_SingleBodyPosition_SameLine.txt +36 -0
  559. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_SpaceAfterIfKeyword_False.txt +12 -0
  560. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_SpaceAround_True.txt +8 -0
  561. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_UseBraces_Always.txt +32 -0
  562. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_UseBraces_Maintain.txt +19 -0
  563. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_UseBraces_PreferNone_Else.txt +129 -0
  564. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_UseBraces_PreferNone_NoElse.txt +95 -0
  565. formate_js-0.1.0/tests/specs/statements/ifStatement/IfStatement_UseBraces_WhenNotSingleLine.txt +66 -0
  566. formate_js-0.1.0/tests/specs/statements/labeledStatement/LabeledStatement_All.txt +81 -0
  567. formate_js-0.1.0/tests/specs/statements/returnStatement/ReturnStatement_All.txt +19 -0
  568. formate_js-0.1.0/tests/specs/statements/returnStatement/ReturnStatement_SemiColons_Asi.txt +20 -0
  569. formate_js-0.1.0/tests/specs/statements/sheBang/SheBang_All.txt +82 -0
  570. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_All.txt +51 -0
  571. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_BracePosition_Maintain.txt +38 -0
  572. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_BracePosition_NextLine.txt +20 -0
  573. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_BracePosition_SameLine.txt +18 -0
  574. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_PreferHanging_True.txt +29 -0
  575. formate_js-0.1.0/tests/specs/statements/switchStatement/SwitchStatement_SpaceAround_True.txt +8 -0
  576. formate_js-0.1.0/tests/specs/statements/switchStatement/switchCase/SwitchCase_All.txt +136 -0
  577. formate_js-0.1.0/tests/specs/statements/switchStatement/switchCase/SwitchCase_BracePosition_Maintain.txt +22 -0
  578. formate_js-0.1.0/tests/specs/statements/switchStatement/switchCase/SwitchCase_BracePosition_NextLine.txt +23 -0
  579. formate_js-0.1.0/tests/specs/statements/switchStatement/switchCase/SwitchCase_BracePosition_SameLine.txt +21 -0
  580. formate_js-0.1.0/tests/specs/statements/throwStatement/ThrowStatement_All.txt +5 -0
  581. formate_js-0.1.0/tests/specs/statements/throwStatement/ThrowStatement_SemiColons_Asi.txt +6 -0
  582. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_All.txt +73 -0
  583. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_BracePosition_Maintain.txt +48 -0
  584. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_BracePosition_NextLine.txt +23 -0
  585. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_BracePosition_SameLine.txt +25 -0
  586. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_NextControlFlowPosition_Maintain.txt +56 -0
  587. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_NextControlFlowPosition_NextLine.txt +17 -0
  588. formate_js-0.1.0/tests/specs/statements/tryStatement/TryStatement_NextControlFlowPosition_SameLine.txt +17 -0
  589. formate_js-0.1.0/tests/specs/statements/variableStatement/VariableStatement_All.txt +88 -0
  590. formate_js-0.1.0/tests/specs/statements/variableStatement/VariableStatement_PreferHanging_True.txt +32 -0
  591. formate_js-0.1.0/tests/specs/statements/variableStatement/VariableStatement_PreferSingleLine_True.txt +24 -0
  592. formate_js-0.1.0/tests/specs/statements/variableStatement/VariableStatement_SemiColons_Asi.txt +6 -0
  593. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_All.txt +140 -0
  594. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_BracePosition_Maintain.txt +38 -0
  595. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_BracePosition_NextLine.txt +20 -0
  596. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_BracePosition_SameLine.txt +18 -0
  597. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_PreferHanging_True.txt +37 -0
  598. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_SingleBodyPosition_Maintain.txt +15 -0
  599. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_SingleBodyPosition_NextLine.txt +17 -0
  600. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_SingleBodyPosition_SameLine.txt +23 -0
  601. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_SpaceAfterWhileKeyword_False.txt +8 -0
  602. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_SpaceAround_True.txt +8 -0
  603. formate_js-0.1.0/tests/specs/statements/whileStatement/WhileStatement_UseBraces_PreferNone.txt +20 -0
  604. formate_js-0.1.0/tests/specs/types/ArrayType/ArrayType_All.txt +14 -0
  605. formate_js-0.1.0/tests/specs/types/ConditionalType/ConditionalType_All.txt +121 -0
  606. formate_js-0.1.0/tests/specs/types/ConditionalType/ConditionalType_OperatorPosition_Maintain.txt +15 -0
  607. formate_js-0.1.0/tests/specs/types/ConditionalType/ConditionalType_OperatorPosition_NextLine.txt +15 -0
  608. formate_js-0.1.0/tests/specs/types/ConditionalType/ConditionalType_OperatorPosition_SameLine.txt +15 -0
  609. formate_js-0.1.0/tests/specs/types/ConditionalType/ConditionalType_PreferSingleLine_True.txt +17 -0
  610. formate_js-0.1.0/tests/specs/types/ConstructorType/ConstructorType_All.txt +32 -0
  611. formate_js-0.1.0/tests/specs/types/ConstructorType/ConstructorType_PreferHanging_True.txt +35 -0
  612. formate_js-0.1.0/tests/specs/types/ConstructorType/ConstructorType_SpaceAfterNewKeyword_True.txt +8 -0
  613. formate_js-0.1.0/tests/specs/types/FunctionType/FunctionType_All.txt +32 -0
  614. formate_js-0.1.0/tests/specs/types/FunctionType/FunctionType_PreferHanging_True.txt +31 -0
  615. formate_js-0.1.0/tests/specs/types/ImportType/ImportType_All.txt +28 -0
  616. formate_js-0.1.0/tests/specs/types/IndexedAccessType/IndexedAccessType_All.txt +5 -0
  617. formate_js-0.1.0/tests/specs/types/InferType/InferType_All.txt +5 -0
  618. formate_js-0.1.0/tests/specs/types/IntersectionType/IntersectionType_All.txt +81 -0
  619. formate_js-0.1.0/tests/specs/types/IntersectionType/IntersectionType_PreferHanging_True.txt +38 -0
  620. formate_js-0.1.0/tests/specs/types/IntersectionType/IntersectionType_PreferSingleLine_True.txt +22 -0
  621. formate_js-0.1.0/tests/specs/types/LitType/LitType_All.txt +15 -0
  622. formate_js-0.1.0/tests/specs/types/MappedType/MappedType_All.txt +88 -0
  623. formate_js-0.1.0/tests/specs/types/MappedType/MappedType_PreferSingleLine_True.txt +16 -0
  624. formate_js-0.1.0/tests/specs/types/MappedType/MappedType_SemiColons_Always.txt +16 -0
  625. formate_js-0.1.0/tests/specs/types/MappedType/MappedType_SemiColons_Asi.txt +6 -0
  626. formate_js-0.1.0/tests/specs/types/OptionalType/OptionalType_All.txt +5 -0
  627. formate_js-0.1.0/tests/specs/types/ParenthesizedType/ParenthesizedType_All.txt +87 -0
  628. formate_js-0.1.0/tests/specs/types/QualifiedName/QualifiedName_All.txt +5 -0
  629. formate_js-0.1.0/tests/specs/types/RestType/RestType_All.txt +5 -0
  630. formate_js-0.1.0/tests/specs/types/ThisType/ThisType_All.txt +11 -0
  631. formate_js-0.1.0/tests/specs/types/TplLitType/TplLitType_All.txt +5 -0
  632. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_All.txt +60 -0
  633. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_PreferHanging_Always.txt +32 -0
  634. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_PreferSingleLine_True.txt +33 -0
  635. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_SpaceAround_True.txt +12 -0
  636. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_TrailingCommas_Always.txt +18 -0
  637. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_TrailingCommas_Never.txt +18 -0
  638. formate_js-0.1.0/tests/specs/types/TupleType/TupleType_TrailingCommas_OnlyMultiLine.txt +18 -0
  639. formate_js-0.1.0/tests/specs/types/TupleTypeElement/TupleTypeElement_All.txt +11 -0
  640. formate_js-0.1.0/tests/specs/types/TypeAnnotation/TypeAnnotation_All.txt +47 -0
  641. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_All.txt +67 -0
  642. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_PreferHanging_True.txt +46 -0
  643. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_PreferSingleLine_True.txt +34 -0
  644. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SemiColons_Always.txt +18 -0
  645. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SemiColons_Asi.txt +30 -0
  646. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SeparatorKind_Comma.txt +16 -0
  647. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SeparatorKind_CommaSingle_SemiColonMulti.txt +38 -0
  648. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SeparatorKind_SemiColonSingle_CommaMulti.txt +38 -0
  649. formate_js-0.1.0/tests/specs/types/TypeLiteral/TypeLiteral_SpaceSurroundingProperties_False.txt +6 -0
  650. formate_js-0.1.0/tests/specs/types/TypeOperator/TypeOperator_All.txt +5 -0
  651. formate_js-0.1.0/tests/specs/types/TypeParameter/TypeParameter_All.txt +39 -0
  652. formate_js-0.1.0/tests/specs/types/TypeParameter/TypeParameter_PreferHanging_Always.txt +28 -0
  653. formate_js-0.1.0/tests/specs/types/TypeParameter/TypeParameter_PreferSingleLine_True.txt +11 -0
  654. formate_js-0.1.0/tests/specs/types/TypePredicate/TypePredicate_All.txt +54 -0
  655. formate_js-0.1.0/tests/specs/types/TypeQuery/TypeQuery_All.txt +5 -0
  656. formate_js-0.1.0/tests/specs/types/TypeReference/TypeReference_All.txt +20 -0
  657. formate_js-0.1.0/tests/specs/types/UnionType/UnionType_All.txt +186 -0
  658. formate_js-0.1.0/tests/specs/types/UnionType/UnionType_PreferHanging_True.txt +37 -0
  659. formate_js-0.1.0/tests/specs/types/UnionType/UnionType_PreferSingleLine_True.txt +22 -0
  660. formate_js-0.1.0/tests/test_enums.py +14 -0
  661. formate_js-0.1.0/tests/test_formatting.py +198 -0
  662. formate_js-0.1.0/tests/test_global_config.py +82 -0
  663. formate_js-0.1.0/tox.ini +206 -0
@@ -0,0 +1,28 @@
1
+ [bumpversion]
2
+ current_version = 0.1.0
3
+ commit = True
4
+ tag = True
5
+
6
+ [bumpversion:file:README.rst]
7
+
8
+ [bumpversion:file:python/formate_js/__init__.py]
9
+ search = : str = "{current_version}"
10
+ replace = : str = "{new_version}"
11
+
12
+ [bumpversion:file:pyproject.toml]
13
+ search = version = "{current_version}"
14
+ replace = version = "{new_version}"
15
+
16
+ [bumpversion:file:Cargo.toml]
17
+ search = version = "{current_version}"
18
+ replace = version = "{new_version}"
19
+
20
+ [bumpversion:file:Cargo.lock]
21
+ search =
22
+ name = "formate-js"
23
+ version = "{current_version}"
24
+ replace =
25
+ name = "formate-js"
26
+ version = "{new_version}"
27
+
28
+ [bumpversion:file:repo_helper.yml]
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: Bug report
3
+ about: Create a report to help us improve
4
+ labels: bug
5
+ assignees: domdfcoding
6
+
7
+ ---
8
+
9
+ <!-- Have you searched for similar issues? Before submitting this issue, please check the open issues and add a note before logging a new issue.
10
+
11
+ PLEASE USE THE TEMPLATE BELOW TO PROVIDE INFORMATION ABOUT THE ISSUE.
12
+ THE ISSUE WILL BE CLOSED IF INSUFFICIENT INFORMATION IS PROVIDED.
13
+ -->
14
+
15
+ ## Description
16
+ <!--Provide a brief description of the issue-->
17
+
18
+
19
+ ## Steps to Reproduce
20
+ <!--Please add a series of steps to reproduce the issue.
21
+
22
+ If possible, please include a small, self-contained reproduction.
23
+ -->
24
+
25
+ 1.
26
+ 2.
27
+ 3.
28
+
29
+ ## Actual result:
30
+ <!--Please add screenshots if needed and include the Python traceback if present-->
31
+
32
+
33
+ ## Expected result:
34
+
35
+
36
+ ## Reproduces how often:
37
+ <!--[Easily reproduced/Intermittent issue/No steps to reproduce]-->
38
+
39
+
40
+ ## Version
41
+
42
+ * Operating System:
43
+ * Python:
44
+ * formate-js:
45
+
46
+ ## Installation source
47
+ <!-- e.g. GitHub repository, GitHub Releases, PyPI/pip, Anaconda/conda -->
48
+
49
+
50
+ ## Other Additional Information:
51
+ <!--Any additional information, related issues, extra QA steps, configuration or data that might be necessary to reproduce the issue-->
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: Feature request
3
+ about: Suggest an idea for this project
4
+ labels: "enhancement"
5
+ assignees: domdfcoding
6
+
7
+ ---
8
+
9
+ <!-- Have you searched for similar issues? Someone may already be working on the feature you are suggesting. Before submitting this issue, please check the open issues and add a note before logging a new issue.
10
+ -->
11
+
12
+
13
+ ## Description
14
+ <!--Provide a clear and concise description of what the problem is and the improvement you are suggesting-->
15
+
16
+ <!--Please add screenshots if needed-->
17
+
18
+
19
+ ## Version
20
+
21
+ * Operating System:
22
+ * Python:
23
+ * formate-js:
24
+
25
+
26
+ ## Other Additional Information:
27
+ <!--Any additional information, related issues, etc.-->
@@ -0,0 +1,9 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ addReviewers: true
4
+ addAssignees: true
5
+ reviewers:
6
+ - domdfcoding
7
+ numberOfReviewers: 0
8
+
9
+ # more settings at https://github.com/marketplace/actions/auto-assign-action
@@ -0,0 +1,11 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ version: 2
4
+ updates:
5
+ - package-ecosystem: pip
6
+ directory: /
7
+ schedule:
8
+ interval: weekly
9
+ open-pull-requests-limit: 0
10
+ reviewers:
11
+ - domdfcoding
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env python
2
+
3
+ # stdlib
4
+ import os
5
+ import sys
6
+
7
+ # 3rd party
8
+ from github3 import GitHub
9
+ from github3.repos import Repository
10
+ from packaging.version import InvalidVersion, Version
11
+
12
+ latest_tag = os.environ["GITHUB_REF_NAME"]
13
+
14
+ try:
15
+ current_version = Version(latest_tag)
16
+ except InvalidVersion:
17
+ sys.exit()
18
+
19
+ gh: GitHub = GitHub(token=os.environ["GITHUB_TOKEN"])
20
+ repo: Repository = gh.repository(*os.environ["GITHUB_REPOSITORY"].split('/', 1))
21
+
22
+ for milestone in repo.milestones(state="open"):
23
+ try:
24
+ milestone_version = Version(milestone.title)
25
+ except InvalidVersion:
26
+ continue
27
+ if milestone_version == current_version:
28
+ sys.exit(not milestone.update(state="closed"))
@@ -0,0 +1,63 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ # Configuration for probot-stale - https://github.com/probot/stale
3
+ ---
4
+
5
+ # Number of days of inactivity before an Issue or Pull Request becomes stale
6
+ daysUntilStale: 180
7
+
8
+ # Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
9
+ # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
10
+ daysUntilClose: false
11
+
12
+ # Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
13
+ onlyLabels: []
14
+
15
+ # Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
16
+ exemptLabels:
17
+ - pinned
18
+ - security
19
+ - "[Status] Maybe Later"
20
+
21
+ # Set to true to ignore issues in a project (defaults to false)
22
+ exemptProjects: false
23
+
24
+ # Set to true to ignore issues in a milestone (defaults to false)
25
+ exemptMilestones: false
26
+
27
+ # Set to true to ignore issues with an assignee (defaults to false)
28
+ exemptAssignees: false
29
+
30
+ # Label to use when marking as stale
31
+ staleLabel: stale
32
+
33
+ # Comment to post when marking as stale. Set to `false` to disable
34
+ markComment: false
35
+ # This issue has been automatically marked as stale because it has not had
36
+ # recent activity. It will be closed if no further activity occurs. Thank you
37
+ # for your contributions.
38
+
39
+ # Comment to post when removing the stale label.
40
+ # unmarkComment: >
41
+ # Your comment here.
42
+
43
+ # Comment to post when closing a stale Issue or Pull Request.
44
+ # closeComment: >
45
+ # Your comment here.
46
+
47
+ # Limit the number of actions per hour, from 1-30. Default is 30
48
+ limitPerRun: 30
49
+
50
+ # Limit to only `issues` or `pulls`
51
+ # only: issues
52
+
53
+ # Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
54
+ # pulls:
55
+ # daysUntilStale: 30
56
+ # markComment: >
57
+ # This pull request has been automatically marked as stale because it has not had
58
+ # recent activity. It will be closed if no further activity occurs. Thank you
59
+ # for your contributions.
60
+
61
+ # issues:
62
+ # exemptLabels:
63
+ # - confirmed
@@ -0,0 +1,204 @@
1
+ # This file is autogenerated by maturin v1.10.2
2
+ # To update, run
3
+ #
4
+ # maturin generate-ci github
5
+ #
6
+ name: CI
7
+
8
+ on:
9
+ push:
10
+ branches:
11
+ - main
12
+ - master
13
+ tags:
14
+ - '*'
15
+ pull_request:
16
+ workflow_dispatch:
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ jobs:
22
+ linux:
23
+ runs-on: ${{ matrix.platform.runner }}
24
+ strategy:
25
+ matrix:
26
+ platform:
27
+ - runner: ubuntu-22.04
28
+ target: x86_64
29
+ - runner: ubuntu-22.04
30
+ target: x86
31
+ - runner: ubuntu-22.04
32
+ target: aarch64
33
+ - runner: ubuntu-22.04
34
+ target: armv7
35
+ - runner: ubuntu-22.04
36
+ target: ppc64le
37
+ steps:
38
+ - uses: actions/checkout@v4
39
+ - uses: actions/setup-python@v5
40
+ with:
41
+ python-version: 3.x
42
+ - name: Build wheels
43
+ uses: PyO3/maturin-action@v1
44
+ with:
45
+ target: ${{ matrix.platform.target }}
46
+ args: --release --out dist --find-interpreter
47
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
48
+ manylinux: auto
49
+ - name: Upload wheels
50
+ uses: actions/upload-artifact@v4
51
+ with:
52
+ name: wheels-linux-${{ matrix.platform.target }}
53
+ path: dist
54
+
55
+ musllinux:
56
+ runs-on: ${{ matrix.platform.runner }}
57
+ strategy:
58
+ matrix:
59
+ platform:
60
+ - runner: ubuntu-22.04
61
+ target: x86_64
62
+ - runner: ubuntu-22.04
63
+ target: x86
64
+ - runner: ubuntu-22.04
65
+ target: aarch64
66
+ - runner: ubuntu-22.04
67
+ target: armv7
68
+ steps:
69
+ - uses: actions/checkout@v4
70
+ - uses: actions/setup-python@v5
71
+ with:
72
+ python-version: 3.x
73
+ - name: Build wheels
74
+ uses: PyO3/maturin-action@v1
75
+ with:
76
+ target: ${{ matrix.platform.target }}
77
+ args: --release --out dist --find-interpreter
78
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
79
+ manylinux: musllinux_1_2
80
+ - name: Upload wheels
81
+ uses: actions/upload-artifact@v4
82
+ with:
83
+ name: wheels-musllinux-${{ matrix.platform.target }}
84
+ path: dist
85
+
86
+ windows:
87
+ runs-on: ${{ matrix.platform.runner }}
88
+ strategy:
89
+ matrix:
90
+ platform:
91
+ - runner: windows-latest
92
+ target: x64
93
+ - runner: windows-latest
94
+ target: x86
95
+ steps:
96
+ - uses: actions/checkout@v4
97
+ - uses: actions/setup-python@v5
98
+ with:
99
+ python-version: 3.x
100
+ architecture: ${{ matrix.platform.target }}
101
+ - name: Build wheels
102
+ uses: PyO3/maturin-action@v1
103
+ with:
104
+ target: ${{ matrix.platform.target }}
105
+ args: --release --out dist --find-interpreter
106
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
107
+ - name: Upload wheels
108
+ uses: actions/upload-artifact@v4
109
+ with:
110
+ name: wheels-windows-${{ matrix.platform.target }}
111
+ path: dist
112
+
113
+ macos:
114
+ runs-on: ${{ matrix.platform.runner }}
115
+ strategy:
116
+ matrix:
117
+ platform:
118
+ - runner: macos-15-intel
119
+ target: x86_64
120
+ - runner: macos-14
121
+ target: aarch64
122
+ steps:
123
+ - uses: actions/checkout@v4
124
+ - uses: actions/setup-python@v5
125
+ with:
126
+ python-version: 3.x
127
+ - name: Build wheels
128
+ uses: PyO3/maturin-action@v1
129
+ with:
130
+ target: ${{ matrix.platform.target }}
131
+ args: --release --out dist --find-interpreter
132
+ sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
133
+ - name: Upload wheels
134
+ uses: actions/upload-artifact@v4
135
+ with:
136
+ name: wheels-macos-${{ matrix.platform.target }}
137
+ path: dist
138
+
139
+ sdist:
140
+ runs-on: ubuntu-latest
141
+ steps:
142
+ - uses: actions/checkout@v4
143
+ - name: Build sdist
144
+ uses: PyO3/maturin-action@v1
145
+ with:
146
+ command: sdist
147
+ args: --out dist
148
+ - name: Upload sdist
149
+ uses: actions/upload-artifact@v4
150
+ with:
151
+ name: wheels-sdist
152
+ path: dist
153
+
154
+ release:
155
+ name: Release
156
+ runs-on: ubuntu-latest
157
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
158
+ needs: [linux, musllinux, windows, macos, sdist]
159
+ permissions:
160
+ # Use to sign the release artifacts
161
+ id-token: write
162
+ # Used to upload release artifacts
163
+ contents: write
164
+ # Used to generate artifact attestation
165
+ attestations: write
166
+ steps:
167
+ - name: Checkout 🛎️
168
+ uses: "actions/checkout@v4"
169
+ if: startsWith(github.ref, 'refs/tags/')
170
+
171
+ - name: Setup Python 🐍
172
+ uses: "actions/setup-python@v5"
173
+ if: startsWith(github.ref, 'refs/tags/')
174
+ with:
175
+ python-version: 3.8
176
+
177
+ - name: Install dependencies 🔧
178
+ if: startsWith(github.ref, 'refs/tags/')
179
+ run: |
180
+ python -m pip install --upgrade pip setuptools wheel
181
+ python -m pip install --upgrade tox~=3.0
182
+
183
+ - uses: actions/download-artifact@v4
184
+ - name: Generate artifact attestation
185
+ uses: actions/attest-build-provenance@v2
186
+ with:
187
+ subject-path: 'wheels-*/*'
188
+
189
+ - name: Upload distribution to PyPI 🚀
190
+ if: startsWith(github.ref, 'refs/tags/')
191
+ uses: PyO3/maturin-action@v1
192
+ env:
193
+ MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
194
+ with:
195
+ command: upload
196
+ args: --non-interactive --skip-existing wheels-*/*
197
+
198
+ - name: Close milestone 🚪
199
+ if: startsWith(github.ref, 'refs/tags/')
200
+ run: |
201
+ python -m pip install --upgrade github3.py packaging
202
+ python .github/milestones.py
203
+ env:
204
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,51 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ name: Flake8
4
+
5
+ on:
6
+ push:
7
+ branches-ignore:
8
+ - 'repo-helper-update'
9
+ - 'pre-commit-ci-update-config'
10
+ - 'imgbot'
11
+ pull_request:
12
+
13
+ jobs:
14
+ Run:
15
+ name: "Flake8"
16
+ permissions:
17
+ contents: read
18
+ runs-on: "ubuntu-22.04"
19
+
20
+ steps:
21
+ - name: Checkout 🛎️
22
+ uses: "actions/checkout@v4"
23
+ with:
24
+ submodules: True
25
+
26
+ - name: Check for changed files
27
+ uses: dorny/paths-filter@v2
28
+ id: changes
29
+ with:
30
+ list-files: "json"
31
+ filters: |
32
+ code:
33
+ - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
34
+
35
+ - name: Setup Python 🐍
36
+ if: steps.changes.outputs.code == 'true'
37
+ uses: "actions/setup-python@v5"
38
+ with:
39
+ python-version: "3.9"
40
+
41
+ - name: Install dependencies 🔧
42
+ if: steps.changes.outputs.code == 'true'
43
+ run: |
44
+ python -VV
45
+ python -m site
46
+ python -m pip install --upgrade pip setuptools wheel
47
+ python -m pip install tox~=3.0
48
+
49
+ - name: "Run Flake8"
50
+ if: steps.changes.outputs.code == 'true'
51
+ run: "python -m tox -e lint -s false -- --format github"
@@ -0,0 +1,55 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ name: mypy
4
+
5
+ on:
6
+ push:
7
+ branches-ignore:
8
+ - 'repo-helper-update'
9
+ - 'pre-commit-ci-update-config'
10
+ - 'imgbot'
11
+ pull_request:
12
+
13
+ jobs:
14
+ Run:
15
+ permissions:
16
+ contents: read
17
+ name: "mypy / ${{ matrix.os }}"
18
+ runs-on: ${{ matrix.os }}
19
+
20
+ strategy:
21
+ matrix:
22
+ os: ['ubuntu-22.04', 'windows-2022']
23
+ fail-fast: false
24
+
25
+ steps:
26
+ - name: Checkout 🛎️
27
+ uses: "actions/checkout@v4"
28
+ with:
29
+ submodules: True
30
+
31
+ - name: Check for changed files
32
+ uses: dorny/paths-filter@v2
33
+ id: changes
34
+ with:
35
+ list-files: "json"
36
+ filters: |
37
+ code:
38
+ - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
39
+
40
+ - name: Setup Python 🐍
41
+ if: steps.changes.outputs.code == 'true'
42
+ uses: "actions/setup-python@v5"
43
+ with:
44
+ python-version: "3.9"
45
+
46
+ - name: Install dependencies 🔧
47
+ run: |
48
+ python -VV
49
+ python -m site
50
+ python -m pip install --upgrade pip setuptools wheel
51
+ python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
52
+
53
+ - name: "Run mypy"
54
+ if: steps.changes.outputs.code == 'true'
55
+ run: "python -m tox -e mypy -s false"
@@ -0,0 +1,20 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+
4
+ name: "GitHub Releases"
5
+ on:
6
+ schedule:
7
+ - cron: 0 12 * * *
8
+
9
+ jobs:
10
+ Run:
11
+ permissions:
12
+ contents: write
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: domdfcoding/octocheese@master
16
+ with:
17
+ pypi_name: "formate-js"
18
+ env:
19
+ GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
20
+ if: startsWith(github.ref, 'refs/tags/') != true
@@ -0,0 +1,69 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ name: Windows
4
+
5
+ on:
6
+ push:
7
+ branches-ignore:
8
+ - 'repo-helper-update'
9
+ - 'pre-commit-ci-update-config'
10
+ - 'imgbot'
11
+
12
+ pull_request:
13
+
14
+ permissions:
15
+ actions: write
16
+ issues: write
17
+ contents: read
18
+
19
+ jobs:
20
+ tests:
21
+ name: "windows-2022 / Python ${{ matrix.config.python-version }}"
22
+ runs-on: "windows-2022"
23
+ continue-on-error: ${{ matrix.config.experimental }}
24
+ env:
25
+ USING_COVERAGE: '3.8,3.9,3.10,3.11,3.12,3.13'
26
+
27
+ strategy:
28
+ fail-fast: False
29
+ matrix:
30
+ config:
31
+ - {python-version: "3.8", testenvs: "py38,build", experimental: False}
32
+ - {python-version: "3.9", testenvs: "py39,build", experimental: False}
33
+ - {python-version: "3.10", testenvs: "py310,build", experimental: False}
34
+ - {python-version: "3.11", testenvs: "py311,build", experimental: False}
35
+ - {python-version: "3.12", testenvs: "py312,build", experimental: False}
36
+ - {python-version: "3.13", testenvs: "py313,build", experimental: False}
37
+
38
+ steps:
39
+ - name: Checkout 🛎️
40
+ uses: "actions/checkout@v4"
41
+
42
+ - name: Check for changed files
43
+ if: startsWith(github.ref, 'refs/tags/') != true
44
+ uses: dorny/paths-filter@v2
45
+ id: changes
46
+ with:
47
+ list-files: "json"
48
+ filters: |
49
+ code:
50
+ - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
51
+
52
+ - name: Setup Python 🐍
53
+ id: setup-python
54
+ if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
55
+ uses: "actions/setup-python@v5"
56
+ with:
57
+ python-version: "${{ matrix.config.python-version }}"
58
+
59
+ - name: Install dependencies 🔧
60
+ if: steps.setup-python.outcome == 'success'
61
+ run: |
62
+ python -VV
63
+ python -m site
64
+ python -m pip install --upgrade pip setuptools wheel
65
+ python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
66
+
67
+ - name: "Run Tests for Python ${{ matrix.config.python-version }}"
68
+ if: steps.setup-python.outcome == 'success'
69
+ run: python -m tox -e "${{ matrix.config.testenvs }}" -s false
@@ -0,0 +1,70 @@
1
+ # This file is managed by 'repo_helper'. Don't edit it directly.
2
+ ---
3
+ name: Linux
4
+
5
+ on:
6
+ push:
7
+ branches-ignore:
8
+ - 'repo-helper-update'
9
+ - 'pre-commit-ci-update-config'
10
+ - 'imgbot'
11
+ tags:
12
+ - '*'
13
+ pull_request:
14
+
15
+ permissions:
16
+ actions: write
17
+ issues: write
18
+ contents: read
19
+
20
+ jobs:
21
+ tests:
22
+ name: "ubuntu-22.04 / Python ${{ matrix.config.python-version }}"
23
+ runs-on: "ubuntu-22.04"
24
+ continue-on-error: ${{ matrix.config.experimental }}
25
+ env:
26
+ USING_COVERAGE: '3.8,3.9,3.10,3.11,3.12,3.13'
27
+
28
+ strategy:
29
+ fail-fast: False
30
+ matrix:
31
+ config:
32
+ - {python-version: "3.8", testenvs: "py38,build", experimental: False}
33
+ - {python-version: "3.9", testenvs: "py39,build", experimental: False}
34
+ - {python-version: "3.10", testenvs: "py310,build", experimental: False}
35
+ - {python-version: "3.11", testenvs: "py311,build", experimental: False}
36
+ - {python-version: "3.12", testenvs: "py312,build", experimental: False}
37
+ - {python-version: "3.13", testenvs: "py313,build", experimental: False}
38
+
39
+ steps:
40
+ - name: Checkout 🛎️
41
+ uses: "actions/checkout@v4"
42
+
43
+ - name: Check for changed files
44
+ if: startsWith(github.ref, 'refs/tags/') != true
45
+ uses: dorny/paths-filter@v2
46
+ id: changes
47
+ with:
48
+ list-files: "json"
49
+ filters: |
50
+ code:
51
+ - '!(doc-source/**|CONTRIBUTING.rst|.imgbotconfig|.pre-commit-config.yaml|.pylintrc|.readthedocs.yml)'
52
+
53
+ - name: Setup Python 🐍
54
+ id: setup-python
55
+ if: ${{ steps.changes.outputs.code == 'true' || steps.changes.outcome == 'skipped' }}
56
+ uses: "actions/setup-python@v5"
57
+ with:
58
+ python-version: "${{ matrix.config.python-version }}"
59
+
60
+ - name: Install dependencies 🔧
61
+ if: steps.setup-python.outcome == 'success'
62
+ run: |
63
+ python -VV
64
+ python -m site
65
+ python -m pip install --upgrade pip setuptools wheel
66
+ python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
67
+
68
+ - name: "Run Tests for Python ${{ matrix.config.python-version }}"
69
+ if: steps.setup-python.outcome == 'success'
70
+ run: python -m tox -e "${{ matrix.config.testenvs }}" -s false