Skip to content

Commit

Permalink
Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbkalmbach committed Apr 12, 2024
1 parent 4b3ba85 commit e6b892e
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.4.1
-------------

* Update pre-commit versions to be in line with ts_pre_commit_conf v0.9.9.

-------------
1.4.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 e6b892e

Please sign in to comment.