Skip to content

Commit

Permalink
fix(github): Fix lint issues on publish-sources action. (#288)
Browse files Browse the repository at this point in the history
PR: #288
  • Loading branch information
OmarAlJarrah authored Nov 29, 2023
1 parent 2bf6c3a commit f3062e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/generator-publish-sources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f3062e4

Please sign in to comment.