Skip to content

Commit 77c18a4

Browse files
committed
Add man as source root for import sorting to correctly understand first party imports
1 parent 02c3c02 commit 77c18a4

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

man/build_check.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
import os
1010
import sys
1111

12-
from build_html import man_dir
13-
1412
from build import get_files, message_tmpl, read_file
13+
from build_html import man_dir
1514

1615
os.chdir(man_dir)
1716

man/build_class_graphical.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
import sys
1919

2020
import build_md
21-
from build_html import (
22-
get_desc,
23-
header1_tmpl,
24-
man_dir,
25-
modclass_intro_tmpl,
26-
)
27-
2821
from build import (
2922
check_for_desc_override,
3023
default_year,
@@ -34,6 +27,12 @@
3427
to_title,
3528
write_footer,
3629
)
30+
from build_html import (
31+
get_desc,
32+
header1_tmpl,
33+
man_dir,
34+
modclass_intro_tmpl,
35+
)
3736

3837
graphical_index_style = """\
3938
<style>

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ py-version = "3.10"
555555
# source root is an absolute path or a path relative to the current working
556556
# directory used to determine a package namespace for modules located under the
557557
# source root.
558-
source-roots = ["python", "gui/wxpython"]
558+
source-roots = ["python", "gui/wxpython", "man"]
559559

560560

561561
[tool.pylint.design]

0 commit comments

Comments
 (0)