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 5b4044f..3275c2f 100644 --- a/doc/versionHistory.rst +++ b/doc/versionHistory.rst @@ -6,6 +6,12 @@ Version History ################## +------------- +1.5.1 +------------- + +* Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9. + ------------- 1.5.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)