Skip to content

Commit

Permalink
ci: pre-commit autoupdate (#70)
Browse files Browse the repository at this point in the history
* ci: pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v3.19.0 → v3.19.1](asottile/pyupgrade@v3.19.0...v3.19.1)
- [github.com/astral-sh/ruff-pre-commit: v0.8.1 → v0.8.6](astral-sh/ruff-pre-commit@v0.8.1...v0.8.6)

* ci: auto fixes from pre-commit hooks

for more information, see https://pre-commit.ci

* fix: typo

* fix: try to fix the ci process

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Vinit Kumar <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and vinitkumar authored Jan 18, 2025
1 parent ddce432 commit 8ce49cb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
pip install ruff
- name: Run Ruff
run: |
ruff djangocms_style
ruff check djangocms_style
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ci:

repos:
- repo: https://github.com/asottile/pyupgrade
rev: v3.19.0
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand All @@ -21,7 +21,7 @@ repos:
args: [--target-version, "3.2"]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.1
rev: v0.8.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
17 changes: 13 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
[project]
name="djangocms-style"
version="3.1.0"
author="Divio AG"
author_email="[email protected]"
maintainer="Django CMS Association and contributors"
maintainer_email="[email protected]"
url="https://github.com/django-cms/djangocms-style"

[tool.codespell]
skip = '*.po'

[tool.ruff]
line-length = 119
select = [
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
Expand All @@ -26,18 +35,18 @@ select = [
"YTT", # flake8-2020
"RUF"
]
exclude = [
lint.exclude = [
".env",
".venv",
"**/migrations/**",
]
ignore = [
lint.ignore = [
"E501", # line too long
"F403", # 'from module import *' used; unable to detect undefined names
"E701", # multiple statements on one line (colon)
"F401", # module imported but unused
]
[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"setup.py" = [
"SIM115" # Use context handler for opening files
]
2 changes: 1 addition & 1 deletion tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@
output = run(
cmd,
# check=True,
capture_output=True,
capture_output=True, check=False,
)
print(output.stderr.decode("utf-8"))

0 comments on commit 8ce49cb

Please sign in to comment.