Skip to content

Commit a3ae8e2

Browse files
Fix ruff test failures
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 176097b commit a3ae8e2

8 files changed

+2
-45
lines changed

Diff for: .github/workflows/docs-ci.yml

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ jobs:
2323
- name: Install Dependencies
2424
run: ./configure --dev
2525

26-
- name: Check Sphinx Documentation build minimally
27-
working-directory: ./docs
28-
run: sphinx-build -E -W source build
29-
3026
- name: Check for documentation style errors
3127
working-directory: ./docs
3228
run: ./scripts/doc8_style_check.sh

Diff for: src/source_inspector/strings_xgettext.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def parse_po_text(po_text, drop_header=False, clean=True):
112112
#: symbols_ctags.py:21
113113
#: symbols_ctags.py:23
114114
msgid ""
115-
"Extract symbols information from source code files with ctags.\n"
115+
"Extract symbols information from source code files with ctags."
116116
#, c-format
117117
msgstr ""
118118

Diff for: src/source_inspector/symbols_ctags.py

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def is_anon_string(symbol):
120120
True
121121
>>> is_anon_string("__anon_user_id")
122122
False
123+
123124
"""
124125
if symbol.startswith("__anon"):
125126
hex_part = symbol[6:]

Diff for: tests/test_skeleton_codestyle.py

-36
This file was deleted.

Diff for: tests/test_symbols_ctags.py

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222

2323
class TestCtagsSymbolScannerPlugin(FileBasedTesting):
24-
2524
test_data_dir = os.path.join(os.path.dirname(__file__), "data/symbols_ctags")
2625

2726
def test_is_ctags_installed(self):

Diff for: tests/test_symbols_pygments.py

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def check_json(expected, results, regen=REGEN_TEST_FIXTURES):
3939

4040

4141
class TestPygmentsSymbolScannerPlugin(FileBasedTesting):
42-
4342
test_data_dir = os.path.join(os.path.dirname(__file__), "data/symbols_pygments")
4443

4544
def test_get_tokens_basic(self):

Diff for: tests/test_symbols_tree_sitter.py

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ def check_json(expected, results, regen=REGEN_TEST_FIXTURES):
3737

3838

3939
class TestTreeSitterSymbolScannerPlugin(FileBasedTesting):
40-
4140
test_data_dir = os.path.join(os.path.dirname(__file__), "data/symbols_tree_sitter")
4241

4342
def test_symbols_scanner_basic_cli_cpp(self):

Diff for: tests/test_symbols_xgettext.py

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525

2626
class TestXgettextSymbolScannerPlugin(FileBasedTesting):
27-
2827
test_data_dir = os.path.join(os.path.dirname(__file__), "data/strings_xgettext")
2928

3029
def test_is_xgettext_installed(self):

0 commit comments

Comments
 (0)