diff --git a/.github/workflows/format-and-lint.yaml b/.github/workflows/format-and-lint.yaml new file mode 100644 index 000000000..5607a79c4 --- /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 000000000..c20358d82 --- /dev/null +++ b/ruff.toml @@ -0,0 +1,8 @@ +extend-exclude =[ + "src/build/fort_depend.py", + "src/adjoint/autoEdit/autoEdit*.py", + "src_cs/build/complexify.py", + "adflow/pyWeightAndBalance.py", + "adflow/pyWingCG.py", + "adflow/om_*.py", +]