Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
129 changes: 0 additions & 129 deletions .github/workflows/python-release-conda.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/python-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
platform: linux
- os: windows
ls: dir
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: windows
ls: dir
target: x86_64
Expand All @@ -54,7 +54,7 @@ jobs:
# interpreter: 3.11 3.12
- os: macos
target: aarch64
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.8 pypy3.9 pypy3.10
interpreter: 3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10
- os: ubuntu
platform: linux
target: i686
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4


- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -76,7 +77,7 @@ jobs:


- name: Cache Cargo Registry
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
Expand Down Expand Up @@ -107,7 +108,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: audit
args: -D warnings -f ./bindings/python/Cargo.lock
args: -D warnings -f ./bindings/python/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014

- name: Install
working-directory: ./bindings/python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: audit
args: -D warnings -f ./tokenizers/Cargo.lock
args: -D warnings -f ./tokenizers/Cargo.lock --ignore RUSTSEC-2024-0436 --ignore RUSTSEC-2025-0014

# Verify that Readme.md is up to date.
- name: Make sure, Readme generated from lib.rs matches actual Readme
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/trufflehog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@ jobs:
with:
fetch-depth: 0
- name: Secret Scanning
uses: trufflesecurity/trufflehog@main
uses: trufflesecurity/trufflehog@853e1e8d249fd1e29d0fcc7280d29b03df3d643d
with:
# exclude buggy postgres detector that is causing false positives and not relevant to our codebase
extra_args: --results=verified,unknown --exclude-detectors=postgres
2 changes: 1 addition & 1 deletion bindings/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Nicolas Patry <[email protected]>"]
edition = "2021"
name = "node"
version = "0.21.0-dev.0"
version = "0.21.2-dev.0"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tokenizers-python"
version = "0.21.0-dev.0"
version = "0.21.2-dev.0"
authors = ["Anthony MOI <[email protected]>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion tokenizers/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
authors = ["Anthony MOI <[email protected]>", "Nicolas Patry <[email protected]>"]
edition = "2018"
name = "tokenizers"
version = "0.21.0-dev.0"
version = "0.21.2-dev.0"
homepage = "https://github.com/huggingface/tokenizers"
repository = "https://github.com/huggingface/tokenizers"
documentation = "https://docs.rs/tokenizers/"
Expand Down
2 changes: 1 addition & 1 deletion tokenizers/src/processors/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ impl TemplateProcessingBuilder {
}

fn validate(&self) -> std::result::Result<(), String> {
let pair_has_both = self.pair.as_ref().map_or(true, |pair| {
let pair_has_both = self.pair.as_ref().is_none_or(|pair| {
let mut has_a = false;
let mut has_b = false;
for piece in &pair.0 {
Expand Down
Loading