Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codepy/libraries.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def update_config(fname: str) -> None:

with open(fname) as cf_file:
file_contents = cf_file.read()
exec(compile(file_contents, fname, "exec"), filevars) # ruff:ignore[exec-builtin]
exec(compile(file_contents, fname, "exec"), filevars)

for key, value in filevars.items():
if key != "__builtins__":
Expand Down
2 changes: 2 additions & 0 deletions codepy/toolchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def add_library(self,
if ldir not in self.library_dirs:
self.library_dirs.append(ldir)

# ruff: ignore[unnecessary-dunder-call]
object.__setattr__(self, "libraries", list(libraries) + self.libraries)

@abstractmethod
Expand Down Expand Up @@ -210,6 +211,7 @@ def get_version(self) -> str:
return stdout

def enable_debugging(self) -> None:
# ruff: ignore[unnecessary-dunder-call]
object.__setattr__(
self, "cflags",
[f for f in self.cflags if not f.startswith("-O")] + ["-g"])
Expand Down
Loading