Skip to content

Commit 83e14c3

Browse files
committed
Convert to ruff for formatting
1 parent 6037cee commit 83e14c3

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,11 @@ Ready to contribute? Here's how to set up `cached-property` for local developmen
7070

7171
Now you can make your changes locally.
7272

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

7575
```bash
76-
$ pip install -U black
77-
$ black .
76+
$ pip install -U ruff
77+
$ ruff format .
7878
```
7979

8080
6. When you're done making changes, check that your changes pass the tests, including testing other Python versions with tox:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

77
A decorator for caching properties in classes.
88

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def read(fname):
2525
try:
2626
import wheel
2727
import twine
28-
except: # Yes, this is not how we usually do try/except
28+
except: # Yes, this is not how we usually do try/except
2929
raise ImportError('Run "pip install wheel twine"')
3030
os.system("python setup.py sdist bdist_wheel")
3131
os.system("twine upload dist/*")

tests/test_async_cached_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(self):
1818
self.cached_total = 0
1919
self.lock = Lock()
2020

21-
async def add_control(self): # noqa
21+
async def add_control(self): # noqa
2222
self.control_total += 1
2323
return self.control_total
2424

0 commit comments

Comments
 (0)