Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Oct 20, 2024
1 parent e0bf403 commit 5ba1d88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/diagnostic_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
def writefile(path, contents):
existing = None
if os.path.exists(path):
with open(path, 'r') as f:
with open(path, "r") as f:
existing = f.read()
if existing != contents:
with open(path, "w") as f:
Expand Down Expand Up @@ -285,7 +285,7 @@ def createallheader(path, diags):

def createdocs(outDir, inpath, slangBin, diags, groups):
inf = open(inpath)
curropt = [ None, None, None, None, None ]
curropt = [None, None, None, None, None]
inexample = False
exampleMap = {}

Expand Down
3 changes: 2 additions & 1 deletion source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ add_custom_command(
COMMAND
${Python_EXECUTABLE} ${SCRIPTS_DIR}/diagnostic_gen.py --outDir
${CMAKE_CURRENT_BINARY_DIR} --srcDir ${CMAKE_CURRENT_SOURCE_DIR} --incDir
${CMAKE_CURRENT_SOURCE_DIR}/../include/slang --diagnostics ${SCRIPTS_DIR}/diagnostics.txt
${CMAKE_CURRENT_SOURCE_DIR}/../include/slang --diagnostics
${SCRIPTS_DIR}/diagnostics.txt
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/slang/diagnostics/AllDiags.h
${CMAKE_CURRENT_BINARY_DIR}/slang/diagnostics/CompilationDiags.h
${CMAKE_CURRENT_BINARY_DIR}/slang/diagnostics/ConstEvalDiags.h
Expand Down

0 comments on commit 5ba1d88

Please sign in to comment.