Skip to content

Commit

Permalink
Merge pull request #55 from tjgalvin/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
tjgalvin authored Apr 12, 2024
2 parents 9c3504f + 8e238ef commit ef46c11
Show file tree
Hide file tree
Showing 21 changed files with 27 additions and 38 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
Expand All @@ -11,7 +11,7 @@ repos:
- id: isort
args: ["--profile=black"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.13
rev: v0.3.5
hooks:
- id: ruff
- id: ruff-format
Expand Down
3 changes: 1 addition & 2 deletions flint/bandpass.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Procedure to calibrate bandpass observation
"""
"""Procedure to calibrate bandpass observation"""

from argparse import ArgumentParser
from pathlib import Path
Expand Down
3 changes: 1 addition & 2 deletions flint/calibrate/aocalibrate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Code to use AO calibrate s
"""
"""Code to use AO calibrate s"""

from __future__ import annotations # used to keep mypy/pylance happy in AOSolutions

Expand Down
4 changes: 2 additions & 2 deletions flint/coadd/linmos.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""This is an interface into the yandasoft linmos task.
"""
"""This is an interface into the yandasoft linmos task."""

from argparse import ArgumentParser
from pathlib import Path
from typing import Collection, List, NamedTuple, Optional
Expand Down
1 change: 1 addition & 0 deletions flint/convol.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Tooling related to the convolution of images. Principally
this is mostly to smooth to a common resolution
"""

from __future__ import annotations

import warnings
Expand Down
3 changes: 1 addition & 2 deletions flint/flagging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Utility functions to carry out flagging against ASKAP measurement sets
"""
"""Utility functions to carry out flagging against ASKAP measurement sets"""

from argparse import ArgumentParser
from pathlib import Path
Expand Down
3 changes: 1 addition & 2 deletions flint/imager/wsclean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Simple interface into wsclean
"""
"""Simple interface into wsclean"""

from __future__ import annotations

Expand Down
3 changes: 1 addition & 2 deletions flint/ms.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Operations related to measurement sets
"""
"""Operations related to measurement sets"""

from __future__ import ( # Used for mypy/pylance to like the return type of MS.with_options
annotations,
Expand Down
1 change: 1 addition & 0 deletions flint/naming.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Attempts to centralise components to do with naming of pipeline files and data
products.
"""

import re
from pathlib import Path
from typing import Any, List, NamedTuple, Optional, Union
Expand Down
4 changes: 2 additions & 2 deletions flint/prefect/common/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Common prefect related utilities that can be used between flows.
"""
"""Common prefect related utilities that can be used between flows."""

import base64
from pathlib import Path
from typing import Any, List, Optional, TypeVar
Expand Down
4 changes: 2 additions & 2 deletions flint/sclient.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Utilities related to running commands in a singularity container
"""
"""Utilities related to running commands in a singularity container"""

from pathlib import Path
from socket import gethostname
from subprocess import CalledProcessError
Expand Down
3 changes: 1 addition & 2 deletions flint/source_finding/aegean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""A basic interface into aegean source finding routines.
"""
"""A basic interface into aegean source finding routines."""

from argparse import ArgumentParser
from pathlib import Path
Expand Down
3 changes: 1 addition & 2 deletions flint/summary.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Summary containers intended to hold general information obtained throughout a processing run.
"""
"""Summary containers intended to hold general information obtained throughout a processing run."""

from __future__ import ( # Used for mypy/pylance to like the return type of MS.with_options
annotations,
Expand Down
3 changes: 1 addition & 2 deletions tests/test_aocalibrate.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Some tests related to using aoccalibrate related things
"""
"""Some tests related to using aoccalibrate related things"""

import shutil
from pathlib import Path
Expand Down
3 changes: 1 addition & 2 deletions tests/test_bandpass_flow.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Basic tests for the prefect bandpass flow
"""
"""Basic tests for the prefect bandpass flow"""

# this pirate made a promise that if there is a typo and an error
# then a test will be made to not let it happen. Penaalty is walking
Expand Down
3 changes: 1 addition & 2 deletions tests/test_bptools.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Itemss around testing components of bptools
"""
"""Itemss around testing components of bptools"""

import numpy as np
import pytest
Expand Down
3 changes: 1 addition & 2 deletions tests/test_flagging.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Test utilities related to flagging measurement set operations
"""
"""Test utilities related to flagging measurement set operations"""

import shutil
from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions tests/test_naming.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Some tests related to components around measurement sets.
"""
"""Some tests related to components around measurement sets."""

from pathlib import Path

from flint.naming import (
Expand Down
3 changes: 1 addition & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Basic tests for utility functions
"""
"""Basic tests for utility functions"""

from pathlib import Path

Expand Down
3 changes: 1 addition & 2 deletions tests/test_validation.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Items related to test functions in the validation stage of flint
"""
"""Items related to test functions in the validation stage of flint"""

from pathlib import Path
from typing import NamedTuple
Expand Down
4 changes: 2 additions & 2 deletions tests/test_wsclean.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Testing some wsclean functionality.
"""
"""Testing some wsclean functionality."""

from pathlib import Path

import pytest
Expand Down

0 comments on commit ef46c11

Please sign in to comment.