OS dependent issues when combining docformatter and this hook

Open
#96 4 comments 1 reaction 1 assignee View on GitHub

@klmcadams is already working on this.

Since Nov 17, 2023.

Assessment

This issue has not been assessed yet.

Description

Observed in https://github.com/ansys/pyansys-geometry and https://github.com/ansys/pyadditive

When running on Windows both hooks combined, no issues rise. However, docformatter on Linux detects that no extra line is needed in between module docstring and license header. And then our hook adds it back again.

I think there shouldn't be an extra line but please try to solve this behavior.

Dominant language
Python
Stars
5
Forks
1
Avg merge
1h 47m
Merged PRs (30d)
7

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ansys/pre-commit-hooks

All issues in ansys/pre-commit-hooks

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.