Skip to content

Commit

Permalink
fixing linting errors
Browse files Browse the repository at this point in the history
ialbert committed Apr 2, 2024
1 parent a978d25 commit 6953f3c
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -117,6 +117,10 @@ skip-string-normalization = true
[tool.ruff]
target-version = "py39"
line-length = 120
exclude = [
# This a vendored third-party library.
"src/genescape/bottle.py",
]
select = [
"A",
"ARG",
@@ -153,6 +157,9 @@ ignore = [
"S105", "S106", "S107",
# Ignore complexity
"C901", "PLR0911", "PLR0912", "PLR0913", "PLR0915",

# Pet peevees
"Q000", "C402", "F401", "E401", "T201",
]
unfixable = [
# Don't touch unused imports
2 changes: 1 addition & 1 deletion src/genescape/tree.py
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ def build_onto_graph(index):
terms = data[utils.IDX_OBO]

# Add all nodes to Graph
for name, node in terms.items():
for key, node in terms.items():
oid = node["id"]
name = node["name"]
text = textwrap.fill(name, width=20)
2 changes: 1 addition & 1 deletion src/genescape/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import logging, functools, time, functools
import logging, time, functools
import os, gzip, json, csv
import sys, pathlib
from logging import DEBUG, ERROR, INFO, WARNING

0 comments on commit 6953f3c

Please sign in to comment.