diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..283d714f --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,22 @@ +ci: + autofix_commit_msg: | + [pre-commit.ci] auto fixes from pre-commit.com hooks + for more information, see https://pre-commit.ci + autofix_prs: false + autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate" + autoupdate_schedule: monthly + skip: [] + submodules: false + +repos: + - repo: https://github.com/psf/black + rev: 25.1.0 + hooks: + - id: black + exclude: ^(examples/|packages/basemap_data/|packages/basemap_data_hires/) + + - repo: https://github.com/pycqa/flake8 + rev: 7.0.0 + hooks: + - id: flake8 + exclude: ^(examples/|packages/basemap_data/|packages/basemap_data_hires/)