SciPost Code Repository
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SciPost
Manage
Activity
Members
Labels
Plan
Issues
119
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SciPost
SciPost
Commits
c1a8a24f
Commit
c1a8a24f
authored
3 years ago
by
Jean-Sébastien Caux
Browse files
Options
Downloads
Patches
Plain Diff
Tweak editorconfig and docs to better fit Black
parent
68a56f5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.editorconfig
+2
-2
2 additions, 2 deletions
.editorconfig
docs/codebase/contributing.rst
+7
-2
7 additions, 2 deletions
docs/codebase/contributing.rst
with
9 additions
and
4 deletions
.editorconfig
+
2
−
2
View file @
c1a8a24f
...
...
@@ -12,7 +12,7 @@ charset = utf-8
# Docstrings and comments use max_line_length = 99
[*.py]
max_line_length =
99
max_line_length =
88
# Use 2 spaces for the HTML files
[*.html]
...
...
@@ -41,4 +41,4 @@ indent_style = tab
indent_style = tab
[docs/**.txt]
max_line_length = 99
\ No newline at end of file
max_line_length = 88
\ No newline at end of file
This diff is collapsed.
Click to expand it.
docs/codebase/contributing.rst
+
7
−
2
View file @
c1a8a24f
...
...
@@ -17,6 +17,11 @@ Coding conventions
Our starting points are the `PEP 8 <https://www.python.org/dev/peps/pep-0008/>`_
specification, and the `Django style <https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/>`_.
We further default to the conventions in Black.
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
Hereby follow some extra specializations.
To ease your work, if you have an editor with
...
...
@@ -26,14 +31,14 @@ you can use our ``.editorconfig`` file at the base of the repository.
Line length
-----------
We deviate from `PEP 8 <https://www.python.org/dev/peps/pep-0008/>`_
and set the maximal line length to
99
.
and set the maximal line length to
88
.
Docstrings
----------
Docstrings are in reStructruredText (of course), and should fit within the
allowed line length of
99
.
allowed line length of
88
.
Templates
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment