Skip to content

Commit ef2b7e3

Browse files
committed
Update settings.json for Python & bump Ruff to 0.1.7
1 parent dd90210 commit ef2b7e3

File tree

4 files changed

+3
-15
lines changed

4 files changed

+3
-15
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: pretty-format-ini
1818
args: [--autofix]
1919
- repo: https://github.com/astral-sh/ruff-pre-commit
20-
rev: "v0.1.6" # Must match requirements-dev.txt
20+
rev: "v0.1.7" # Must match requirements-dev.txt
2121
hooks:
2222
- id: ruff
2323
args: [--fix]

.vscode/settings.json

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,10 @@
8585
"source.convertImportFormat"
8686
// Explicitly omiting "source.unusedImports", can be annoying when commenting code for debugging
8787
],
88-
// Important to follow the config in pyrightconfig.json
89-
"python.analysis.useLibraryCodeForTypes": false,
9088
"python.analysis.diagnosticMode": "workspace",
9189
"ruff.importStrategy": "fromEnvironment",
9290
// Use the Ruff extension instead
9391
"isort.check": false,
94-
// linting/formatting options deprecated, use dedicated extensions instead
95-
// https://github.com/microsoft/vscode-python/wiki/Migration-to-Python-Tools-Extensions
96-
"python.linting.enabled": false,
97-
"python.linting.banditEnabled": false,
98-
"python.linting.flake8Enabled": false,
99-
"python.linting.prospectorEnabled": false,
100-
"python.linting.pycodestyleEnabled": false,
101-
"python.linting.pylamaEnabled": false,
102-
"python.linting.pylintEnabled": false,
103-
"python.linting.mypyEnabled": false,
104-
"python.formatting.provider": "none",
10592
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
10693
"powershell.codeFormatting.autoCorrectAliases": true,
10794
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ ignore = [
7575
"N8", # Naming conventions
7676
"PLR0904", # Too many public methods
7777
"PLR0913", # Argument count
78+
"PLR0917", # Too many positional arguments
7879
"PLW3201", # misspelled dunder method name
7980
"PYI042", # CamelCase TypeAlias
8081
]

scripts/requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# Linters & Formatters
1515
add-trailing-comma>=3.1.0 # Must match .pre-commit-config.yaml
1616
autopep8>=2.0.4 # Must match .pre-commit-config.yaml
17-
ruff>=0.1.6 # New checks # Must match .pre-commit-config.yaml
17+
ruff>=0.1.7 # New checks # Must match .pre-commit-config.yaml
1818
#
1919
# Types
2020
types-D3DShot ; sys_platform == 'win32'

0 commit comments

Comments
 (0)