Skip to content

Commit

Permalink
updating ruff.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-rakowski committed Jun 29, 2024
1 parent d5de04f commit 150422e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ruff.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
required-version = ">=0.5.0"
target-version = "py39"
[lint]
# From Flake8 config
# select = [
# # "F402", # module level import not at top of file
# # "F404", # future import not at top of file
Expand All @@ -16,7 +17,9 @@ target-version = "py39"

ignore = [
"E501", # line-too-long
"F401", # unspecified import
"F401", # unused import

# exisiting errors in code base
# "E721", # do not compare types, use 'isinstance()'
# "F841", # local variable is assigned to but never used
# "E741", # ambiguous variable name
Expand All @@ -39,5 +42,10 @@ ignore = [
exclude = ["test/**/*.py"] # ignore test files

[lint.per-file-ignores]
"**/__init__.py" = ["F401", "F403", "E402"]
# Ignore specific lint errors for __init__.py files
"**/__init__.py" = [
"F401", # Unspecified import
"F403", # Unable to detect undefined names
"E402" # Module level import not at top of file
]
# "./test/**/*.py" = ["E501", "F401", "E402"] # line-too-long, unused import, import not at top of file

0 comments on commit 150422e

Please sign in to comment.