Skip to content

Commit

Permalink
Merge pull request #39 from lsst-ts/tickets/DM-43864
Browse files Browse the repository at this point in the history
Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9.
  • Loading branch information
jbkalmbach authored Apr 17, 2024
2 parents 817e6b4 + 4075e7d commit 77ffd90
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
6 changes: 6 additions & 0 deletions doc/versionHistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
4 changes: 3 additions & 1 deletion python/lsst/ts/imsim/obs_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 77ffd90

Please sign in to comment.