diff --git a/.clang-format b/.clang-format new file mode 100644 index 00000000..782d1575 --- /dev/null +++ b/.clang-format @@ -0,0 +1,116 @@ +--- +# This file is centrally managed in https://github.com//.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in +# the above-mentioned repo. + +# Generated from CLion C/C++ Code Style settings +BasedOnStyle: LLVM +AccessModifierOffset: -2 +AlignAfterOpenBracket: BlockIndent +AlignConsecutiveAssignments: None +AlignEscapedNewlines: DontAlign +AlignOperands: Align +AllowAllArgumentsOnNextLine: false +AllowAllConstructorInitializersOnNextLine: false +AllowAllParametersOfDeclarationOnNextLine: false +AllowShortBlocksOnASingleLine: Empty +AllowShortCaseLabelsOnASingleLine: false +AllowShortEnumsOnASingleLine: false +AllowShortFunctionsOnASingleLine: Empty +AllowShortIfStatementsOnASingleLine: Never +AllowShortLambdasOnASingleLine: None +AllowShortLoopsOnASingleLine: true +AlignTrailingComments: false +AlwaysBreakAfterDefinitionReturnType: None +AlwaysBreakAfterReturnType: None +AlwaysBreakBeforeMultilineStrings: true +AlwaysBreakTemplateDeclarations: MultiLine +BinPackArguments: false +BinPackParameters: false +BracedInitializerIndentWidth: 2 +BraceWrapping: + AfterCaseLabel: false + AfterClass: false + AfterControlStatement: Never + AfterEnum: false + AfterExternBlock: true + AfterFunction: false + AfterNamespace: false + AfterObjCDeclaration: false + AfterUnion: false + BeforeCatch: true + BeforeElse: true + IndentBraces: false + SplitEmptyFunction: false + SplitEmptyRecord: true +BreakArrays: true +BreakBeforeBinaryOperators: None +BreakBeforeBraces: Attach +BreakBeforeTernaryOperators: false +BreakConstructorInitializers: AfterColon +BreakInheritanceList: AfterColon +ColumnLimit: 0 +CompactNamespaces: false +ContinuationIndentWidth: 2 +Cpp11BracedListStyle: true +EmptyLineAfterAccessModifier: Never +EmptyLineBeforeAccessModifier: Always +ExperimentalAutoDetectBinPacking: true +FixNamespaceComments: true +IncludeBlocks: Regroup +IndentAccessModifiers: false +IndentCaseBlocks: true +IndentCaseLabels: true +IndentExternBlock: Indent +IndentGotoLabels: true +IndentPPDirectives: BeforeHash +IndentWidth: 2 +IndentWrappedFunctionNames: true +InsertBraces: true +InsertNewlineAtEOF: true +KeepEmptyLinesAtTheStartOfBlocks: false +MaxEmptyLinesToKeep: 1 +NamespaceIndentation: All +ObjCBinPackProtocolList: Never +ObjCSpaceAfterProperty: true +ObjCSpaceBeforeProtocolList: true +PackConstructorInitializers: Never +PenaltyBreakBeforeFirstCallParameter: 1 +PenaltyBreakComment: 1 +PenaltyBreakString: 1 +PenaltyBreakFirstLessLess: 0 +PenaltyExcessCharacter: 1000000 +PenaltyReturnTypeOnItsOwnLine: 100000000 +PointerAlignment: Right +ReferenceAlignment: Pointer +ReflowComments: true +RemoveBracesLLVM: false +RemoveSemicolon: false +SeparateDefinitionBlocks: Always +SortIncludes: CaseInsensitive +SortUsingDeclarations: Lexicographic +SpaceAfterCStyleCast: true +SpaceAfterLogicalNot: false +SpaceAfterTemplateKeyword: false +SpaceBeforeAssignmentOperators: true +SpaceBeforeCaseColon: false +SpaceBeforeCpp11BracedList: true +SpaceBeforeCtorInitializerColon: false +SpaceBeforeInheritanceColon: false +SpaceBeforeJsonColon: false +SpaceBeforeParens: ControlStatements +SpaceBeforeRangeBasedForLoopColon: true +SpaceBeforeSquareBrackets: false +SpaceInEmptyBlock: false +SpaceInEmptyParentheses: false +SpacesBeforeTrailingComments: 2 +SpacesInAngles: Never +SpacesInCStyleCastParentheses: false +SpacesInContainerLiterals: false +SpacesInLineCommentPrefix: + Maximum: 3 + Minimum: 1 +SpacesInParentheses: false +SpacesInSquareBrackets: false +TabWidth: 2 +UseTab: Never diff --git a/.flake8 b/.flake8 new file mode 100644 index 00000000..a8948ef1 --- /dev/null +++ b/.flake8 @@ -0,0 +1,7 @@ +[flake8] +filename = + *.py +max-line-length = 120 +extend-exclude = + .venv/ + venv/ diff --git a/.github/org-sync-state.json b/.github/org-sync-state.json new file mode 100644 index 00000000..3901ac16 --- /dev/null +++ b/.github/org-sync-state.json @@ -0,0 +1,51 @@ +{ + "version": 1, + "id": "org-sync", + "files": { + ".clang-format": { + "mode": "sync", + "sha": "782d1575c6671b069aaf7324ad76a17162e6e6e7", + "permissions": "100644" + }, + ".flake8": { + "mode": "sync", + "sha": "a8948ef1e66919174b432792faca9a97e3da6f23", + "permissions": "100644" + }, + ".github/dependabot.yml": { + "mode": "sync", + "sha": "0b364513353fb5e5ebc5ba4e7e76c987229b28c0", + "permissions": "100644" + }, + ".github/semantic.yml": { + "mode": "sync", + "sha": "92d97a741e8c6f2de6258df8bd25a4e32e274b51", + "permissions": "100644" + }, + ".github/workflows/_codeql.yml": { + "mode": "sync", + "sha": "5569a2ed7c0b3129613878e3e0550e1ef377d115", + "permissions": "100644" + }, + ".github/workflows/_common-lint.yml": { + "mode": "sync", + "sha": "276fca5110ca2748a5a6391769e93e647d0dbef7", + "permissions": "100644" + }, + ".github/workflows/_top-issues.yml": { + "mode": "sync", + "sha": "3072822c6a6832079de60fe8940953e008da165f", + "permissions": "100644" + }, + ".github/workflows/_update-docs.yml": { + "mode": "sync", + "sha": "22c2a5175dcb70b44a80d0df25795e9a119dafe9", + "permissions": "100644" + }, + "renovate.json": { + "mode": "sync", + "sha": "11ebb7e879d8a91d648d1b1b8c19395896331669", + "permissions": "100644" + } + } +} diff --git a/.github/workflows/_update-docs.yml b/.github/workflows/_update-docs.yml index 863f92d5..22c2a517 100644 --- a/.github/workflows/_update-docs.yml +++ b/.github/workflows/_update-docs.yml @@ -3,7 +3,7 @@ # Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in # the above-mentioned repo. -# To use, add the `rtd` repository label to identify repositories that should trigger this workflow. +# To use, select `docs` in the `workflow_profiles` repository custom property. # If the project slug is not the repository name, add a repository variable named `READTHEDOCS_SLUG` with the value of # the ReadTheDocs project slug.