---
source: crates/ruff_linter/src/rules/pep8_naming/mod.rs
---
N806 Variable `Camel` in function should be lowercase
  --> N806.py:12:5
   |
10 |     GLOBAL = "bar"
11 |     lower = 0
12 |     Camel = 0
   |     ^^^^^
13 |     CONSTANT = 0
14 |     _ = 0
   |

N806 Variable `CONSTANT` in function should be lowercase
  --> N806.py:13:5
   |
11 |     lower = 0
12 |     Camel = 0
13 |     CONSTANT = 0
   |     ^^^^^^^^
14 |     _ = 0
   |

N806 Variable `Bad` in function should be lowercase
  --> N806.py:46:5
   |
45 | def model_assign() -> None:
46 |     Bad = apps.get_model("zerver", "Stream")  # N806
   |     ^^^
47 |     Attachment = apps.get_model("zerver", "Attachment")  # OK
48 |     Recipient = apps.get_model("zerver", model_name="Recipient")  # OK
   |

N806 Variable `Bad` in function should be lowercase
  --> N806.py:53:5
   |
51 |     from django.utils.module_loading import import_string
52 |
53 |     Bad = import_string("django.core.exceptions.ValidationError")  # N806
   |     ^^^
54 |     ValidationError = import_string("django.core.exceptions.ValidationError")  # OK
   |

N806 Variable `Bad` in function should be lowercase
  --> N806.py:56:5
   |
54 |     ValidationError = import_string("django.core.exceptions.ValidationError")  # OK
55 |
56 |     Bad = apps.get_model()  # N806
   |     ^^^
57 |     Bad = apps.get_model(model_name="Stream")  # N806
   |

N806 Variable `Bad` in function should be lowercase
  --> N806.py:57:5
   |
56 |     Bad = apps.get_model()  # N806
57 |     Bad = apps.get_model(model_name="Stream")  # N806
   |     ^^^
58 |
59 |     Address: Type = apps.get_model("zerver", variable)  # OK
   |

N806 Variable `ValidationError` in function should be lowercase
  --> N806.py:60:5
   |
59 |     Address: Type = apps.get_model("zerver", variable)  # OK
60 |     ValidationError = import_string(variable)  # N806
   |     ^^^^^^^^^^^^^^^
   |

N806 Variable `BadName` in function should be lowercase
  --> N806.py:65:14
   |
63 | def match_case_names(x):
64 |     match x:
65 |         case BadName:  # N806
   |              ^^^^^^^
66 |             ...
67 |         case int(GoodName):  # N806 (capture in class pattern)
   |

N806 Variable `GoodName` in function should be lowercase
  --> N806.py:67:18
   |
65 |         case BadName:  # N806
66 |             ...
67 |         case int(GoodName):  # N806 (capture in class pattern)
   |                  ^^^^^^^^
68 |             ...
69 |         case [*Rest]:  # N806 (star pattern)
   |

N806 Variable `Rest` in function should be lowercase
  --> N806.py:69:16
   |
67 |         case int(GoodName):  # N806 (capture in class pattern)
68 |             ...
69 |         case [*Rest]:  # N806 (star pattern)
   |                ^^^^
70 |             ...
71 |         case {"key": Val} as Alias:  # N806 (mapping value + as pattern)
   |

N806 Variable `Val` in function should be lowercase
  --> N806.py:71:22
   |
69 |         case [*Rest]:  # N806 (star pattern)
70 |             ...
71 |         case {"key": Val} as Alias:  # N806 (mapping value + as pattern)
   |                      ^^^
72 |             ...
73 |         case ok_name:  # OK
   |

N806 Variable `Alias` in function should be lowercase
  --> N806.py:71:30
   |
69 |         case [*Rest]:  # N806 (star pattern)
70 |             ...
71 |         case {"key": Val} as Alias:  # N806 (mapping value + as pattern)
   |                              ^^^^^
72 |             ...
73 |         case ok_name:  # OK
   |
