Skip to content

Fix editorconfig check for files that don't contain python code #1226

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

Merged
merged 7 commits into from
Aug 12, 2025

Conversation

kingbuzzman
Copy link
Member

@kingbuzzman kingbuzzman commented Aug 12, 2025

Fixes small issue caused by #1225

tox.ini is not inside of paths: pytest_django, pytest_django_test, tests -- so it was never checked, as well as all the other files in the root and .github.. anyway, this is more correct.

@kingbuzzman kingbuzzman changed the title Test bad char Fix editorconfig check for files that don't contain python code Aug 12, 2025
@kingbuzzman kingbuzzman marked this pull request as ready for review August 12, 2025 18:52
@kingbuzzman kingbuzzman requested a review from Copilot August 12, 2025 18:52
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the editorconfig checker configuration to properly validate all project files, not just Python source directories. The issue was that the ec command was only checking specific Python source paths, missing configuration files in the project root and .github directory.

  • Updated the editorconfig checker to scan the entire project directory (.) instead of just Python source directories
  • Added exclusions for build artifacts and cache directories to prevent false positives

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tox.ini Changed editorconfig checker command to scan entire project directory
.editorconfig-checker.json Added exclusions for build artifacts and cache directories

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@kingbuzzman kingbuzzman merged commit 9c97a67 into main Aug 12, 2025
21 checks passed
@kingbuzzman kingbuzzman deleted the dev/test-bad-char branch August 12, 2025 18:55
@kingbuzzman
Copy link
Member Author

PS. the time difference between . and pytest_django pytest_django_test tests is completely indistinguishable

New run 15s
Old run 14s

Yet they both took 38s to finish. -- completely negligible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant