From 57bd6f0082fed02258e73f5dec926a94bdd7d7f0 Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Wed, 20 Aug 2025 16:50:20 -0400 Subject: [PATCH 1/2] Test ruff formatting and linting --- .github/workflows/format-and-lint.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/format-and-lint.yaml 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 From c21366617a26c019d970c10eb68e7369f14194e3 Mon Sep 17 00:00:00 2001 From: Alasdair Gray Date: Wed, 20 Aug 2025 16:51:08 -0400 Subject: [PATCH 2/2] Convert local flake8 config to ruff --- ruff.toml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 ruff.toml 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", +]