From e6b892e8406bccff0853bee42d32d9b6c2cb5663 Mon Sep 17 00:00:00 2001 From: Bryce Kalmbach Date: Thu, 11 Apr 2024 17:49:07 -0700 Subject: [PATCH] Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9. --- .pre-commit-config.yaml | 10 +++++----- doc/versionHistory.rst | 6 ++++++ python/lsst/ts/imsim/obs_metadata.py | 4 +++- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7d3d971..9539b4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 24.3.0 hooks: - id: black - repo: https://github.com/pycqa/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 @@ -15,19 +15,19 @@ repos: - id: format-xmllint - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort name: isort (python) - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.6.0 hooks: - id: check-yaml exclude: conda/meta.yaml|^policy/config/[input|image|output|stamp|opd] - id: check-xml - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.3.5 hooks: - id: ruff diff --git a/doc/versionHistory.rst b/doc/versionHistory.rst index db603f4..b1b57fc 100644 --- a/doc/versionHistory.rst +++ b/doc/versionHistory.rst @@ -6,6 +6,12 @@ Version History ################## +------------- +1.4.1 +------------- + +* Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9. + ------------- 1.4.0 ------------- diff --git a/python/lsst/ts/imsim/obs_metadata.py b/python/lsst/ts/imsim/obs_metadata.py index 212362e..0e58207 100644 --- a/python/lsst/ts/imsim/obs_metadata.py +++ b/python/lsst/ts/imsim/obs_metadata.py @@ -39,7 +39,9 @@ class ObsMetadata: mjd: float = 60115.33 seq_num: int = 1 raw_seeing: int = 0.5 - obs_id: str = """$f"IM_P_{astropy.time.Time(mjd, format='mjd').strftime('%Y%m%d')}_{seqnum:06d}" """ + obs_id: str = ( + """$f"IM_P_{astropy.time.Time(mjd, format='mjd').strftime('%Y%m%d')}_{seqnum:06d}" """ + ) focus_z: float = 0.0 # Defocal distance in mm zenith: float = field(init=False) parallactic_angle: float = field(init=False)