Skip to content

Commit

Permalink
Fix ruff 'I' lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbannier committed Dec 6, 2024
1 parent 7a75728 commit 2851168
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
import subprocess
import sys

sys.path.insert(0, os.path.abspath("scripts"))

Expand Down
3 changes: 1 addition & 2 deletions doc/scripts/spicy-doc-to-rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ import argparse
import copy
import filecmp
import json
import os.path
import os
import os.path
import re
import sys
import textwrap

from re import Pattern


Expand Down
2 changes: 1 addition & 1 deletion doc/scripts/spicy-pygments.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Copyright (c) 2020-2023 by the Zeek Project. See LICENSE for details.

from pygments.lexer import RegexLexer, include, words, bygroups
from pygments.lexer import RegexLexer, bygroups, include, words
from pygments.token import (
Comment,
Keyword,
Expand Down
18 changes: 9 additions & 9 deletions doc/scripts/spicy.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
"""

import os.path
import subprocess

from docutils import nodes
from docutils.parsers.rst import directives
from sphinx.util.nodes import make_refnode, logging
from sphinx.util.console import darkgreen, red
from sphinx.roles import XRefRole
from sphinx.locale import _
from sphinx.domains import Domain, ObjType
from sphinx.directives.code import CodeBlock, LiteralInclude
from sphinx import addnodes, version_info
from sphinx.directives import ObjectDescription
from sphinx import version_info
from sphinx import addnodes
import subprocess
from sphinx.directives.code import CodeBlock, LiteralInclude
from sphinx.domains import Domain, ObjType
from sphinx.locale import _
from sphinx.roles import XRefRole
from sphinx.util.console import darkgreen, red
from sphinx.util.nodes import logging, make_refnode


def setup(Sphinx):
Expand Down
2 changes: 2 additions & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ exclude = [
[lint]
select = [
"C4",
"F",
"I",
"UP",
]
2 changes: 1 addition & 1 deletion tests/Scripts/license-header.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3

import sys
import re
import sys

for f in sys.argv[1:]:
with open(f) as input:
Expand Down
2 changes: 1 addition & 1 deletion tests/Scripts/stray_baselines.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env python3
"""Helper scripts to identify baselines without matching test"""

import subprocess
import os
import re
import subprocess
import sys

TEST_DIR = os.path.realpath(__file__ + "/../../")
Expand Down

0 comments on commit 2851168

Please sign in to comment.