diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9114eba..589b2b4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: # Linting and formatting for Python code (see pyproject.toml for config) - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.5.7 + rev: v0.6.1 hooks: # Run the linter. - id: ruff diff --git a/src/pyosmeta/cli/parse_history.py b/src/pyosmeta/cli/parse_history.py index c5128c1..1050f15 100644 --- a/src/pyosmeta/cli/parse_history.py +++ b/src/pyosmeta/cli/parse_history.py @@ -17,6 +17,7 @@ import pickle import git + from pyosmeta.file_io import open_yml_file diff --git a/src/pyosmeta/cli/update_contributors.py b/src/pyosmeta/cli/update_contributors.py index 04dc5e0..ce0f6b1 100644 --- a/src/pyosmeta/cli/update_contributors.py +++ b/src/pyosmeta/cli/update_contributors.py @@ -3,6 +3,7 @@ from datetime import datetime from pydantic import ValidationError + from pyosmeta.contributors import ProcessContributors from pyosmeta.file_io import create_paths, load_pickle, open_yml_file from pyosmeta.github_api import GitHubAPI diff --git a/src/pyosmeta/cli/update_review_teams.py b/src/pyosmeta/cli/update_review_teams.py index 8e81445..b2c9c15 100644 --- a/src/pyosmeta/cli/update_review_teams.py +++ b/src/pyosmeta/cli/update_review_teams.py @@ -25,6 +25,7 @@ from datetime import datetime from pydantic import ValidationError + from pyosmeta.contributors import ProcessContributors from pyosmeta.file_io import clean_export_yml, load_pickle from pyosmeta.github_api import GitHubAPI diff --git a/tests/conftest.py b/tests/conftest.py index f3c8186..c79a3ea 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -2,6 +2,7 @@ from typing import Callable, Literal, Optional, Union, overload import pytest + from pyosmeta.contributors import ProcessContributors from pyosmeta.github_api import GitHubAPI from pyosmeta.models.github import Issue diff --git a/tests/integration/test_parse_issues.py b/tests/integration/test_parse_issues.py index 0118aaa..237ebfe 100644 --- a/tests/integration/test_parse_issues.py +++ b/tests/integration/test_parse_issues.py @@ -1,6 +1,7 @@ """Test parse issues workflow""" import pytest + from pyosmeta.models import ReviewUser from pyosmeta.models.github import Labels diff --git a/tests/unit/test_contributors_module.py b/tests/unit/test_contributors_module.py index 7f3f510..0f1da07 100644 --- a/tests/unit/test_contributors_module.py +++ b/tests/unit/test_contributors_module.py @@ -1,6 +1,7 @@ from unittest.mock import Mock, patch import pytest + from pyosmeta.contributors import ProcessContributors from pyosmeta.github_api import GitHubAPI diff --git a/tests/unit/test_file_io.py b/tests/unit/test_file_io.py index eafd995..4e1f1f1 100644 --- a/tests/unit/test_file_io.py +++ b/tests/unit/test_file_io.py @@ -1,6 +1,7 @@ import pickle import pytest + from pyosmeta.file_io import _list_to_dict, create_paths, load_pickle diff --git a/tests/unit/test_get_contrib_data.py b/tests/unit/test_get_contrib_data.py index 1b13baf..3183fb9 100644 --- a/tests/unit/test_get_contrib_data.py +++ b/tests/unit/test_get_contrib_data.py @@ -1,5 +1,6 @@ import pytest from pydantic import ValidationError + from pyosmeta.models.github import Issue sample_response = { diff --git a/tests/unit/test_github_api.py b/tests/unit/test_github_api.py index 55bb01f..445a9ee 100644 --- a/tests/unit/test_github_api.py +++ b/tests/unit/test_github_api.py @@ -2,6 +2,7 @@ import secrets import pytest + from pyosmeta import github_api from pyosmeta.github_api import GitHubAPI diff --git a/tests/unit/test_parse_categories.py b/tests/unit/test_parse_categories.py index a560d62..78a006e 100644 --- a/tests/unit/test_parse_categories.py +++ b/tests/unit/test_parse_categories.py @@ -1,4 +1,5 @@ import pytest + from pyosmeta.models import ReviewModel checked = [ diff --git a/tests/unit/test_parse_issue_header_methods.py b/tests/unit/test_parse_issue_header_methods.py index e2492c3..1a18ab3 100644 --- a/tests/unit/test_parse_issue_header_methods.py +++ b/tests/unit/test_parse_issue_header_methods.py @@ -4,6 +4,7 @@ """ import pytest + from pyosmeta.parse_issues import KEYED_STRING diff --git a/tests/unit/test_utils_clean.py b/tests/unit/test_utils_clean.py index 7a137f6..7a56b17 100644 --- a/tests/unit/test_utils_clean.py +++ b/tests/unit/test_utils_clean.py @@ -1,6 +1,7 @@ """Tests for the clean helper functions located in the utils_clean module.""" import pytest + from pyosmeta.utils_clean import ( clean_date, clean_date_accepted_key, diff --git a/tests/unit/test_utils_parse.py b/tests/unit/test_utils_parse.py index 7f778f6..024357a 100644 --- a/tests/unit/test_utils_parse.py +++ b/tests/unit/test_utils_parse.py @@ -1,6 +1,7 @@ """Tests for parse helper functions located in utils_parse module.""" import pytest + from pyosmeta.models import ReviewUser from pyosmeta.utils_parse import parse_user_names