-
Notifications
You must be signed in to change notification settings - Fork 0
Add a parameter for custom Ruff ignores #42
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -78,6 +78,9 @@ find = {} # Scan the project directory with the default parameters | |||||||||||||
| exclude = [ | ||||||||||||||
| ".git", | ||||||||||||||
| "docs", | ||||||||||||||
| {%- for key in ruff_ignore.split(',') %} | ||||||||||||||
| "{{ key.strip() }}", | ||||||||||||||
|
||||||||||||||
| ".git", | |
| "docs", | |
| {%- for key in ruff_ignore.split(',') %} | |
| "{{ key.strip() }}", | |
| {%- for key in ruff_ignore.split(',') %} | |
| "{{ key.strip() }}", |
why not to define all excluedes with the parameter, this would make it more flexible.
sorry, I think I did not see it ealier.
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.
Oh, true, thanks! I didn't notice that either
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -101,6 +101,7 @@ def test_content_contributing(default_project, desired): | |||||
| 'Programming Language :: Python :: 3.13', | ||||||
| 'Programming Language :: Python :: 3.14', | ||||||
| 'Tracker = "https://github.com/pyfar/my_project/issues"', | ||||||
| '"docs",\n "examples/",', | ||||||
|
||||||
| '"docs",\n "examples/",', | |
| '".git",\n "docs/",', |
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.