Skip to content

Commit

Permalink
fix: simplify TOML config because it was acting more sus than Python …
Browse files Browse the repository at this point in the history
…2 indentation 🔧

- Moved select rules up to main ruff config (nested tables were throwing more shade than my ex)
- Simplified isort config because TOML parsers be having trust issues with nested stuff
- Removed sections array because it was causing more problems than parallel threads without locks

no cap, just valid TOML vibes fr fr
  • Loading branch information
UltraInstinct0x committed Jan 7, 2025
1 parent d8d02c6 commit 02d7b3a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,13 @@ target-version = ['py310']
[tool.ruff]
line-length = 88
target-version = "py310"
select = ["E", "F", "B", "I"] # We moved this up because ruff be acting more temperamental than a Discord bot with 999ms ping

[tool.ruff.lint]
select = ["E", "F", "B", "I"]

[tool.ruff.lint.isort]
[tool.ruff.isort] # Simplified this whole section because nested TOML tables were causing more drama than a Minecraft server without admins
force-single-line = true
lines-between-types = 1
order-by-type = true
known-first-party = ["smolswarms"]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]

[tool.mypy]
python_version = "3.10"
Expand Down

0 comments on commit 02d7b3a

Please sign in to comment.