Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build #534

Merged
merged 2 commits into from
Mar 16, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public override void GenerateEnd() {
writer.WriteLine();
writer.WriteLine("import typing");
foreach (var cls in exportedClasses.Where(x => x.kind != DocClassKind.Enum))
writer.WriteLine($"from ._iced_x86_py import {cls.name}");
writer.WriteLine($"from ._iced_x86_py import {cls.name} # pylint: disable=import-self");
foreach (var cls in exportedClasses.Where(x => x.kind == DocClassKind.Enum))
writer.WriteLine($"from . import {cls.name}");
writer.WriteLine();
Expand Down
2 changes: 2 additions & 0 deletions src/csharp/Intel/Generator/Misc/Python/PyiGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ void WritePyi(List<PyClass> classes) {
var filename = genTypes.Dirs.GetPythonPyFilename("_iced_x86_py.pyi");
using (var writer = new FileWriter(TargetLanguage.Python, FileUtils.OpenWrite(filename))) {
writer.WriteFileHeader();
writer.WriteLine("# pylint: skip-file");
writer.WriteLine();
writer.WriteLine("from collections.abc import Iterator");
writer.WriteLine("from enum import IntEnum, IntFlag");
writer.WriteLine("from typing import Any, List, Optional, Union");
Expand Down
2 changes: 1 addition & 1 deletion src/csharp/Intel/Iced.UnitTests/Iced.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="coverlet.msbuild" Version="6.0.1" />
<PackageReference Include="coverlet.msbuild" Version="6.0.2" />
<!-- NOTE: when updating this thing, make sure it hasn't gotten slower (it's happened twice now!) -->
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/java/iced-x86/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.1.0</version>
<version>3.2.0</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
36 changes: 18 additions & 18 deletions src/rust/iced-x86-py/src/iced_x86/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@
"""

import typing
from ._iced_x86_py import BlockEncoder
from ._iced_x86_py import ConstantOffsets
from ._iced_x86_py import Decoder
from ._iced_x86_py import Encoder
from ._iced_x86_py import FastFormatter
from ._iced_x86_py import Formatter
from ._iced_x86_py import FpuStackIncrementInfo
from ._iced_x86_py import Instruction
from ._iced_x86_py import InstructionInfo
from ._iced_x86_py import InstructionInfoFactory
from ._iced_x86_py import MemoryOperand
from ._iced_x86_py import MemorySizeExt
from ._iced_x86_py import MemorySizeInfo
from ._iced_x86_py import OpCodeInfo
from ._iced_x86_py import RegisterExt
from ._iced_x86_py import RegisterInfo
from ._iced_x86_py import UsedMemory
from ._iced_x86_py import UsedRegister
from ._iced_x86_py import BlockEncoder # pylint: disable=import-self
from ._iced_x86_py import ConstantOffsets # pylint: disable=import-self
from ._iced_x86_py import Decoder # pylint: disable=import-self
from ._iced_x86_py import Encoder # pylint: disable=import-self
from ._iced_x86_py import FastFormatter # pylint: disable=import-self
from ._iced_x86_py import Formatter # pylint: disable=import-self
from ._iced_x86_py import FpuStackIncrementInfo # pylint: disable=import-self
from ._iced_x86_py import Instruction # pylint: disable=import-self
from ._iced_x86_py import InstructionInfo # pylint: disable=import-self
from ._iced_x86_py import InstructionInfoFactory # pylint: disable=import-self
from ._iced_x86_py import MemoryOperand # pylint: disable=import-self
from ._iced_x86_py import MemorySizeExt # pylint: disable=import-self
from ._iced_x86_py import MemorySizeInfo # pylint: disable=import-self
from ._iced_x86_py import OpCodeInfo # pylint: disable=import-self
from ._iced_x86_py import RegisterExt # pylint: disable=import-self
from ._iced_x86_py import RegisterInfo # pylint: disable=import-self
from ._iced_x86_py import UsedMemory # pylint: disable=import-self
from ._iced_x86_py import UsedRegister # pylint: disable=import-self
from . import CC_a
from . import CC_ae
from . import CC_b
Expand Down
2 changes: 2 additions & 0 deletions src/rust/iced-x86-py/src/iced_x86/_iced_x86_py.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

# ⚠️This file was generated by GENERATOR!🦹‍♂️

# pylint: skip-file

from collections.abc import Iterator
from enum import IntEnum, IntFlag
from typing import Any, List, Optional, Union
Expand Down