-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switches to pyproject * Deploy on master * Ruffs the codebase * Removal of format * Removes % format * Canonicalizes docstrings * Removes versioneer * Updates to fully using hatch, removes old setup files * hatch version stubs * Updates for hatch vcs * Updates test * Additional ruff options * Onem ore ruff flag * Moves workflows to main branch * Adds mypy overrides * MyPy fixes * Removes old ordered dict
- Loading branch information
Showing
39 changed files
with
342 additions
and
2,878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,9 @@ name: Linting | |
|
||
on: | ||
push: | ||
branches: master | ||
branches: main | ||
pull_request: | ||
branches: master | ||
branches: main | ||
|
||
jobs: | ||
mypy: | ||
|
@@ -46,26 +46,37 @@ jobs: | |
run: | | ||
mypy opt_einsum | ||
black: | ||
name: Black | ||
ruff: | ||
name: Ruff | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.12] | ||
environment: ["min-deps"] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Python Setup | ||
uses: actions/[email protected] | ||
- uses: conda-incubator/setup-miniconda@v3 | ||
with: | ||
python-version: 3.8 | ||
python-version: ${{ matrix.python-version }} | ||
mamba-version: "*" | ||
channel-priority: true | ||
activate-environment: test | ||
environment-file: devtools/conda-envs/${{ matrix.environment }}-environment.yaml | ||
|
||
- name: Create Environment | ||
shell: bash | ||
- name: Environment Information | ||
shell: bash -l {0} | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install black | ||
conda info | ||
conda list | ||
conda config --show-sources | ||
conda config --show | ||
- name: Lint | ||
shell: bash | ||
shell: bash -l {0} | ||
run: | | ||
set -e | ||
black opt_einsum --check | ||
make format-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.