Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pre-commit.ci] pre-commit autoupdate #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
12 changes: 6 additions & 6 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: v5.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.1.1' # 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
rev: 24.10.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