-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added flake8 configs, started on some code style * added back codestyle workflow * code style passes :-) * restored imports in mflike test * made codestyle checks coherent with cobaya
- Loading branch information
1 parent
0853722
commit 9a80163
Showing
30 changed files
with
585 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Code Style | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
jobs: | ||
flake8: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Install Python 3.x | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.x | ||
- name: Install Dependencies | ||
run: | | ||
pip install tox | ||
- name: Check Code Style | ||
run: | | ||
tox -e codestyle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[flake8] | ||
select = E713,E704,E703,E714,E741,E10,E11,E20,E22,E23,E25,E27,E301,E302,E304,E9, | ||
F405,F406,F5,F6,F7,F8,W1,W2,W3,W6,E501 | ||
max-line-length = 90 | ||
exclude = .tox,build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
from .lensing import LensingLiteLikelihood, LensingLikelihood | ||
from .gaussian import GaussianLikelihood, MultiGaussianLikelihood | ||
from .ps import PSLikelihood, BinnedPSLikelihood | ||
from .clusters import ClusterLikelihood | ||
from .mflike import MFLike | ||
from .lensing import LensingLiteLikelihood, LensingLikelihood # noqa: F401 | ||
from .gaussian import GaussianLikelihood, MultiGaussianLikelihood # noqa: F401 | ||
from .ps import PSLikelihood, BinnedPSLikelihood # noqa: F401 | ||
from .clusters import ClusterLikelihood # noqa: F401 | ||
from .mflike import MFLike # noqa: F401 | ||
try: | ||
import pyccl as ccl | ||
from .ccl import CCL | ||
from .cross_correlation import CrossCorrelationLikelihood | ||
import pyccl as ccl # noqa: F401 | ||
from .ccl import CCL # noqa: F401 | ||
from .cross_correlation import CrossCorrelationLikelihood # noqa: F401 | ||
except ImportError: | ||
print('Skipping CCL module as pyCCL is not installed') | ||
pass | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
from .clusters import ClusterLikelihood | ||
from .clusters import ClusterLikelihood # noqa: F401 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.