sourcery icon indicating copy to clipboard operation
sourcery copied to clipboard

Instant AI code reviews

Results 146 sourcery issues
Sort by recently updated
recently updated
newest added

### Checklist - [x] I have searched the [Sourcery documentation](https://docs.sourcery.ai/) for the issue, and found nothing - [x] I have read the common issues and fixes listed in the [Sourcery...

bug

### Checklist - [x] I have searched the [Sourcery documentation](https://docs.sourcery.ai/) for the issue, and found nothing - [x] I have checked there are no open [bugs](https://github.com/sourcery-ai/sourcery/issues?q=label%3Abug) referencing the same bug...

bug

### Checklist - [x] I have searched the [Sourcery documentation](https://docs.sourcery.ai/) for the issue, and found nothing - [x] I have read the common issues and fixes listed in the [Sourcery...

bug

### Checklist - [X] This is a new feature, not a refactoring suggestion - [X] I have checked for this feature in the [Sourcery documentation](https://docs.sourcery.ai/) - [X] I have checked...

enhancement

### Description Consider the following code: ```def get_best_order(nanoseconds: float) -> str: if nanoseconds < 1000: return "nanoseconds" if nanoseconds < 1000_000: return "microseconds" if nanoseconds < 1000_000_000: return "milliseconds" return...

enhancement

### Checklist - [ x ] This is a new feature, not a refactoring suggestion - [ x ] I have checked for this feature in the [Sourcery documentation](https://docs.sourcery.ai/) -...

enhancement

### Description I would like sourcery not to be in my face in my code all the time. given the example below : ![image](https://github.com/sourcery-ai/sourcery/assets/981654/1158c2f9-bcfc-4574-945f-0a9814775047) 1. this _is_ a test -...

enhancement

Sourcery wants to refactor `d = d | {"add": "this"}` into `d |= {"add": "this"}`, but the two are not equivalent. The latter actually mutates d, while the first creates...

bug
next release

### Checklist - [x] I have searched the [Sourcery documentation](https://docs.sourcery.ai/) for the issue, and found nothing - [x] I have checked there are no open [bugs](https://github.com/sourcery-ai/sourcery/issues?q=label%3Abug) referencing the same bug...

enhancement

### Checklist - [x] This is a new feature, not a refactoring suggestion - [x] I have checked for this feature in the [Sourcery documentation](https://docs.sourcery.ai/) - [x] I have checked...

enhancement