Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ni_python_styleguide/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ per-file-ignores=
tests/**/test_*.py,tests/test_*.py:D100,D103,D102
# We don't need to document every Sphinx config
docs/conf.py:D1
# We don't need to document AI scripts
.build/ai/**:D1

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm not sure we want to do this. If it gets checked into source, it should be documented.

@bkeryan bkeryan Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does nps honor .gitignore? is this "AI" stuff typically in .gitignore?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

is this "AI" stuff typically in .gitignore?

Yes, the .build dir is in .gitignore

I've created another PR to update our skills to create AI scripts in <repo-root>/.build/ai directory. If that change is approved, this will not be required.

@bkeryan bkeryan Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If nps doesn't honor .gitignore, updating it to do so would benefit human developers too.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It does not. And while that may be useful, we should include a config option to explicitly include dirs / patterns if we choose to add that.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What do other linters do?

# __init__.py files routinely import other modules without directly using them
__init__.py:F401

Expand Down
Loading