Skip to content
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

Python files are missing Copyright headers #292

Open
darthtrevino opened this issue Oct 2, 2024 · 0 comments
Open

Python files are missing Copyright headers #292

darthtrevino opened this issue Oct 2, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation python Pull requests that update Python code

Comments

@darthtrevino
Copy link
Member

If we enable header-checking in our Python files, we get a lot of linter errors. This should be fixed and part of our standard linting process.

Relevant Ruleset: https://docs.astral.sh/ruff/rules/#flake8-copyright-cpy

To enable this, we would add "CPY" to the selected ruleset in our ruff.toml file, and fix all issues that arise from this.

The following header text will resolve this:
# Copyright (c) 2024 Microsoft Corporation.

If we want to customize this header text, there is a setting for that here:
https://docs.astral.sh/ruff/settings/#lint_flake8-copyright_notice-rgx

@darthtrevino darthtrevino added documentation Improvements or additions to documentation python Pull requests that update Python code labels Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant