Skip to content

Commit

Permalink
Use.gitignore to allow ruff to skip over linting autogenerated file (
Browse files Browse the repository at this point in the history
…#19726)

* fix ci lint for ddev

* create gitignore file

* remove duplicate entry

* remove entry

* remove global ignore
  • Loading branch information
steveny91 authored Feb 27, 2025
1 parent f67b547 commit 6d883a2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,4 @@ benchmark_*.svg
.kube

## Direnv
.envrc

# Auto-generated during builds
/ddev/src/ddev/_version.py
.envrc
2 changes: 2 additions & 0 deletions ddev/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto-generated during builds
/src/ddev/_version.py
3 changes: 1 addition & 2 deletions ddev/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ ignore = [
"B027",
# Ignore McCabe complexity
"C901",
"I001",
]
unfixable = [
# Don't touch unused imports
Expand All @@ -121,4 +120,4 @@ ban-relative-imports = "all"

[tool.ruff.lint.per-file-ignores]
#Tests can use assertions and relative imports
"**/tests/**/*" = ["I252"]
"**/tests/**/*" = ["I252"]

0 comments on commit 6d883a2

Please sign in to comment.