Skip to content

Commit

Permalink
Merge branch 'main' into feature/implement-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol authored Sep 12, 2023
2 parents d5734bb + 5eef9a6 commit c53e07c
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ repos:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.7.0
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ hemispheres of a human brain.
Prerequisite
------------

Python 3.8 or higher.
Python 3.11 or higher.

Features
--------
Expand Down Expand Up @@ -63,9 +63,11 @@ Please check out [the examples directory.](https://github.com/lablup/callosum/tr
Development
-----------

Use the editable installation of Python setuptools.
Create a virtual environment or an isolated Python environment using your favorite tool.

Inside it, run editable installation as follows:

```console
$ pip install -U pip setuptools
$ pip install -U -e '.[dev,build,test,zeromq,redis,thrift,snappy]'
$ pip install -U -r requirements/dev.txt
```
1 change: 1 addition & 0 deletions examples/simple-client-thrift.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import textwrap

import thriftpy2 as thriftpy

from callosum.lower.zeromq import ZeroMQAddress, ZeroMQRPCTransport
from callosum.rpc import Peer, RPCUserError
from callosum.serialize import noop_deserializer, noop_serializer
Expand Down
24 changes: 18 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@ underlines = ["", "", ""]
name = "Miscellaneous"
showcontent = true

[tool.black]
[tool.ruff]
line-length = 85
src = ["src"]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
# "C", # flake8-comprehensions
# "B", # flake8-bugbear
]
ignore = ["E203","E731","E501"]

[tool.ruff.isort]
known-first-party = ["callosum"]
known-local-folder = ["src"]
split-on-trailing-comma = true

[tool.isort]
profile = "black"
line_length = 85
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
known_first_party = ["callosum"]
[tool.black]
line-length = 85
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def read_src_version():
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
"Topic :: Communications",
Expand Down

0 comments on commit c53e07c

Please sign in to comment.