Skip to content

Commit

Permalink
chore: fix some small pyproject errors
Browse files Browse the repository at this point in the history
Two of the referenced linter rules in pyproject were unsupported by the schema. This commit removes them
  • Loading branch information
bepri committed Jan 8, 2025
1 parent b598dd8 commit 8afa845
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ lint.select = [ # Base linting rule selections.
"RSE", # Errors on pytest raises.
"RET", # Simpler logic after return, raise, continue or break
"SIM", # Code simplification
"TCH", # Guard imports only used for type checking behind a type-checkning block.
"ARG", # Unused arguments
"PTH", # Migrate to pathlib
"ERA", # Don't check in commented out code
Expand All @@ -202,7 +201,7 @@ lint.select = [ # Base linting rule selections.
"TRY", # Cleaner try/except,
]
lint.extend-select = [
# Pyupgrade: https://github.com/charliermarsh/ruff#pyupgrade-up
# # Pyupgrade: https://github.com/charliermarsh/ruff#pyupgrade-up
"UP00", "UP01", "UP02", "UP030", "UP032", "UP033",
# "UP034", # Very new, not yet enabled in ruff 0.0.227
# Annotations: https://github.com/charliermarsh/ruff#lint.flake8-annotations-ann
Expand All @@ -228,7 +227,6 @@ lint.extend-select = [
"RUF100", # #noqa directive that doesn't flag anything
]
lint.ignore = [
"ANN10", # Type annotations for `self` and `cls`
#"E203", # Whitespace before ":" -- Commented because ruff doesn't currently check E203
"E501", # Line too long (reason: black will automatically fix this for us)
"D105", # Missing docstring in magic method (reason: magic methods already have definitions)
Expand Down

0 comments on commit 8afa845

Please sign in to comment.