Skip to content

Commit

Permalink
editor config for precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Apr 6, 2024
1 parent 8b1428c commit 38478f5
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
18 changes: 17 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ exclude = [
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
]
Expand Down Expand Up @@ -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

0 comments on commit 38478f5

Please sign in to comment.