Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb6f5bf3

Browse files
author
Liora Milbaum
committed
refactor: lint duplications in tox and pre-commit
1 parent9410acb commitb6f5bf3

File tree

4 files changed

+18
-108
lines changed

4 files changed

+18
-108
lines changed

‎.github/workflows/lint.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

‎.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,9 @@ repos:
4848
rev:32.238.4
4949
hooks:
5050
-id:renovate-config-validator
51+
-repo:https://github.com/commitizen-tools/commitizen
52+
rev:v2.35.0
53+
hooks:
54+
-id:commitizen
55+
-id:commitizen-branch
56+
args:["--rev-range", "65ecadc..HEAD"]

‎requirements-lint.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎tox.ini

Lines changed: 12 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minversion = 1.6
33
skipsdist = True
44
skip_missing_interpreters = True
5-
envlist = py310,py39,py38,py37,flake8,black,twine-check,mypy,isort,cz,pylint
5+
envlist = py310,py39,py38,py37,twine-check
66

77
[testenv]
88
passenv =
@@ -26,48 +26,6 @@ deps = -r{toxinidir}/requirements.txt
2626
commands =
2727
pytest tests/unit tests/meta {posargs}
2828

29-
[testenv:black]
30-
basepython = python3
31-
envdir={toxworkdir}/lint
32-
deps = -r{toxinidir}/requirements-lint.txt
33-
commands =
34-
black {posargs} .
35-
36-
[testenv:isort]
37-
basepython = python3
38-
envdir={toxworkdir}/lint
39-
deps = -r{toxinidir}/requirements-lint.txt
40-
commands =
41-
isort {posargs} {toxinidir}
42-
43-
[testenv:mypy]
44-
basepython = python3
45-
envdir={toxworkdir}/lint
46-
deps = -r{toxinidir}/requirements-lint.txt
47-
commands =
48-
mypy {posargs}
49-
50-
[testenv:flake8]
51-
basepython = python3
52-
envdir={toxworkdir}/lint
53-
deps = -r{toxinidir}/requirements-lint.txt
54-
commands =
55-
flake8 {posargs} .
56-
57-
[testenv:pylint]
58-
basepython = python3
59-
envdir={toxworkdir}/lint
60-
deps = -r{toxinidir}/requirements-lint.txt
61-
commands =
62-
pylint {posargs} gitlab/
63-
64-
[testenv:cz]
65-
basepython = python3
66-
envdir={toxworkdir}/lint
67-
deps = -r{toxinidir}/requirements-lint.txt
68-
commands =
69-
cz check --rev-range 65ecadc..HEAD# cz is fast, check from first valid commit
70-
7129
[testenv:twine-check]
7230
basepython = python3
7331
deps = -r{toxinidir}/requirements.txt
@@ -79,17 +37,6 @@ commands =
7937
[testenv:venv]
8038
commands = {posargs}
8139

82-
[flake8]
83-
exclude = .git,.venv,.tox,dist,doc,*egg,build,
84-
max-line-length = 88
85-
# We ignore the following because we use black to handle code-formatting
86-
# E203: Whitespace before ':'
87-
# E501: Line too long
88-
# W503: Line break occurred before a binary operator
89-
ignore = E203,E501,W503
90-
per-file-ignores =
91-
gitlab/v4/objects/__init__.py:F401,F403
92-
9340
[testenv:docs]
9441
deps = -r{toxinidir}/requirements-docs.txt
9542
commands = sphinx-build -n -W --keep-going -b html docs build/sphinx/html
@@ -123,3 +70,14 @@ commands =
12370
[testenv:smoke]
12471
deps = -r{toxinidir}/requirements-test.txt
12572
commands = pytest tests/smoke {posargs}
73+
74+
[flake8]
75+
exclude = .git,.venv,.tox,dist,doc,*egg,build,
76+
max-line-length = 88
77+
# We ignore the following because we use black to handle code-formatting
78+
# E203: Whitespace before ':'
79+
# E501: Line too long
80+
# W503: Line break occurred before a binary operator
81+
ignore = E203,E501,W503
82+
per-file-ignores =
83+
gitlab/v4/objects/__init__.py:F401,F403

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp