-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from dbluhm/chore/updates
Update dependencies and project tooling
- Loading branch information
Showing
15 changed files
with
989 additions
and
1,259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Code Quality Check | ||
|
||
"on": | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
format: | ||
name: Format and Lint Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
version: "0.4.3" | ||
args: 'format --check' | ||
- uses: chartboost/ruff-action@v1 | ||
with: | ||
version: "0.4.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook | ||
rev: v2.2.0 | ||
rev: v9.16.0 | ||
hooks: | ||
- id: commitlint | ||
stages: [commit-msg] | ||
args: ["--config", ".commitlint.config.js"] | ||
additional_dependencies: ['@commitlint/config-conventional'] | ||
- repo: https://github.com/psf/black | ||
rev: 23.3.0 | ||
additional_dependencies: ["@commitlint/config-conventional"] | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: v0.4.3 | ||
hooks: | ||
- id: black | ||
- id: ruff | ||
stages: [commit] | ||
- repo: https://github.com/pycqa/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
args: [--fix, --exit-non-zero-on-fix] | ||
- id: ruff-format | ||
stages: [commit] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,37 @@ description = "Websocket relay service for use with clustered mediators" | |
authors = [ | ||
"Sam Curren <[email protected]>", | ||
"Colton Wolkins (Indicio work address) <[email protected]>", | ||
"Micah Peltier <[email protected]>", | ||
"Daniel Bluhm <[email protected]>", | ||
"Micah Peltier <[email protected]>", | ||
"Daniel Bluhm <[email protected]>", | ||
] | ||
readme = "README.md" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.8.1" | ||
aiohttp = "^3.8.4" | ||
aiohttp = "^3.9.4" | ||
sanic = "^22.12.0" | ||
|
||
[tool.poetry.group.dev.dependencies] | ||
websocket = "^0.2.1" | ||
black = "^22" | ||
flake8 = "^5" | ||
ruff = "^0.4.3" | ||
pre-commit = "^3.2.2" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
|
||
[tool.ruff] | ||
line-length = 90 | ||
extend-exclude = ["locust"] | ||
|
||
[tool.ruff.lint] | ||
select = ["E", "F", "C", "D"] | ||
ignore = [ | ||
# Google Python Doc Style | ||
"D203", "D204", "D213", "D215", "D400", "D401", "D404", "D406", "D407", | ||
"D408", "D409", "D413", | ||
] | ||
per-file-ignores = {"**/{tests}/*" = ["F841", "D", "E501"]} | ||
|
||
[tool.ruff.format] | ||
docstring-code-format = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"""SocketDock.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters