Skip to content

Commit 163cfc1

Browse files
committed
lint: add isort linting in ruff
This required a large number of adjustments. I took the opportunity to make some further clean-up of top-matter.
1 parent 6ac2c69 commit 163cfc1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+259
-760
lines changed

features/steps/api.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for basic API features
5-
"""
1+
"""Step implementations for basic API features."""
62

73
from behave import given, then, when
84

95
import docx
10-
116
from docx import Document
127

138
from helpers import test_docx
149

15-
1610
# given ====================================================
1711

1812

features/steps/block.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for block content containers
5-
"""
1+
"""Step implementations for block content containers."""
62

73
from behave import given, then, when
84

@@ -11,7 +7,6 @@
117

128
from helpers import test_docx
139

14-
1510
# given ===================================================
1611

1712

features/steps/cell.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for table cell-related features
5-
"""
6-
7-
from __future__ import absolute_import, print_function, unicode_literals
1+
"""Step implementations for table cell-related features."""
82

93
from behave import given, then, when
104

115
from docx import Document
126

137
from helpers import test_docx
148

15-
169
# given ===================================================
1710

1811

features/steps/coreprops.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Gherkin step implementations for core properties-related features.
5-
"""
6-
7-
from __future__ import absolute_import, division, print_function, unicode_literals
1+
"""Gherkin step implementations for core properties-related features."""
82

93
from datetime import datetime, timedelta
104

@@ -15,7 +9,6 @@
159

1610
from helpers import test_docx
1711

18-
1912
# given ===================================================
2013

2114

features/steps/document.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,18 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for document-related features
5-
"""
6-
7-
from __future__ import absolute_import, print_function, unicode_literals
1+
"""Step implementations for document-related features."""
82

93
from behave import given, then, when
104

115
from docx import Document
126
from docx.enum.section import WD_ORIENT, WD_SECTION
7+
from docx.section import Sections
138
from docx.shape import InlineShapes
149
from docx.shared import Inches
15-
from docx.section import Sections
1610
from docx.styles.styles import Styles
1711
from docx.table import Table
1812
from docx.text.paragraph import Paragraph
1913

2014
from helpers import test_docx, test_file
2115

22-
2316
# given ===================================================
2417

2518

features/steps/font.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for font-related features.
5-
"""
6-
7-
from __future__ import absolute_import, division, print_function, unicode_literals
1+
"""Step implementations for font-related features."""
82

93
from behave import given, then, when
104

@@ -16,7 +10,6 @@
1610

1711
from helpers import test_docx
1812

19-
2013
# given ===================================================
2114

2215

features/steps/hdrftr.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
# encoding: utf-8
2-
3-
"""Step implementations for header and footer-related features"""
4-
5-
from __future__ import absolute_import, division, print_function, unicode_literals
1+
"""Step implementations for header and footer-related features."""
62

73
from behave import given, then, when
84

95
from docx import Document
106

117
from helpers import test_docx, test_file
128

13-
149
# given ====================================================
1510

1611

features/steps/helpers.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Helper methods and variables for acceptance tests.
5-
"""
1+
"""Helper methods and variables for acceptance tests."""
62

73
import os
84

features/steps/image.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for image characterization features
5-
"""
6-
7-
from __future__ import absolute_import, print_function, unicode_literals
1+
"""Step implementations for image characterization features."""
82

93
from behave import given, then, when
104

115
from docx.image.image import Image
126

137
from helpers import test_file
148

15-
169
# given ===================================================
1710

1811

features/steps/numbering.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
1-
# encoding: utf-8
2-
3-
"""
4-
Step implementations for numbering-related features
5-
"""
1+
"""Step implementations for numbering-related features."""
62

73
from behave import given, then, when
84

95
from docx import Document
106

117
from helpers import test_docx
128

13-
149
# given ===================================================
1510

1611

0 commit comments

Comments
 (0)