Skip to content

Format and add linting rules/github action #88

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 2 commits into from
Jan 16, 2025

Conversation

jamshale
Copy link
Contributor

This adds lint rules to the server project. The same as in acapy projects. Most of the documentation is just generated by copilot and not super useful, but I still think it's good if more developers and work gets done on this project.

Basic github action on PR's.

Would recommend using a ruff extension for vscode or other ide when working in this project.

@jamshale jamshale marked this pull request as ready for review January 14, 2025 21:03
Comment on lines +47 to +63
lint.ignore = [
# Google Python Doc Style
"D203",
"D204",
"D213",
"D215",
"D400",
"D401",
"D404",
"D406",
"D407",
"D408",
"D409",
"D413",
"D202", # Allow blank line after docstring
"D104", # Don't require docstring in public package
]
Copy link
Contributor

Choose a reason for hiding this comment

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

How can I find more information about these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The D rules can be found in pydocstyle https://www.pydocstyle.org/en/2.1.1/error_codes.html

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://docs.astral.sh/ruff/rules/#pydocstyle-d ruff has an extensive list. It's probably the best for all the rules.

@PatStLouis PatStLouis merged commit 8207993 into decentralized-identity:main Jan 16, 2025
2 checks passed
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.

2 participants