Skip to content

Commit 6cafd92

Browse files
authored
Merge pull request #176 from praw-dev/update/pre-commit-hooks
2 parents d9d454b + e0aa3b3 commit 6cafd92

17 files changed

+18
-2
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
files: ^(.*\.toml)$
2525

2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: v0.1.11
27+
rev: v0.1.14
2828
hooks:
2929
- id: ruff
3030
args: [ --exit-non-zero-on-fix, --fix ]
@@ -33,7 +33,7 @@ repos:
3333
- repo: https://github.com/psf/black
3434
hooks:
3535
- id: black
36-
rev: 23.12.1
36+
rev: 24.1.1
3737

3838
- repo: https://github.com/LilSpazJoekp/docstrfmt
3939
hooks:

prawcore/auth.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provides Authentication and Authorization classes."""
2+
23
from __future__ import annotations
34

45
import time

prawcore/const.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Constants for the prawcore package."""
2+
23
import os
34

45
ACCESS_TOKEN_PATH = "/api/v1/access_token" # noqa: S105

prawcore/exceptions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide exception classes for the prawcore package."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING, Any

prawcore/rate_limit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide the RateLimiter class."""
2+
23
from __future__ import annotations
34

45
import logging

prawcore/requestor.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provides the HTTP request handling interface."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING, Any

prawcore/sessions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""prawcore.sessions: Provides prawcore.Session and prawcore.session."""
2+
23
from __future__ import annotations
34

45
import logging

prawcore/util.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide utility for the prawcore package."""
2+
23
from __future__ import annotations
34

45
from typing import TYPE_CHECKING

tests/conftest.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Prepare pytest."""
2+
23
import os
34
import socket
45
import time

tests/integration/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""prawcore Integration test suite."""
2+
23
import os
34
from urllib.parse import quote_plus
45

tests/integration/test_authorizer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.auth.Authorizer classes."""
2+
23
import pytest
34

45
import prawcore

tests/integration/test_sessions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.Sessions module."""
2+
23
import logging
34
from json import dumps
45

tests/unit/test_authenticator.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for subclasses of prawcore.auth.BaseAuthenticator class."""
2+
23
import pytest
34

45
import prawcore

tests/unit/test_authorizer.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.auth.Authorizer classes."""
2+
23
import pytest
34

45
import prawcore

tests/unit/test_rate_limit.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.Sessions module."""
2+
23
from copy import copy
34
from unittest.mock import patch
45

tests/unit/test_requestor.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.self.requestor.Requestor class."""
2+
23
import pickle
34
from inspect import signature
45
from unittest.mock import Mock, patch

tests/unit/test_sessions.py

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test for prawcore.Sessions module."""
2+
23
import logging
34
from unittest.mock import Mock, patch
45

0 commit comments

Comments
 (0)