From f3062e440a98f78c312d1a491849715bb3f34179 Mon Sep 17 00:00:00 2001 From: Omar Aljarrah <50204418+OmarAlJarrah@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:21:22 +0300 Subject: [PATCH] fix(github): Fix lint issues on publish-sources action. (#288) PR: https://github.com/ExpediaGroup/expediagroup-python-sdk/pull/288 --- .github/workflows/generator-publish-sources.yaml | 3 ++- .github/workflows/quality.yaml | 3 +-- pyproject.toml | 7 +++++++ 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generator-publish-sources.yaml b/.github/workflows/generator-publish-sources.yaml index 610f25cb..0170e4c4 100644 --- a/.github/workflows/generator-publish-sources.yaml +++ b/.github/workflows/generator-publish-sources.yaml @@ -46,7 +46,8 @@ jobs: pip3 install -r requirements-dev.txt isort release black release - docformatter --recursive --black --in-place --close-quotes-on-newline release + docformatter --check --config pyproject.toml release || true + docformatter --in-place --config pyproject.toml release || true - name: Create PR uses: peter-evans/create-pull-request@v5 with: diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index dc0bf72a..14666e3d 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -11,13 +11,12 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. - name: Quality Checks on: push jobs: flake8-lint: + name: Lint Validation runs-on: ubuntu-latest - name: Lint steps: - name: Check out source repository uses: actions/checkout@v4 diff --git a/pyproject.toml b/pyproject.toml index 217176e7..e5e37b4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,3 +4,10 @@ line-length = 160 [tool.isort] profile = "black" multi_line_output = 1 + +[tool.docformatter] +recursive = true +black = true +close-quotes-on-newline = true +blank = true +pre-summary-newline = true