diff --git a/.copier-answers.yaml b/.copier-answers.yaml index b713360..235cf11 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: d5da73e +_commit: '4372075' _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: rust diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4ec28b7..a1f474d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: diff --git a/Cargo.lock b/Cargo.lock index 84329b8..5f1657e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -25,9 +25,9 @@ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "cc" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630" +checksum = "50a649af8a827553c29fb0cb4bd4a6f1a0dd695bd3232b9bc98bd9c8a3ffbb8b" dependencies = [ "find-msvc-tools", "shlex", @@ -153,9 +153,9 @@ dependencies = [ [[package]] name = "inventory" -version = "0.3.24" +version = "0.3.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4f0c30c76f2f4ccee3fe55a2435f691ca00c0e4bd87abe4f4a851b1d4dac39b" +checksum = "6928282826c822ad91bf1c9a1cb90a30ba1c26770749929b4656cd6be829cd7c" dependencies = [ "rustversion", ] @@ -341,9 +341,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.6" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "d62a2e0561533f2ca2561d0cf27fd9fedb640a1bf2616ff5d5c80d99017faadc" dependencies = [ "proc-macro2", "quote", @@ -394,7 +394,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.7", "wasm-bindgen-shared", ] diff --git a/Makefile b/Makefile index f958d84..599cd7c 100644 --- a/Makefile +++ b/Makefile @@ -44,8 +44,8 @@ lint-rs: ## run rust linter make -C rust lint lint-docs: ## lint docs with mdformat and codespell - python -m mdformat --check README.md - python -m codespell_lib README.md + python -m mdformat --check README.md $(wildcard docs/src) + python -m codespell_lib README.md $(wildcard docs/src) lint: lint-rs lint-py lint-docs ## run project linters @@ -61,8 +61,8 @@ fix-rs: ## fix rust formatting make -C rust fix fix-docs: ## autoformat docs with mdformat and codespell - python -m mdformat README.md - python -m codespell_lib --write README.md + python -m mdformat README.md $(wildcard docs/src) + python -m codespell_lib --write README.md $(wildcard docs/src) fix: fix-rs fix-py fix-docs ## run project autoformatters @@ -80,7 +80,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/pyproject.toml b/pyproject.toml index d6626c5..af409fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,6 +45,7 @@ develop = [ "hatch-rs", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -79,7 +80,8 @@ tag = false commit_args = "-s" pre_commit_hooks = [ "cargo update --workspace", - "git add Cargo.lock", + "cargo update --manifest-path rust/Cargo.toml --workspace", + "git add Cargo.lock rust/Cargo.lock", ] [[tool.bumpversion.files]] @@ -130,7 +132,7 @@ skip = "*win32 *arm64" [tool.coverage.run] branch = true omit = [ - "finance_dates/tests/integration/", + "finance_dates/tests/integration/*", ] [tool.coverage.report] @@ -142,13 +144,6 @@ exclude_also = [ ignore_errors = true fail_under = 50 -[tool.hatch.build] -artifacts = [ - "finance_dates/*.dll", - "finance_dates/*.dylib", - "finance_dates/*.so", -] - [tool.hatch.build.sources] src = "/" @@ -166,11 +161,20 @@ packages = [ "Cargo.lock", ] exclude = [ + "*.dll", + "*.dylib", + "*.so", + "*.pyd", "rust/Makefile", "target", ] [tool.hatch.build.targets.wheel] +artifacts = [ + "finance_dates/*.dll", + "finance_dates/*.dylib", + "finance_dates/*.so", +] packages = [ "finance_dates", ] diff --git a/rust/Cargo.lock b/rust/Cargo.lock index c924962..52afc4d 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -25,9 +25,9 @@ checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" [[package]] name = "cc" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630" +checksum = "50a649af8a827553c29fb0cb4bd4a6f1a0dd695bd3232b9bc98bd9c8a3ffbb8b" dependencies = [ "find-msvc-tools", "shlex", @@ -253,9 +253,9 @@ dependencies = [ [[package]] name = "syn" -version = "3.0.6" +version = "3.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "d62a2e0561533f2ca2561d0cf27fd9fedb640a1bf2616ff5d5c80d99017faadc" dependencies = [ "proc-macro2", "quote", @@ -300,7 +300,7 @@ dependencies = [ "bumpalo", "proc-macro2", "quote", - "syn 3.0.6", + "syn 3.0.7", "wasm-bindgen-shared", ]