Skip to content

Commit

Permalink
import to top
Browse files Browse the repository at this point in the history
  • Loading branch information
shenvitor committed Apr 25, 2024
1 parent 44c334f commit 35d37b0
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
"**/.cspell.json",
"**/Manifest.toml",
"**/Project.toml",
"*.ico",
"*.rst_t",
"*.svg",
".constraints/*.txt",
".editorconfig",
".gitignore",
Expand Down Expand Up @@ -92,6 +95,7 @@
"pathlib",
"permutate",
"Plotly",
"pypa",
"pyproject",
"pytest",
"PYTHONHASHSEED",
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,22 @@ jobs:
milestone:
if: startsWith(github.ref, 'refs/tags')
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v1
package-name:
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v1
pypi:
environment:
name: PyPI
url: https://pypi.org/p/${{ needs.package-name.outputs.name }}
if: startsWith(github.ref, 'refs/tags')
secrets: inherit
uses: ComPWA/actions/.github/workflows/publish-to-pypi.yml@v1
name: Publish to PyPI
needs:
- package-name
permissions:
id-token: write
runs-on: ubuntu-22.04
steps:
- uses: ComPWA/actions/build-pypi-distribution@v1
- uses: pypa/gh-action-pypi-publish@release/v1
push:
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
secrets: inherit
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ repos:
metadata.vscode
- repo: https://github.com/ComPWA/policy
rev: 0.3.0
rev: 0.3.6
hooks:
- id: check-dev-files
args:
Expand Down Expand Up @@ -104,7 +104,7 @@ repos:
hooks:
- id: toml-sort
args: [--in-place]
exclude: (?x)^(.*(Manifest|Project)\.toml)$
exclude: (?x)^(.*/Manifest\.toml|.*/Project\.toml)$

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.0
Expand Down
4 changes: 3 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ build:
python: "3.10"
jobs:
post_install:
- pip install -c .constraints/py3.10.txt -e .[doc]
- curl -LsSf https://astral.sh/uv/install.sh | sh
- |-
/home/docs/.cargo/bin/uv pip install --system -c .constraints/py3.10.txt -e .[doc]
- |
wget https://julialang-s3.julialang.org/bin/linux/x64/1.9/julia-1.9.2-linux-x86_64.tar.gz
- tar xzf julia-1.9.2-linux-x86_64.tar.gz
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"rewrap.wrappingColumn": 72
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.wordWrap": "on"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ split-on-trailing-comma = false
"C408",
"C90",
"D",
"E402",
"E703",
"F404",
"N802",
Expand Down

0 comments on commit 35d37b0

Please sign in to comment.