Skip to content

Commit

Permalink
Enable ruff's flake8-comprehensions (C4) rules (#2887)
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman authored Dec 16, 2023
1 parent 53a9272 commit 20054a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gallery/seismology/meca.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Store focal mechanism parameters in a dictionary based on the Aki & Richards
# convention
focal_mechanism = dict(strike=330, dip=30, rake=90, magnitude=3)
focal_mechanism = {"strike": 330, "dip": 30, "rake": 90, "magnitude": 3}

# Pass the focal mechanism data through the spec parameter. In addition provide
# scale, event location, and event depth
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ select = [
"A", # flake8-builtins
"B", # flake8-bugbear
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8-future-annotations
Expand Down

0 comments on commit 20054a1

Please sign in to comment.