From 7f12d6f7629028641de11416d06078ab867982e1 Mon Sep 17 00:00:00 2001 From: Jirka Date: Sat, 30 Sep 2023 22:35:33 +0200 Subject: [PATCH] fixing --- .github/actions/pkg-install/action.yml | 4 ++-- .github/scripts/find-unused-caches.txt | 2 +- .pre-commit-config.yaml | 2 +- pyproject.toml | 25 ++++++++++++------------- 4 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.github/actions/pkg-install/action.yml b/.github/actions/pkg-install/action.yml index e9c87012..23f8ed3f 100644 --- a/.github/actions/pkg-install/action.yml +++ b/.github/actions/pkg-install/action.yml @@ -31,7 +31,7 @@ runs: - name: Install package (wheel) working-directory: pypi/ run: | - # TODO: reset env / conside add as conda + # TODO: reset env / consider add as conda pip install *.whl ${{ inputs.pip-flags }} python -c "import ${{ inputs.import-name }} as pkg; print(f'version: {pkg.__version__}')" pip list @@ -46,7 +46,7 @@ runs: - name: Install package (archive) working-directory: pypi/ run: | - # TODO: reset env / conside add as conda + # TODO: reset env / consider add as conda pip install *.tar.gz ${{ inputs.pip-flags }} python -c "import ${{ inputs.import-name }} as pkg; print(f'version: {pkg.__version__}')" pip list diff --git a/.github/scripts/find-unused-caches.txt b/.github/scripts/find-unused-caches.txt index 5c5803b9..004fd96d 100644 --- a/.github/scripts/find-unused-caches.txt +++ b/.github/scripts/find-unused-caches.txt @@ -1,4 +1,4 @@ -# Requirements for running equally named scrit, +# Requirements for running equally named script, # having it in extra file to prevent version discrepancy if hardcoded in workflow fire diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f41b7b15..6b7391fe 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,7 +33,7 @@ repos: hooks: - id: codespell additional_dependencies: [tomli] - args: ["--write-changes"] # uncomment if you want to get automatic fixing + #args: ["--write-changes"] # uncomment if you want to get automatic fixing - repo: https://github.com/psf/black rev: 23.7.0 diff --git a/pyproject.toml b/pyproject.toml index 5e2ca4fe..6fd1a773 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,6 @@ norecursedirs = [ "build", "docs", ] - addopts = [ "--strict-markers", "--doctest-modules", @@ -39,28 +38,28 @@ exclude_lines = [ "pragma: no cover", "pass", ] - [tool.coverage.run] parallel = true concurrency = "thread" relative_files = true + +[tool.codespell] +# Todo: enable also python files in a next step +skip = '*.py' +quiet-level = 3 +# comma separated list of words; waiting for: +# https://github.com/codespell-project/codespell/issues/2839#issuecomment-1731601603 +# also adding links until they ignored by its: nature +# https://github.com/codespell-project/codespell/issues/2243#issuecomment-1732019960 +ignore-words-list = "te, compiletime" + + [tool.black] # https://github.com/psf/black line-length = 120 exclude = "(.eggs|.git|.hg|.mypy_cache|.venv|_build|buck-out|build|dist)" -[tool.isort] -known_first_party = [ - "lightning_utilities", - "tests" -] -skip_glob = [] -profile = "black" -line_length = 120 -order_by_type = false -multi_line_output = 3 -include_trailing_comma = true [tool.mypy] files = [