huggingface / tokenizers

💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
https://huggingface.co/docs/tokenizers
Apache License 2.0
8.68k stars 745 forks source link

Add `.editorconfig` and `rustfmt.toml` for Consistent Code Formatting #1508

Closed tal7aouy closed 1 month ago

tal7aouy commented 2 months ago

This PR introduces two configuration files, .editorconfig and rustfmt.toml, to enforce consistent code formatting across the project. These additions aim to standardize indentation, line endings, maximum line length, and other formatting rules for Rust and Python files, ensuring the codebase is uniform and easier to maintain.

Key Changes

.editorconfig Configuration

The .editorconfig file includes the following rules:

rustfmt.toml Configuration

The rustfmt.toml file includes the following rules:

Rationale

These configurations promote consistent code formatting, reducing inconsistencies across the codebase. By following these standards, the team can ensure that code reviews and merges proceed smoothly, minimizing formatting-related issues.

Instructions for Team Members

ArthurZucker commented 3 weeks ago

hey! Sorry not super interested at the moment 😉