diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..a3d1750 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,17 @@ +# See https://EditorConfig.org +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_size = 4 +indent_style = space +max_line_length = 88 +trim_trailing_whitespace = true + +[*.{md,yaml,yml}] +indent_size = 2 + +[Makefile] +indent_style = tab \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index d956fdc..38c5d97 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,6 @@ exclude = [ "buck-out", "build", "dist", - "node_modules", "site-packages", "venv", ] @@ -75,3 +74,20 @@ docstring-code-format = false # This only has an effect when the `docstring-code-format` setting is # enabled. docstring-code-line-length = "dynamic" + + +[tool.black] +target-version = ['py311'] + +[tool.isort] +profile = 'black' + +[tool.pyright] +# Talon classes don't use self so ignore the associated errors +reportSelfClsParameterName = false +reportGeneralTypeIssues = false +# Imgui functions return an object that can't be statically resolved +reportFunctionMemberAccess = false +# Talon can't be installed in CI so ignore source errors +reportMissingModuleSource = false +reportMissingImports = false