Skip to content

Commit

Permalink
Updates ruff lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Sep 18, 2024
1 parent b9f49d8 commit 9629f91
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 27 deletions.
12 changes: 6 additions & 6 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,16 @@
"metadata": {},
"outputs": [],
"source": [
"from ci_config import *\n",
"import ci_config\n",
"\n",
"from sonyci import SonyCi\n",
"\n",
"ci = SonyCi(\n",
" username=username,\n",
" password=password,\n",
" client_id=client_id,\n",
" client_secret=client_secret,\n",
" workspace_id=workspace_id,\n",
" username=ci_config.username,\n",
" password=ci_config.password,\n",
" client_id=ci_config.client_id,\n",
" client_secret=ci_config.client_secret,\n",
" workspace_id=ci_config.workspace_id,\n",
")"
]
},
Expand Down
28 changes: 7 additions & 21 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
name = 'sonyci'
description = 'A Sony Ci api client'
authors = [{ name = 'WGBH-MLA', email = '[email protected]' }]
dependencies = [
"pydantic~=2.9",
"requests-oauth2client~=1.6",
"loguru~=0.7",
]
dependencies = ["pydantic~=2.9", "requests-oauth2client~=1.6", "loguru~=0.7"]
requires-python = '>=3.8'
readme = 'README.md'
license = { text = 'MIT' }
Expand All @@ -25,15 +21,9 @@ test = [
"pytest-xdist~=3.6",
"urllib3~=1.26",
]
cli = [
"typer[all]~=0.12",
]
cli-ci = [
"typer~=0.12",
]
tui = [
"trogon~=0.5",
]
cli = ["typer[all]~=0.12"]
cli-ci = ["typer~=0.12"]
tui = ["trogon~=0.5"]
docs = [
"mkdocs~=1.6",
"mkdocs-material~=9.5",
Expand All @@ -51,11 +41,7 @@ build-backend = 'pdm.backend'
version = { source = 'file', path = 'sonyci/_version.py' }

[tool.pdm.dev-dependencies]
dev = [
"ruff~=0.6",
"black~=24.8",
"pre-commit~=3.5",
]
dev = ["ruff~=0.6", "black~=24.8", "pre-commit~=3.5"]

[tool.pytest.ini_options]
testpaths = ['tests']
Expand All @@ -64,10 +50,10 @@ markers = ['no_ci: marks tests to skip on CI']
[tool.coverage.run]
omit = ['tests/*']

[tool.ruff.flake8-quotes]
[tool.ruff.lint.flake8-quotes]
inline-quotes = 'single'

[tool.ruff]
[tool.ruff.lint]
select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
Expand Down

0 comments on commit 9629f91

Please sign in to comment.