From a1a1da41dee126989bf94f135bea1b8368787587 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Thu, 22 May 2025 12:09:16 +0200
Subject: [PATCH] ruffed

---
 mapping_provider/__init__.py | 1 +
 mapping_provider/api/map.py  | 5 ++---
 pyproject.toml               | 6 +++---
 test/conftest.py             | 2 +-
 test/test_map_endpoints.py   | 2 +-
 tox.ini                      | 4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/mapping_provider/__init__.py b/mapping_provider/__init__.py
index 2898e51..e48147a 100644
--- a/mapping_provider/__init__.py
+++ b/mapping_provider/__init__.py
@@ -6,6 +6,7 @@ from fastapi import FastAPI
 
 from mapping_provider.api import common, map
 
+
 def create_app() -> FastAPI:
     """
     Creates the FastAPI application instance, with routers attached.
diff --git a/mapping_provider/api/map.py b/mapping_provider/api/map.py
index 924ffa5..af7fe27 100644
--- a/mapping_provider/api/map.py
+++ b/mapping_provider/api/map.py
@@ -1,9 +1,8 @@
-from importlib.metadata import version
 
-from fastapi import APIRouter
 import jsonschema
-from pydantic import BaseModel
 import requests
+from fastapi import APIRouter
+from pydantic import BaseModel
 
 router = APIRouter()
 
diff --git a/pyproject.toml b/pyproject.toml
index cdeac56..5962c7c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,12 +1,12 @@
 [tool.ruff]
 line-length = 120
 target-version = "py313"
-select = ["E", "F", "I", "B", "UP", "N"]
-fixable = ["ALL"]
+lint.select = ["E", "F", "I", "B", "UP", "N"]
+lint.fixable = ["ALL"]
 exclude = ["tests", "docs", "build"]
 
 [tool.mypy]
 python_version = "3.13"
 strict = true
 warn_unused_ignores = true
-warn_return_any = true
\ No newline at end of file
+warn_return_any = true
diff --git a/test/conftest.py b/test/conftest.py
index f9fb990..30d1064 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -1,5 +1,5 @@
-from fastapi.testclient import TestClient
 import pytest
+from fastapi.testclient import TestClient
 
 from mapping_provider import create_app
 
diff --git a/test/test_map_endpoints.py b/test/test_map_endpoints.py
index 317b1e1..e1befeb 100644
--- a/test/test_map_endpoints.py
+++ b/test/test_map_endpoints.py
@@ -4,7 +4,7 @@ import re
 
 import responses
 
-from mapping_provider.api.map import SiteList, RouterList, ServiceList
+from mapping_provider.api.map import RouterList, ServiceList, SiteList
 
 DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
 
diff --git a/tox.ini b/tox.ini
index c34930b..2c5490b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,11 +4,11 @@ envlist = lint, typecheck, docs
 [testenv:lint]
 description = Lint code with Ruff
 deps = ruff
-commands = ruff check mapping_provider
+commands = ruff check mapping_provider test
 
 [testenv:typecheck]
 description = Type-check code with mypy
-deps = mypy
+deps = mypy types-jsonschema types-requests
 commands = mypy mapping_provider
 
 [testenv:docs]
-- 
GitLab