Skip to content

Commit

Permalink
Merge branch 'ruff' of https://github.com/Avasam/pywin32 into ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed May 10, 2024
2 parents 4c5b40b + 1a87281 commit 8b1bf10
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
- run: pycln . --config=pycln.toml --check
- uses: chartboost/ruff-action@v1
with:
version: "0.3.4"
version: "0.4.4"
- uses: psf/black@stable
with:
options: "--fast --check --diff --verbose"
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
args: [--config=pycln.toml]
verbose: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.4
rev: v0.4.4
hooks:
- id: ruff # Run the linter.
args: [--fix]
Expand Down
28 changes: 14 additions & 14 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ target-version = "py37"

[lint]
select = [
"C4", # flake8-comprehensions
"F811", # redefined-while-unused
"FLY", # static-join-to-f-string
"I", # isort
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
"PLE", # Pylint Error
"RSE", # flake8-raise
"YTT", # flake8-2020
"C4", # flake8-comprehensions
"F811", # redefined-while-unused
"FLY", # static-join-to-f-string
"I", # isort
"ISC001", # single-line-implicit-string-concatenation
"ISC002", # multi-line-implicit-string-concatenation
"PLE", # Pylint Error
"RSE", # flake8-raise
"YTT", # flake8-2020
]

[lint.per-file-ignores]
Expand All @@ -23,10 +23,10 @@ detect-same-package = false # Because pywin32 has a mix of relative and absolute
combine-as-imports = true
# This makes import grouping more consistent
known-third-party = [
"__main__",
# This forces distutils imports to always be after setuptools
# setuptools must be imported before distutils because it monkey-patches it.
# distutils is also removed in Python 3.12 and deprecated with setuptools
"distutils",
"__main__",
# This forces distutils imports to always be after setuptools
# setuptools must be imported before distutils because it monkey-patches it.
# distutils is also removed in Python 3.12 and deprecated with setuptools
"distutils",
]
extra-standard-library = ["setuptools"]

0 comments on commit 8b1bf10

Please sign in to comment.