chore: enhance developer tooling and configuration by kzndotsh · Pull Request #894 · allthingslinux/tux
added 5 commits
June 15, 2025 01:36Add new hooks for end-of-file fixing and trailing whitespace removal, excluding Markdown files to preserve line breaks. Integrate Prettier for consistent formatting of YAML and JSON files, aligning with .editorconfig settings. Update Ruff version to v0.11.13 for consistency across linting and formatting. Expand exclusion patterns to include node_modules and .venv directories, preventing unnecessary checks in these areas. These changes improve code quality and consistency by automating formatting and ensuring adherence to style guidelines, while also enhancing performance by excluding irrelevant directories.
…ings and file handling Introduce a .gitattributes file to ensure consistent line endings across different operating systems, which helps prevent unnecessary diffs due to line ending differences. Define handling for various file types, including text, binary, and large files, to optimize Git's behavior and improve collaboration. This setup also includes export ignores for specific directories and files, enhancing repository cleanliness and efficiency.
Add an .editorconfig file to enforce consistent coding style across different editors and IDEs. This helps maintain uniform code formatting, making collaboration easier and reducing formatting-related issues. chore: update VSCode settings and extensions for better integration Add EditorConfig extension to recommended VSCode extensions to ensure developers have the necessary tools for consistent code formatting. Update VSCode settings to align with .editorconfig rules, such as setting end-of-line characters, inserting final newlines, and trimming trailing whitespace. This ensures that the development environment is configured to automatically adhere to the project's coding standards.
Ensure consistent formatting across various configuration and workflow files by adjusting indentation, spacing, and quotations. Add missing newlines at the end of files to comply with POSIX standards and improve compatibility with tools that expect newline-terminated files. These changes enhance readability, maintainability, and conformity to best practices, reducing potential issues with file parsing and version control diffs.
…y and adjust print width Exclude the .vscode directory from Prettier formatting to prevent unnecessary formatting of editor-specific settings. Adjust the print width to 80 to enforce shorter line lengths, improving readability, especially for arrays. style(vscode): reformat settings.json for better readability Reformat the "python.analysis.exclude" array in settings.json to have each entry on a new line, enhancing readability and consistency with other JSON formatting practices.
…chema glob pattern Add binary attribute for media files (*.mp4, *.mov, *.avi) to ensure they are treated as binary files. Remove Git LFS configuration for these media files as they are now handled as binary. Correct the glob pattern for Prisma schema files to include all schema files in subdirectories, ensuring consistent line endings. This improves file handling and ensures correct processing of media and schema files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters