Skip to content

Commit a51b553

Browse files
authored
Merge pull request #326 from ycexiao/linelength79
update flake8, black and isort to set line length limit to 79
2 parents 9d7b804 + f4aebe8 commit a51b553

21 files changed

+1065
-410
lines changed

Diff for: .flake8

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude =
55
build,
66
dist,
77
doc/source/conf.py
8-
max-line-length = 115
8+
max-line-length = 79
99
# Ignore some style 'errors' produced while formatting by 'black'
1010
# https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#labels-why-pycodestyle-warnings
1111
extend-ignore = E203

Diff for: .isort.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[settings]
2-
line_length = 115
2+
line_length = 79
33
multi_line_output = 3
44
include_trailing_comma = True

Diff for: doc/source/conf.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,13 @@
221221
# (source start file, target name, title,
222222
# author, documentclass [howto, manual, or own class]).
223223
latex_documents = [
224-
("index", "diffpy.utils.tex", "diffpy.utils Documentation", ab_authors, "manual"),
224+
(
225+
"index",
226+
"diffpy.utils.tex",
227+
"diffpy.utils Documentation",
228+
ab_authors,
229+
"manual",
230+
),
225231
]
226232

227233
# The name of an image file (relative to this directory) to place at the top of
@@ -249,7 +255,9 @@
249255

250256
# One entry per manual page. List of tuples
251257
# (source start file, name, description, authors, manual section).
252-
man_pages = [("index", "diffpy.utils", "diffpy.utils Documentation", ab_authors, 1)]
258+
man_pages = [
259+
("index", "diffpy.utils", "diffpy.utils Documentation", ab_authors, 1)
260+
]
253261

254262
# If true, show URL addresses after external links.
255263
# man_show_urls = False

Diff for: news/linelength79.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* update isort, flake8 and black to set line limit to 79
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* <news item>
20+
21+
**Security:**
22+
23+
* <news item>

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ ignore-words = ".codespell/ignore_words.txt"
5757
skip = "*.cif,*.dat"
5858

5959
[tool.black]
60-
line-length = 115
60+
line-length = 79
6161
include = '\.pyi?$'
6262
exclude = '''
6363
/(

0 commit comments

Comments
 (0)