Compare commits
No commits in common. "42c69867b8fbe283dbe9614c86de5fcb125cb335" and "e26381a5782a1aef60178f325dcbbd28834ef4e9" have entirely different histories.
42c69867b8
...
e26381a578
@ -23,8 +23,8 @@ version = __version__ # legacy compatibility
|
|||||||
|
|
||||||
system = platform.system()
|
system = platform.system()
|
||||||
if system == 'Windows':
|
if system == 'Windows':
|
||||||
from .windows import Process as Process
|
from .windows import Process
|
||||||
elif system == 'Linux':
|
elif system == 'Linux':
|
||||||
from .linux import Process as Process
|
from .linux import Process
|
||||||
else:
|
else:
|
||||||
raise MemEditError('Only Linux and Windows are currently supported.')
|
raise MemEditError('Only Linux and Windows are currently supported.')
|
||||||
|
@ -86,7 +86,7 @@ def ctypes_equal(
|
|||||||
"""
|
"""
|
||||||
Check if the values stored inside two ctypes buffers are equal.
|
Check if the values stored inside two ctypes buffers are equal.
|
||||||
"""
|
"""
|
||||||
if not type(a) == type(b): # noqa: E721
|
if not type(a) == type(b):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if isinstance(a, ctypes.Array):
|
if isinstance(a, ctypes.Array):
|
||||||
|
@ -52,36 +52,3 @@ dependencies = [
|
|||||||
[tool.hatch.version]
|
[tool.hatch.version]
|
||||||
path = "mem_edit/__init__.py"
|
path = "mem_edit/__init__.py"
|
||||||
|
|
||||||
|
|
||||||
[tool.ruff]
|
|
||||||
exclude = [
|
|
||||||
".git",
|
|
||||||
"dist",
|
|
||||||
]
|
|
||||||
line-length = 145
|
|
||||||
indent-width = 4
|
|
||||||
lint.dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
|
|
||||||
lint.select = [
|
|
||||||
"NPY", "E", "F", "W", "B", "ANN", "UP", "SLOT", "SIM", "LOG",
|
|
||||||
"C4", "ISC", "PIE", "PT", "RET", "TCH", "PTH", "INT",
|
|
||||||
"ARG", "PL", "R", "TRY",
|
|
||||||
"G010", "G101", "G201", "G202",
|
|
||||||
"Q002", "Q003", "Q004",
|
|
||||||
]
|
|
||||||
lint.ignore = [
|
|
||||||
#"ANN001", # No annotation
|
|
||||||
"ANN002", # *args
|
|
||||||
"ANN003", # **kwargs
|
|
||||||
"ANN401", # Any
|
|
||||||
"ANN101", # self: Self
|
|
||||||
"SIM108", # single-line if / else assignment
|
|
||||||
"RET504", # x=y+z; return x
|
|
||||||
"PIE790", # unnecessary pass
|
|
||||||
"ISC003", # non-implicit string concatenation
|
|
||||||
"C408", # dict(x=y) instead of {'x': y}
|
|
||||||
"PLR09", # Too many xxx
|
|
||||||
"PLR2004", # magic number
|
|
||||||
"PLC0414", # import x as x
|
|
||||||
"TRY003", # Long exception message
|
|
||||||
]
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user