mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-05 10:40:06 +01:00
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
python-version: 3.9
|
||||
|
||||
- name: Install Python dependencies
|
||||
run: python -m pip install black flake8
|
||||
@@ -25,6 +25,6 @@ jobs:
|
||||
github_token: ${{ secrets.github_token }}
|
||||
# Enable linters
|
||||
black: true
|
||||
black_args: "-l 99"
|
||||
black_args: "-l 99 --diff --color"
|
||||
flake8: true
|
||||
flake8_args: "--max-line-length=99 --extend-ignore=E203,E501"
|
||||
|
||||
@@ -615,7 +615,7 @@ def _get_full_instruction_name(instruction_form):
|
||||
|
||||
def __represent_none(self, data):
|
||||
"""Get YAML None representation."""
|
||||
return self.represent_scalar(u"tag:yaml.org,2002:null", u"~")
|
||||
return self.represent_scalar("tag:yaml.org,2002:null", "~")
|
||||
|
||||
|
||||
def _create_yaml_object():
|
||||
|
||||
@@ -540,7 +540,7 @@ class ParserAArch64(BaseParser):
|
||||
exponent = int(ieee_val["exponent"], 10)
|
||||
if ieee_val["e_sign"] == "-":
|
||||
exponent *= -1
|
||||
return float(ieee_val["mantissa"]) * (10 ** exponent)
|
||||
return float(ieee_val["mantissa"]) * (10**exponent)
|
||||
|
||||
def parse_register(self, register_string):
|
||||
raise NotImplementedError
|
||||
|
||||
@@ -811,4 +811,4 @@ class MachineModel(object):
|
||||
|
||||
def __represent_none(self, yaml_obj, data):
|
||||
"""YAML representation for `None`"""
|
||||
return yaml_obj.represent_scalar(u"tag:yaml.org,2002:null", u"~")
|
||||
return yaml_obj.represent_scalar("tag:yaml.org,2002:null", "~")
|
||||
|
||||
Reference in New Issue
Block a user