-
-
Notifications
You must be signed in to change notification settings - Fork 40
chore: enhance developer tooling and configuration #894
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add 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.
Reviewer's GuideThis PR implements cross-editor and cross-platform consistency by introducing editor and Git attributes, integrates Prettier into pre-commit hooks alongside other fixes, standardizes YAML formatting in GitHub Actions workflows, updates VSCode settings and extensions, and applies uniform formatting and newline corrections across various config and documentation files. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…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.
Deploying tux with
|
| Latest commit: |
0a6a285
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://040c3ecf.tux-afh.pages.dev |
| Branch Preview URL: | https://refactor-dotfiles.tux-afh.pages.dev |
This PR enhances the developer experience by adding and improving configuration files:
Changes:
.editorconfigfor consistent coding style across editors.gitattributesfor consistent line endings across platforms.vscodedirectory from Prettier formattingBenefits:
Commits:
b9f1019: Update prettier config and VSCode settingsadf75ba: Apply consistent formatting and add missing newlines7e940d6: Add .editorconfig and update VSCode configuration49ae236: Add .gitattributes for consistent line endings19259ca: Update pre-commit hooks configurationNo breaking changes. All changes are focused on developer tooling and code quality improvements.
Summary by Sourcery
Apply consistent formatting and enhance developer tooling by adding new config files, updating pre-commit hooks, and standardizing styles across editors and CI workflows.
Enhancements: