Skip to content

Commit

Permalink
Exclude docs from lint checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Oct 3, 2024
1 parent fba7884 commit 40f6774
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ documentation = 'https://WGBH-MLA.github.io/chowda/'
repository = 'https://github.com/WGBH-MLA/chowda'

[project.optional-dependencies]
production = [
"uvicorn[standard]~=0.31",
"gunicorn~=23.0",
]
production = ["uvicorn[standard]~=0.31", "gunicorn~=23.0"]
test = [
"factory-boy~=3.3",
"pytest~=8.3",
Expand All @@ -52,13 +49,8 @@ test = [
"pytest-asyncio~=0.24",
"trio~=0.26",
]
locust = [
"locust~=2.25",
"pydantic-factories~=1.17",
]
development = [
"kubernetes~=31.0",
]
locust = ["locust~=2.25", "pydantic-factories~=1.17"]
development = ["kubernetes~=31.0"]

[tool.black]
extend-exclude = 'migrations'
Expand All @@ -70,33 +62,33 @@ omit = ['tests/*']
testpaths = ['tests', 'docs']

[tool.ruff]
extend-exclude = ['migrations']
extend-exclude = ['migrations', 'docs']

[tool.ruff.format]
quote-style = 'single'

[tool.lint]
ignore = ['Q000']
select = [
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'B', # flake8-bugbear
'C4', # flake8-comprehensions
'C90', # mccabe
'E', # pycodestyle errors
'E', # pycodestyle errors
'ERA', # eradicate
'F', # pyflakes
'F', # pyflakes
# 'I', # isort
'INT', # flake8-gettext
'N', # pep8-naming
'N', # pep8-naming
'PIE', # flake8-pie,
'PLC', # pylint - convention
'PLE', # pylint - error
'PLW', # pylint - warning
'Q', # flake8-quotes
'Q', # flake8-quotes
'RET', # flake8-return,
'RUF', # Ruff-specific rules
'SIM', # flake8-simplify
'UP', # pyupgrade
'W', # pycodestyle warnings
'UP', # pyupgrade
'W', # pycodestyle warnings

]

Expand All @@ -107,12 +99,7 @@ version = { source = 'file', path = 'chowda/_version.py' }
includes = []

[tool.pdm.dev-dependencies]
dev = [
"uvicorn~=0.31",
"black~=24.8",
"ruff~=0.6",
"pre-commit~=3.5",
]
dev = ["uvicorn~=0.31", "black~=24.8", "ruff~=0.6", "pre-commit~=3.5"]
docs = [
"mkdocs~=1.6",
"mkdocs-material~=9.5",
Expand Down

0 comments on commit 40f6774

Please sign in to comment.