Skip to content

Commit

Permalink
Dev (#21)
Browse files Browse the repository at this point in the history
* style: ignore CHANGELOG in formatting

* fix: add release to CD action
  • Loading branch information
mdtanker committed Nov 22, 2023
1 parent e764b35 commit 8ad6482
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: release
name: CD

on:
workflow_dispatch:
pull_request:
push:
branches:
- main
Expand Down Expand Up @@ -85,3 +84,9 @@ jobs:

- name: Upload package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

# Upload to GitHub Releases on every release.
release-github:
name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.release.outputs.released == 'true'
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ exclude: |
docs/api/invert4geom.rst|
docs/api/invert4geom.synthetic.rst|
docs/api/invert4geom.utils.rst|
CHANGELOG.md|
)$
repos:
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ unfixable = [
"PD004", # Changes .notna to .notnull
"PD011", # Changes .values() to .to_numpy()
]
exclude = ["docs/index.md"]
exclude = ["docs/index.md", "CHANGELOG.md"]
line-length = 88 # Set the maximum line length to 88.
flake8-unused-arguments.ignore-variadic-names = true
isort.required-imports = ["from __future__ import annotations"]
Expand All @@ -195,7 +195,7 @@ extend-include = ["*.ipynb"]

[tool.pylint]
py-version = "3.8"
ignore-paths = [".*/_version.py"]
ignore-paths = [".*/_version.py", "CHANGELOG.md"]
reports.output-format = "colorized"
similarities.ignore-imports = "yes"
messages_control.disable = [
Expand Down

0 comments on commit 8ad6482

Please sign in to comment.