diff --git a/examples/gallery/seismology/meca.py b/examples/gallery/seismology/meca.py index 4a600b2d136..1866f1a79be 100644 --- a/examples/gallery/seismology/meca.py +++ b/examples/gallery/seismology/meca.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index c0579e3abb5..74b5aed7d1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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