Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
exclude: '^docs/conf.py'

repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
Expand All @@ -17,17 +17,17 @@ repos:
- id: check-merge-conflict
- id: mixed-line-ending
args: ['--fix=no']
- repo: https://gitlab.com/pycqa/flake8
rev: '3.8.1' # pick a git hash / tag to point to
- repo: https://github.com/PyCQA/flake8
rev: '7.3.0' # pick a git hash / tag to point to
hooks:
- id: flake8
additional_dependencies:
- flake8-rst-docstrings
- repo: https://github.com/psf/black
rev: 19.10b0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 26.1.0
hooks:
- id: black
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
rev: v1.10.0
hooks:
- id: rst-backticks
1 change: 1 addition & 0 deletions HMF/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
framework.

"""

import os
import sys

Expand Down
17 changes: 14 additions & 3 deletions HMFcalc/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,22 @@ class TransferForm(HMFModelForm):
("CAMB", "CAMB"),
("EH_BAO", "Eisenstein-Hu (1998) (with BAO)"),
("EH_NoBAO", "Eisenstein-Hu (1998) (no BAO)"),
("BBKS", "BBKS (1986)",),
(
"BBKS",
"BBKS (1986)",
),
("BondEfs", "Bond-Efstathiou"),
]
_initial = "CAMB"
module = transfer_models
ignore_fields = ["camb_params"]

field_kwargs = {"fname": {"type": forms.FileField, "label": "",}}
field_kwargs = {
"fname": {
"type": forms.FileField,
"label": "",
}
}

def clean_transfer_fname(self):
thefile = self.cleaned_data.get("transfer_fname", None)
Expand Down Expand Up @@ -124,7 +132,10 @@ class TransferFramework(HMFFramework):
)

dlnk = forms.FloatField(
label="lnk Step Size", initial=0.05, min_value=0.005, max_value=0.5,
label="lnk Step Size",
initial=0.05,
min_value=0.005,
max_value=0.5,
)

takahashi = forms.BooleanField(
Expand Down
1 change: 1 addition & 0 deletions HMFcalc/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Plotting and driving utilities for hmf."""

import copy
import io
import logging
Expand Down
1 change: 1 addition & 0 deletions check_alive.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@author: Steven
"""

import urllib.request
from subprocess import call

Expand Down