diff --git a/.github/workflows/format-and-lint.yaml b/.github/workflows/format-and-lint.yaml new file mode 100644 index 00000000..5607a79c --- /dev/null +++ b/.github/workflows/format-and-lint.yaml @@ -0,0 +1,12 @@ +name: Format and Lint + +on: + push: + branches: [main] + tags: + - v*.*.* + pull_request: + +jobs: + pre-commit: + uses: mdolab/.github/.github/workflows/format-and-lint.yaml@ruffConfig diff --git a/ruff.toml b/ruff.toml new file mode 100644 index 00000000..adc8a554 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,2 @@ +# OptView and related files need to be fixed eventually +extend-exclude = [ "pyoptsparse/postprocessing/**" ]