Skip to content

Commit

Permalink
Merge pull request #419 from nationalarchives/renovate/psf-black-24.x
Browse files Browse the repository at this point in the history
Update pre-commit hook psf/black to v24
  • Loading branch information
jacksonj04 authored Jan 30, 2024
2 parents 6684a36 + 3bae87c commit 91f7e2d
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ repos:
- id: check-json

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black

Expand Down
1 change: 0 additions & 1 deletion src/abbreviation_extraction/abbreviations_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
AbbreviationDetector class and the pipeline.
"""


from collections import namedtuple

from spacy.language import Language
Expand Down
1 change: 0 additions & 1 deletion src/database/db_connection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
""" Handles the database connection """


from typing import Any

import pandas as pd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
'SPARQL_USERNAME' and 'SPARQL_PASSWORD'.
"""


import datetime
import os
from unittest.mock import patch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
2. "Section 27(A)" - currently miss these references when replacing
3. Sub-sections aren't being replaced
"""

import os
import re
from typing import Any, Dict, List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Tests the `oblique_references` module"""


import re
import unittest
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/utils/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fixtures for utils tests"""

import boto3
import pytest
from moto import mock_secretsmanager
Expand Down
1 change: 1 addition & 0 deletions src/utils/tests/test_initialise_db.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Unit tests for the initialise_db module"""

from unittest import mock

from mock import MagicMock
Expand Down

0 comments on commit 91f7e2d

Please sign in to comment.