Skip to content

Commit

Permalink
Merge pull request #176 from praw-dev/update/pre-commit-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
LilSpazJoekp committed Jan 29, 2024
2 parents d9d454b + e0aa3b3 commit 6cafd92
Show file tree
Hide file tree
Showing 17 changed files with 18 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Expand Up @@ -24,7 +24,7 @@ repos:
files: ^(.*\.toml)$

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.14
hooks:
- id: ruff
args: [ --exit-non-zero-on-fix, --fix ]
Expand All @@ -33,7 +33,7 @@ repos:
- repo: https://github.com/psf/black
hooks:
- id: black
rev: 23.12.1
rev: 24.1.1

- repo: https://github.com/LilSpazJoekp/docstrfmt
hooks:
Expand Down
1 change: 1 addition & 0 deletions prawcore/auth.py
@@ -1,4 +1,5 @@
"""Provides Authentication and Authorization classes."""

from __future__ import annotations

import time
Expand Down
1 change: 1 addition & 0 deletions prawcore/const.py
@@ -1,4 +1,5 @@
"""Constants for the prawcore package."""

import os

ACCESS_TOKEN_PATH = "/api/v1/access_token" # noqa: S105
Expand Down
1 change: 1 addition & 0 deletions prawcore/exceptions.py
@@ -1,4 +1,5 @@
"""Provide exception classes for the prawcore package."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any
Expand Down
1 change: 1 addition & 0 deletions prawcore/rate_limit.py
@@ -1,4 +1,5 @@
"""Provide the RateLimiter class."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions prawcore/requestor.py
@@ -1,4 +1,5 @@
"""Provides the HTTP request handling interface."""

from __future__ import annotations

from typing import TYPE_CHECKING, Any
Expand Down
1 change: 1 addition & 0 deletions prawcore/sessions.py
@@ -1,4 +1,5 @@
"""prawcore.sessions: Provides prawcore.Session and prawcore.session."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions prawcore/util.py
@@ -1,4 +1,5 @@
"""Provide utility for the prawcore package."""

from __future__ import annotations

from typing import TYPE_CHECKING
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
@@ -1,4 +1,5 @@
"""Prepare pytest."""

import os
import socket
import time
Expand Down
1 change: 1 addition & 0 deletions tests/integration/__init__.py
@@ -1,4 +1,5 @@
"""prawcore Integration test suite."""

import os
from urllib.parse import quote_plus

Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_authorizer.py
@@ -1,4 +1,5 @@
"""Test for prawcore.auth.Authorizer classes."""

import pytest

import prawcore
Expand Down
1 change: 1 addition & 0 deletions tests/integration/test_sessions.py
@@ -1,4 +1,5 @@
"""Test for prawcore.Sessions module."""

import logging
from json import dumps

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_authenticator.py
@@ -1,4 +1,5 @@
"""Test for subclasses of prawcore.auth.BaseAuthenticator class."""

import pytest

import prawcore
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_authorizer.py
@@ -1,4 +1,5 @@
"""Test for prawcore.auth.Authorizer classes."""

import pytest

import prawcore
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_rate_limit.py
@@ -1,4 +1,5 @@
"""Test for prawcore.Sessions module."""

from copy import copy
from unittest.mock import patch

Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_requestor.py
@@ -1,4 +1,5 @@
"""Test for prawcore.self.requestor.Requestor class."""

import pickle
from inspect import signature
from unittest.mock import Mock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_sessions.py
@@ -1,4 +1,5 @@
"""Test for prawcore.Sessions module."""

import logging
from unittest.mock import Mock, patch

Expand Down

0 comments on commit 6cafd92

Please sign in to comment.