diff --git a/CHANGELOG.md b/CHANGELOG.md index 3aaf96b4..19e06afa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -59,6 +59,7 @@ * Fix broken link checker [#546](https://github.com/NLeSC/python-template/pull/546) * pre-commit script is optional ([#457](https://github.com/NLeSC/python-template/issues/457)) * CHANGELOG.md is now optional ([#462](https://github.com/NLeSC/python-template/issues/462)) +* 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) ### Removed diff --git a/template/pyproject.toml.jinja b/template/pyproject.toml.jinja index 0757ab6e..d50700be 100644 --- a/template/pyproject.toml.jinja +++ b/template/pyproject.toml.jinja @@ -107,7 +107,7 @@ extras = dev """ [tool.ruff] -line-length = 120 +line-length = 79 output-format = "concise" {%- if AddLocalDocumentation %} extend-exclude = ["docs"] diff --git a/template/{% if AddLocalDocumentation %}docs{% endif %}/conf.py.jinja b/template/{% if AddLocalDocumentation %}docs{% endif %}/conf.py.jinja index dbbec0af..ea6ff9a8 100644 --- a/template/{% if AddLocalDocumentation %}docs{% endif %}/conf.py.jinja +++ b/template/{% if AddLocalDocumentation %}docs{% endif %}/conf.py.jinja @@ -78,11 +78,12 @@ html_theme = "sphinx_rtd_theme" # -- Options for Intersphinx -intersphinx_mapping = {'python': ('https://docs.python.org/3', None), - # Commonly used libraries, uncomment when used in package - # 'numpy': ('http://docs.scipy.org/doc/numpy/', None), - # 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), - # 'scikit-learn': ('https://scikit-learn.org/stable/', None), - # 'matplotlib': ('https://matplotlib.org/stable/', None), - # 'pandas': ('http://pandas.pydata.org/docs/', None), - } +intersphinx_mapping = { + 'python': ('https://docs.python.org/3', None), + # Commonly used libraries, uncomment when used in package + # 'numpy': ('http://docs.scipy.org/doc/numpy/', None), + # 'scipy': ('http://docs.scipy.org/doc/scipy/reference/', None), + # 'scikit-learn': ('https://scikit-learn.org/stable/', None), + # 'matplotlib': ('https://matplotlib.org/stable/', None), + # 'pandas': ('http://pandas.pydata.org/docs/', None), +}