Skip to content

Commit

Permalink
replaced tabs with spaces in a docstring that resulted in problems wi…
Browse files Browse the repository at this point in the history
…th the newest black version. Fixes #128

fixes flake8 errors for all files
  • Loading branch information
erwanp committed Aug 31, 2020
1 parent 8db0986 commit 155a800
Show file tree
Hide file tree
Showing 90 changed files with 3,488 additions and 3,557 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = E, W, C901
ignore = E, W, C901, radis/io/hapi.py, */__init__.py
max-line-length = 89
max-complexity = 18
select = B,C,E,F,W,T4,B9
1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
from __future__ import absolute_import
import sys
import os
import shlex

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
16 changes: 8 additions & 8 deletions radis/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,20 +149,20 @@


def get_version(verbose=False, add_git_number=True):
""" Reads `__version.txt__ <https://github.com/radis/radis/blob/master/radis/__version__.txt>`__
and retrieve version number.
If ``add_git_number``, also appends Git commit number if we're on a gitted session
"""Reads `__version.txt__ <https://github.com/radis/radis/blob/master/radis/__version__.txt>`__
and retrieve version number.
If ``add_git_number``, also appends Git commit number if we're on a gitted session
Examples
--------
::
import radis
print(radis.get_version())
>>> '0.9.17'
"""
"""

# First get version
with open(os.path.join(getProjectRoot(), "__version__.txt")) as version_file:
Expand Down

0 comments on commit 155a800

Please sign in to comment.