Skip to content

Commit

Permalink
Convert to ruff for formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pydanny committed Oct 25, 2024
1 parent 6037cee commit 83e14c3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ Ready to contribute? Here's how to set up `cached-property` for local developmen

Now you can make your changes locally.

5. Clean up the formatting (must be running at least Python 3.6):
5. Clean up the formatting (must be running at least Python 3.8):

```bash
$ pip install -U black
$ black .
$ pip install -U ruff
$ ruff format .
```

6. When you're done making changes, check that your changes pass the tests, including testing other Python versions with tox:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Github Actions status](https://github.com/pydanny/cached-property/workflows/Python%20package/badge.svg)](https://github.com/pydanny/cached-property/actions)
[![PyPI](https://img.shields.io/pypi/v/cached-property.svg)](https://pypi.python.org/pypi/cached-property)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![Code style: ruff](https://img.shields.io/badge/code%20style-ruff-000000.svg)](https://github.com/astral-sh/ruff)

A decorator for caching properties in classes.

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def read(fname):
try:
import wheel
import twine
except: # Yes, this is not how we usually do try/except
except: # Yes, this is not how we usually do try/except
raise ImportError('Run "pip install wheel twine"')
os.system("python setup.py sdist bdist_wheel")
os.system("twine upload dist/*")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_async_cached_property.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self):
self.cached_total = 0
self.lock = Lock()

async def add_control(self): # noqa
async def add_control(self): # noqa
self.control_total += 1
return self.control_total

Expand Down

0 comments on commit 83e14c3

Please sign in to comment.