diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ef981d9b..2c61284c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos, windows] - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, '3.10', '3.11'] name: ${{ matrix.os }} - py${{ matrix.python-version }} runs-on: ${{ matrix.os }}-latest defaults: diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 1c8948fa..284e2b8c 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -15,10 +15,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Setup Python 3.9 + - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.10' architecture: 'x64' - name: Install dependencies run: | @@ -34,11 +34,6 @@ jobs: options: "--check --verbose" - name: Run codespell uses: codespell-project/actions-codespell@master - with: - check_filenames: true - check_hidden: true - skip: './.git,./build,./.mypy_cache,./.pytest_cache' - ignore_words_file: ./.codespellignore - name: Run pydocstyle run: pydocstyle . - name: Run bibclean diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index a3705da8..2fe4b3e0 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -20,10 +20,10 @@ jobs: uses: actions/checkout@v3 with: path: ./main - - name: Setup Python 3.9 + - name: Setup Python uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: '3.10' architecture: 'x64' - name: Install package run: | diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9306ae86..8e95a02c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,10 +11,10 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Setup Python 3.9 + - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.9' + python-version: '3.10' architecture: 'x64' - name: Install dependencies run: | diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index deb91804..0c98bd94 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -21,7 +21,7 @@ jobs: fail-fast: false matrix: os: [ubuntu, macos, windows] - python-version: [3.8, 3.9, "3.10", "3.11"] + python-version: [3.8, 3.9, '3.10', '3.11'] name: ${{ matrix.os }} - py${{ matrix.python-version }} runs-on: ${{ matrix.os }}-latest defaults: @@ -44,11 +44,10 @@ jobs: - name: Run pytest run: pytest template --cov=template --cov-report=xml --cov-config=pyproject.toml - name: Upload to codecov - if: ${{ matrix.os == 'ubuntu' && matrix.python-version == 3.9 }} uses: codecov/codecov-action@v3 with: files: ./coverage.xml flags: unittests # optional name: codecov-umbrella # optional - fail_ci_if_error: true # optional (default = false) + fail_ci_if_error: false # optional (default = false) verbose: true # optional (default = false) diff --git a/pyproject.toml b/pyproject.toml index 125b0fb5..7ef355e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ doc = [ style = [ 'bibclean', 'black', - 'codespell', + 'codespell[toml]', 'isort', 'pydocstyle[toml]', 'ruff', @@ -108,6 +108,11 @@ extend-exclude = ''' ) ''' +[tool.codespell] +builtin = 'clear,rare,names,code' +ignore-words = '.codespellignore' +skip = './build,./doc/references.bib,./*.egg-info,./.*' + [tool.isort] profile = 'black' multi_line_output = 3