Skip to content

Commit 00a9fbb

Browse files
authored
Set line-length to 79 characters according to PEP-8 (#389)
1 parent a142959 commit 00a9fbb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
* Fix broken link checker [#546](https://github.com/NLeSC/python-template/pull/546)
6060
* pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457))
6161
* CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462))
62+
* Restored default line-length of 79 characters, as recommended by [PEP-8](https://peps.python.org/pep-0008/#maximum-line-length) [#389](https://github.com/NLeSC/python-template/pull/389)
6263

6364
### Removed
6465

template/pyproject.toml.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ extras = dev
107107
"""
108108

109109
[tool.ruff]
110-
line-length = 120
110+
line-length = 79
111111
output-format = "concise"
112112
{%- if AddLocalDocumentation %}
113113
extend-exclude = ["docs"]

template/{% if AddLocalDocumentation %}docs{% endif %}/conf.py.jinja

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ html_theme = "sphinx_rtd_theme"
7878

7979
# -- Options for Intersphinx
8080

81-
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),
82-
# Commonly used libraries, uncomment when used in package
83-
# 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
84-
# 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
85-
# 'scikit-learn': ('https://scikit-learn.org/stable/', None),
86-
# 'matplotlib': ('https://matplotlib.org/stable/', None),
87-
# 'pandas': ('http://pandas.pydata.org/docs/', None),
88-
}
81+
intersphinx_mapping = {
82+
'python': ('https://docs.python.org/3', None),
83+
# Commonly used libraries, uncomment when used in package
84+
# 'numpy': ('http://docs.scipy.org/doc/numpy/', None),
85+
# 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None),
86+
# 'scikit-learn': ('https://scikit-learn.org/stable/', None),
87+
# 'matplotlib': ('https://matplotlib.org/stable/', None),
88+
# 'pandas': ('http://pandas.pydata.org/docs/', None),
89+
}

0 commit comments

Comments
 (0)