From 1bfe10bc20ae8488aaa0099703f0a3d85d4465cb Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Fri, 8 Dec 2023 08:46:34 -0800 Subject: [PATCH] move per-file ignored rules to the files themselves --- osmnx/_api.py | 1 + pyproject.toml | 8 -------- tests/test_osmnx.py | 1 + 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/osmnx/_api.py b/osmnx/_api.py index 89abdc8d9..d034a49a8 100644 --- a/osmnx/_api.py +++ b/osmnx/_api.py @@ -1,3 +1,4 @@ +# ruff: noqa: F401 """Expose most common parts of public API directly in package namespace.""" from .bearing import add_edge_bearings diff --git a/pyproject.toml b/pyproject.toml index 7bcfcd081..aca366715 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -112,11 +112,3 @@ max-line-length = 110 # line length + 10% since it isn't a hard upper bound [tool.ruff.lint.pydocstyle] convention = "numpy" - -[tool.ruff.per-file-ignores] -"./osmnx/_api.py" = ["F401"] # allow API imports to go unused -"./tests/test_osmnx.py" = [ - "E402", # allow imports not at the top of the file - "F841", # allow unused local variables - "PLR2004", # allow magic values in comparisons -] diff --git a/tests/test_osmnx.py b/tests/test_osmnx.py index e68d94768..7f71c2657 100755 --- a/tests/test_osmnx.py +++ b/tests/test_osmnx.py @@ -1,3 +1,4 @@ +# ruff: noqa: E402 F841 PLR2004 """Test suite for the package.""" # use agg backend so you don't need a display on CI