Philipp Hörist pushed to branch master at gajim / gajim
Commits:
8bad8b38 by Philipp Hörist at 2024-04-02T11:44:07+02:00
ci: Update linters
- - - - -
c068b0f1 by Philipp Hörist at 2024-04-02T11:44:07+02:00
ci: Fix typing stubs suffix
- - - - -
7 changed files:
- .gitlab-ci.yml
- .pre-commit-config.yaml
- pyproject.toml
- typings/AppKit/__init__.py → typings/AppKit/__init__.pyi
- typings/qrcode/__init__.py → typings/qrcode/__init__.pyi
- typings/qrcode/constants.py → typings/qrcode/constants.pyi
- typings/qrcode/image/pil.py → typings/qrcode/image/pil.pyi
Changes:
=====================================
.gitlab-ci.yml
=====================================
@@ -50,7 +50,7 @@ test-ruff:
- "**/*.py"
script:
- ruff --version
- - ruff .
+ - ruff check .
interruptible: true
test-isort:
=====================================
.pre-commit-config.yaml
=====================================
@@ -1,12 +1,12 @@
repos:
- repo: https://github.com/charliermarsh/ruff-pre-commit
- rev: v0.0.286
+ rev: v0.3.2
hooks:
- id: ruff
exclude: ".githooks/"
- repo: https://github.com/codespell-project/codespell
- rev: v2.2.5
+ rev: v2.2.6
hooks:
- id: codespell
pass_filenames: false
@@ -14,7 +14,7 @@ repos:
- tomli
- repo: https://github.com/RobertCraigie/pyright-python
- rev: v1.1.350
+ rev: v1.1.353
hooks:
- id: pyright
pass_filenames: false
@@ -27,6 +27,6 @@ repos:
stages: [manual]
- repo: https://github.com/pycqa/isort
- rev: 5.12.0
+ rev: 5.13.2
hooks:
- id: isort
=====================================
pyproject.toml
=====================================
@@ -46,9 +46,9 @@ repository = "https://dev.gajim.org/gajim/gajim"
[project.optional-dependencies]
dev = [
- "ruff>=0.0.286",
- "codespell[toml]>=2.2.5",
- "isort>=5.12.0",
+ "ruff>=0.3.2",
+ "codespell[toml]>=2.2.6",
+ "isort>=5.13.2",
"nbxmpp @ git+https://dev.gajim.org/gajim/python-nbxmpp.git",
"PyGObject-stubs @ git+https://github.com/pygobject/pygobject-stubs.git",
"python-gitlab",
@@ -156,6 +156,10 @@ include = [
[tool.ruff]
line-length = 80
+target-version = "py310"
+
+[tool.ruff.lint]
+
select = [
"A", # flake8-builtins
# "AIR", # Airflow
@@ -167,7 +171,7 @@ select = [
"C4", # flake8-comprehensions
"C90", # mccabe
"COM", # flake8-commas
- "CPY", # flake8-copyright
+ # "CPY", # flake8-copyright
# "D", # pydocstyle
# "DJ", # flake8-django
# "DTZ", # flake8-datetimez
@@ -280,9 +284,8 @@ exclude = [
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
-target-version = "py310"
-[tool.ruff.per-file-ignores]
+[tool.ruff.lint.per-file-ignores]
"gajim/common/iana.py" = ["E501"]
"gajim/common/storage/omemo.py" = ["N803"]
"test/*" = ["E402"]
@@ -294,10 +297,10 @@ target-version = "py310"
"scripts/*" = ["S603", "S607"]
"launch.py" = ["S603", "S607"]
-[tool.ruff.mccabe]
+[tool.ruff.lint.mccabe]
max-complexity = 15
-[tool.ruff.flake8-quotes]
+[tool.ruff.lint.flake8-quotes]
inline-quotes = "single"
docstring-quotes = "single"
multiline-quotes = "single"
=====================================
typings/AppKit/__init__.py → typings/AppKit/__init__.pyi
=====================================
=====================================
typings/qrcode/__init__.py → typings/qrcode/__init__.pyi
=====================================
=====================================
typings/qrcode/constants.py → typings/qrcode/constants.pyi
=====================================
=====================================
typings/qrcode/image/pil.py → typings/qrcode/image/pil.pyi
=====================================
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/92bd2fb91c59e527bad23cf6944d9106feed02f0...c068b0f1fc999562d5aa395a70b455fb31008a19
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/92bd2fb91c59e527bad23cf6944d9106feed02f0...c068b0f1fc999562d5aa395a70b455fb31008a19
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]