Skip to content

Commit

Permalink
chore: bump ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Mar 5, 2024
1 parent 39f848b commit 8043ddf
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.8"
rev: "v0.3.0"
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

[tool.ruff]
line-length = 79
select = ["E", "F", "I"]
lint.select = ["E", "F", "I"]
target-version = "py39"

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""our setup file."""

from setuptools import setup

setup(use_scm_version={"version_scheme": "post-release"})
1 change: 1 addition & 0 deletions src/iembot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Placeholder."""

from ._version import get_version # noqa: E402

__version__ = get_version()
3 changes: 2 additions & 1 deletion src/iembot/basicbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Basic iembot/nwsbot implementation. """
"""Basic iembot/nwsbot implementation."""

import copy
import datetime
import os
Expand Down
3 changes: 2 additions & 1 deletion src/iembot/iemchatbot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
""" Chat bot implementation of IEMBot """
"""Chat bot implementation of IEMBot"""

import datetime
import re

Expand Down
1 change: 1 addition & 0 deletions src/iembot/util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Utility functions for IEMBot"""

# pylint: disable=protected-access
import copy
import datetime
Expand Down
1 change: 1 addition & 0 deletions src/iembot/webhooks.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Send content to various webhooks."""

import json
from io import BytesIO

Expand Down
1 change: 1 addition & 0 deletions src/iembot/webservices.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Our web services"""

import datetime
import json
import re
Expand Down
1 change: 1 addition & 0 deletions tests/test_util.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests, gasp"""

import tempfile
from unittest import mock

Expand Down
1 change: 1 addition & 0 deletions tests/test_xml.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Some random tests"""

from iembot.basicbot import basicbot
from iembot.util import safe_twitter_text

Expand Down

0 comments on commit 8043ddf

Please sign in to comment.