Skip to content

Commit

Permalink
style: fix style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii committed Aug 5, 2020
1 parent e448c8c commit c19c841
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 7 deletions.
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ jobs:
- script: |
python -m pytest tests/ --cov hepunits --cov-report html --napoleon-docstrings
displayName: 'pytest'
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.

from setuptools import setup

# Setup will not be able to find the version if these packages are missing
# (Remember, setup.py does not run when installing from a wheel, so only required to make one)
#
# > Remember, setup.py does not run when installing from a wheel, so only
# > required to make one

import setuptools_scm # noqa: F401
import toml # noqa: F401
Expand Down
1 change: 1 addition & 0 deletions src/hepunits/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.

# Convenient access to the version number
Expand Down
1 change: 1 addition & 0 deletions src/hepunits/constants/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
This module `hepunits.constants` contains 2 sorts of constants:
Expand Down
1 change: 1 addition & 0 deletions src/hepunits/constants/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
Physical and other handy constants
Expand Down
9 changes: 6 additions & 3 deletions src/hepunits/units/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.

"""
Subpackage for the HEP System of Units, (derived) physical units
and commonly-used unit prefixes.
Subpackage for the HEP System of Units, (derived) physical units and
commonly-used unit prefixes.
The HEP System of Units is the set of basic units originally defined by the CLHEP project.
The HEP System of Units is the set of basic units originally defined by the
CLHEP project.
"""

from .prefixes import *
Expand Down
1 change: 1 addition & 0 deletions src/hepunits/units/prefixes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
********************
Expand Down
8 changes: 6 additions & 2 deletions src/hepunits/units/units.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.

"""
*************************
Module of HEP basic units
*************************
In HEP the System of Units consists of the basic units originally defined by the [CLHEP]_ project:
In HEP the System of Units consists of the basic units originally defined by
the [CLHEP]_ project:
=================== ================== ====
Quantity Name Unit
Expand Down Expand Up @@ -34,7 +37,8 @@
Luminous intensity candela cd
=================== ======== ====
but augments it with handy definitions, changing the basic length and time units.
but augments it with handy definitions, changing the basic length and time
units.
This module also defines an extensive set of derived units.
Expand Down
1 change: 1 addition & 0 deletions tests/constants/test_constants.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
Tests for the hepunits.constants.constants module.
Expand Down
1 change: 1 addition & 0 deletions tests/units/test_prefixes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
Tests for the hepunits.units.prefixes module.
Expand Down
1 change: 1 addition & 0 deletions tests/units/test_units.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Licensed under a 3-clause BSD style license, see LICENSE.
"""
Tests for the hepunits.units.units module.
Expand Down

0 comments on commit c19c841

Please sign in to comment.