Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Apr 23, 2024
1 parent f75f35a commit 4d6075b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ repos:
name: Run ruff
stages: [commit]
language: system
entry: ruff
entry: ruff check
types: [python]
6 changes: 3 additions & 3 deletions builder2ibek.support.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def _make_builder_object(self, name, builder_class):
# Classes with a leading underscore are assumed to be private / abstract
# builder never exposes them to xeb so we don't want them in the YAML
if builder_class.__name__.split(".")[-1].startswith("_"):
print "SKIPPING private class %s" % builder_class.__name__
print("SKIPPING private class %s" % builder_class.__name__)
return None, None

arg_info = ArgInfo(
Expand Down Expand Up @@ -360,8 +360,8 @@ def _extract_substitutions(self, arginfo):
# are brought in by instantiating their parent so do not need to
# appear in the support yaml
print(
"TODO:- No substitutions for %s " % template +
"- this should be included by the above template"
"TODO:- No substitutions for %s " % template
+ "- this should be included by the above template"
)

if len(databases) > 0:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ commands =

[tool.ruff]
src = ["src", "tests"]
ignore = [
lint.ignore = [
"C408", # Unnecessary collection call - e.g. list(...) instead of [...]
"E501", # Line too long, should be fixed by black.
]
Expand All @@ -122,7 +122,7 @@ select = [
"W", # pycodestyle warnings - https://beta.ruff.rs/docs/rules/#warning-w
"I001", # isort
]
[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"builder2ibek.support.py" = ["E402"]

[tool.setuptools.packages.find]
Expand Down

0 comments on commit 4d6075b

Please sign in to comment.