Skip to content

Commit

Permalink
🔧 Update linting dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jemrobinson committed Feb 21, 2024
1 parent 8dc0eb6 commit e188f77
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ path = "apricot/__about__.py"
[tool.hatch.envs.lint]
detached = true
dependencies = [
"black>=23.1.0",
"mypy>=1.0.0",
"ruff>=0.0.243",
"types-oauthlib>=3.2.0",
"black~=24.2.0",
"mypy~=1.8.0",
"ruff~=0.2.0",
"types-oauthlib~=3.2.0",
]

[tool.hatch.envs.lint.scripts]
Expand All @@ -69,7 +69,7 @@ all = [
[tool.black]
target-version = ["py310", "py311"]

[tool.ruff]
[tool.ruff.lint]
select = [
# See https://beta.ruff.rs/docs/rules/
"A", # flake8-builtins
Expand All @@ -91,7 +91,7 @@ select = [
"PLW", # pylint warning
"Q", # flake8-quotes
"RUF", # ruff rules
"S", # flake8-bandits
"S", # flake8-bandit
"T", # flake8-debugger and flake8-print
"TID", # flake8-tidy-imports
"UP", # pyupgrade
Expand All @@ -109,13 +109,13 @@ ignore = [
"PLR0915", # ignore too-many-statements
]

[tool.ruff.isort]
[tool.ruff.lint.flake8-tidy-imports]
ban-relative-imports = "parents"

[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = ["apricot"]

[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "parents"

[tool.mypy]
disallow_subclassing_any = false # allow subclassing of types from third-party libraries
files = "apricot" # run mypy over this directory
Expand Down

0 comments on commit e188f77

Please sign in to comment.