Skip to content

Ignore linting the .build/ai directory#314

Draft
aluqmanj-ni wants to merge 1 commit into
ni:mainfrom
aluqmanj-ni:patch-1
Draft

Ignore linting the .build/ai directory#314
aluqmanj-ni wants to merge 1 commit into
ni:mainfrom
aluqmanj-ni:patch-1

Conversation

@aluqmanj-ni

@aluqmanj-ni aluqmanj-ni commented Jul 10, 2026

Copy link
Copy Markdown

Justification

Copilot creates ad-hoc scripts in the project's .build/ai directory. This is causing linters (ni-python-styleguide, flake8) to flag issues in these scripts when run in the project even though we aren't checking in that code.

Implementation

Ignore linting the .build/ai directory

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for contributing! 👋

# 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.

@aluqmanj-ni aluqmanj-ni changed the title Ignore documentation for AI scripts in config Ignore linting the .build/ai directory Jul 10, 2026
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.

3 participants