Skip to content

Commit

Permalink
Merge pull request #19 from glamod/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
ludwiglierhammer authored Jul 2, 2024
2 parents dada9c2 + b251a7b commit 97f6d54
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 12 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ default_language_version:

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.16.0
hooks:
- id: pyupgrade
args: ['--py38-plus']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -24,30 +24,30 @@ repos:
hooks:
- id: toml-sort-fix
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
args: [ '--config-file=.yamllint.yaml' ]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.5.0
hooks:
- id: ruff
- repo: https://github.com/pycqa/flake8
rev: 7.0.0
rev: 7.1.0
hooks:
- id: flake8
additional_dependencies: [ 'flake8-alphabetize', 'flake8-rst-docstrings ']
args: [ '--config=.flake8' ]
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.7.1
rev: 1.8.5
hooks:
- id: nbqa-pyupgrade
args: [ '--py38-plus' ]
Expand All @@ -60,11 +60,11 @@ repos:
- id: blackdoc
additional_dependencies: [ 'black==23.12.1' ]
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.1
rev: v8.18.4
hooks:
- id: gitleaks
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.28.6
hooks:
- id: check-github-workflows
- id: check-readthedocs
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""GLAMOD marine processing package."""

from __future__ import annotations

from . import obs_suite, qc_suite # noqa
1 change: 1 addition & 0 deletions glamod_marine_processing/cli_obs.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Observational Command Line Interface module
===========================================
"""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""GLAMOD marine processing observation suite package."""

from __future__ import annotations
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
This is a temporary script file.
"""

from __future__ import annotations

import glob
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/scripts/level1a.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
@author: iregon
"""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/scripts/level1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
@author: iregon
"""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/scripts/level1c.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
@author: iregon
"""

from __future__ import annotations

import datetime
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/scripts/level1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
@author: iregon
"""

from __future__ import annotations

import datetime
Expand Down
6 changes: 3 additions & 3 deletions glamod_marine_processing/obs_suite/scripts/level1e.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def add_report_quality(qc_df_full):
# Second: at least one observed param passed -> report_quality = '0'
qc_df_full.loc[qc_param_sum < qc_param_applied, "report_quality"] = pass_report
# Third: POS qc fails, no matter how good the observed params are -> report_quality '1'
qc_df_full.loc[
qc_df_full["POS"] == failed_location, "report_quality"
] = failed_report
qc_df_full.loc[qc_df_full["POS"] == failed_location, "report_quality"] = (
failed_report
)
return qc_df_full


Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/obs_suite/scripts/level2.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
@author: iregon
"""

from __future__ import annotations

import glob
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/qc_suite/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""GLAMOD marine processing quality control suite package."""

from __future__ import annotations
1 change: 1 addition & 0 deletions glamod_marine_processing/qc_suite/modules/IMMA1.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Python module for handling IMMA data."""

# IMMA documentation is at http://icoads.noaa.gov/e-doc/imma

# import re # Regular Expressions
Expand Down
1 change: 1 addition & 0 deletions glamod_marine_processing/qc_suite/modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
"""GLAMOD marine processing quality control suite modules."""

from __future__ import annotations
1 change: 1 addition & 0 deletions glamod_marine_processing/qc_suite/scripts/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
@author: sbiri
"""

from __future__ import annotations

import argparse
Expand Down

0 comments on commit 97f6d54

Please sign in to comment.