-
-
Notifications
You must be signed in to change notification settings - Fork 32
Update pre-commit to all files and Mypy setup #247
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
Ckk3
merged 28 commits into
strawberry-graphql:pre-commit-lint-and-format-update
from
Ckk3:run-precommit-in-all-files
May 24, 2025
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
97fcd53
Update pre-commit and mypy .ini just like the main strawberry project
Ckk3 1438dbf
add a lint error on purpose to test lint
Ckk3 fe06304
add a release md and add file attr to tmol pre-commit
Ckk3 02e8b96
fix test action to run when a PR is ready for review
Ckk3 dd930aa
test mappe
Ckk3 cc0f7bd
fix action
Ckk3 0eb03fc
continue with tests in lint in nox file
Ckk3 7779489
remove pydantic.mypy plugin
Ckk3 8183f72
made first lint ajustment, but still missing lint test
Ckk3 59891f5
add ruff and black to lint te
Ckk3 0bda534
Fix nox file and add ruff to pyptoject toml
Ckk3 e653367
fix poetry lock
Ckk3 18b1149
fix command to raise error
Ckk3 adf32a4
make ruff output errors
Ckk3 75c902d
bring back black to pre-commit
Ckk3 5ba4a2a
remove --diff from ruff because we want to run in all files, remove i…
Ckk3 a8ecbff
update pre-commit to ruff run lint and formatter
Ckk3 ca21f70
separate ruff lint from formater in noxfile
Ckk3 4e54534
remove test function from mapper
Ckk3 2092cc4
remove black and use only ruff
Ckk3 ee70dae
add lint tag to ruff format in nox
Ckk3 1960ed0
change test.yml to run lint and format divided
Ckk3 5ab92da
Run pre-commit in all files and made line-lenght 100
Ckk3 b0062eb
updated ruff check
Ckk3 c7bba33
update pyproject.toml
Ckk3 6683ab8
Made sourcery fixes
Ckk3 8062203
remove unecessary else
Ckk3 29f86c6
bring back session._session
Ckk3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
{ | ||
"allow": [ | ||
"black", | ||
"hook", | ||
"hooks", | ||
"failure", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[tool.ruff] | ||
extend = "../pyproject.toml" | ||
extend-ignore = [ | ||
"T201", | ||
] | ||
lint.extend-ignore = ["T201"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,5 +49,6 @@ cover/* | |
MANIFEST | ||
|
||
# Per-project virtualenvs | ||
venv*/ | ||
.venv*/ | ||
.conda*/ |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Release type: patch | ||
|
||
This release does not introduce any new features or bug fixes. It focuses solely on internal code quality improvements. | ||
|
||
Changes: | ||
- Added Mypy configuration aligned with the main Strawberry project. | ||
- Enforced type checking via CI to ensure consistency. | ||
- Ran pre-commit across all files to standardize formatting and follow the project's linting architecture. | ||
|
||
These changes aim to improve maintainability and ensure better development practices moving forward. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.