Skip to content

Commit

Permalink
update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycorletti committed Feb 6, 2024
1 parent e2047f9 commit 504ceb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
15 changes: 9 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ sources = ["snok", "tests"]

[tool.ruff]
line-length = 88
include = ["*.py"]
exclude = ["dist", "build", ".venv", "snok/templates/*"]
target-version = "py311"

[tool.ruff.lint]
ignore = [
"D10",
"D203",
Expand All @@ -74,10 +79,11 @@ ignore = [
"D413",
"D415",
]
include = ["*.py"]
exclude = ["dist", "build", ".venv", "snok/templates/*"]
select = ["E", "F", "I"]
target-version = "py311"


[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.black]
target-version = ["py311"]
Expand Down Expand Up @@ -108,9 +114,6 @@ ignore_missing_imports = true
disallow_untyped_defs = true
exclude = ["dist", "build", ".venv", "snok/templates/*"]

[tool.ruff.pydocstyle]
convention = "google"

[tool.setuptools.package-data]
snok = ["py.typed", "templates/**/*"]

Expand Down
16 changes: 9 additions & 7 deletions snok/templates/__shared/_pyproject_toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ exclude = ["tests"]

[tool.ruff]
line-length = 88
include = [
"*.py",
]
target-version = "py310"

[tool.ruff.lint]
ignore = [
"D10",
"D203",
Expand All @@ -54,15 +60,14 @@ ignore = [
"D413",
"D415",
]
include = [
"*.py",
]
select = [
"E",
"F",
"I",
]
target-version = "py310"

[tool.ruff.lint.pydocstyle]
convention = "google"


[tool.black]
Expand Down Expand Up @@ -94,9 +99,6 @@ exclude = ["dist", "build", ".venv"]
module = "{{ __template_name }}._modal"
ignore_errors = true

[tool.ruff.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
addopts = [
"-n",
Expand Down

0 comments on commit 504ceb3

Please sign in to comment.