Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraichen committed Sep 3, 2022
1 parent a8fd786 commit ca0d377
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ jobs:
- uses: pdm-project/setup-pdm@main
with:
python-version: ${{ matrix.python }}
enable-pep582: true
- run: pdm install --dev --no-self --no-default
- run: pdm run tox -e salt${{ matrix.salt }} -- -vv
- if: ${{ matrix.python != '3.6' }}
run:
pdm venv create
pdm venv activate
pylint salt_tower test

black:
runs-on: ubuntu-20.04
Expand All @@ -46,6 +40,5 @@ jobs:
- uses: pdm-project/setup-pdm@main
with:
python-version: "3.10"
enable-pep582: true
- run: pdm install --dev --no-self --no-default
- run: pdm run black --check .
4 changes: 4 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
[BASIC]
good-names=log,f,k,v

[MESSAGES CONTROL]
# Handled by black
disable=bad-continuation

[VARIABLES]
# List of additional names supposed to be defined in builtins. Remember that
# you should avoid to define new builtins when possible.
Expand Down
9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ pillar_dirs = "salt_tower.loader:pillar_dirs"
render_dirs = "salt_tower.loader:renderers_dirs"

[project.optional-dependencies]
test = ["pytest~=7.0.0"]
test = ["pylint==2.13.8", "pytest~=7.0.0"]
docs = [
"mike~=1.0.0; python_version > '3.8'",
"mkdocs-awesome-pages-plugin~=2.5.0; python_version > '3.8'",
"mkdocs-git-revision-date-plugin~=0.3.1; python_version > '3.8'",
'mkdocs-material~=8.2.13; python_version >= "3.8"',
'mkdocs-material==8.2.13; python_version >= "3.8"',
"setuptools", # required by mike
]

Expand All @@ -43,10 +43,11 @@ target_version = ["py36", "py37", "py38"]
[tool.pdm.dev-dependencies]
dev = [
"black~=22.3.0; python_version > '3.8'",
"pylint~=2.15.0; python_version > '3.7.2'",
"mypy~=0.950",
"pylint==2.13.8",
"pytest~=7.0.0",
"tox~=3.23.0",
"jinja2<3.0", # not support by salt
"jinja2<3.0", # not support by salt
]

[tool.pytest.ini_options]
Expand Down
2 changes: 1 addition & 1 deletion salt_tower/pillar/tower.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def update(self, obj, merge=True, **kwargs):
return self.merge(self, obj, **kwargs)
return super().update(obj)

def merge(self, *args, **kwargs):
def merge(self, *args, **kwargs): # pylint: disable=no-self-use
return _merge(*args, **kwargs)

def format(self, obj, *args, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ extras =
test
commands_pre =
salt --versions-report
pylint --version
commands =
pytest {posargs}
pylint salt_tower test
setenv =
USE_PACKAGE = {env:USE_PACKAGE:yes}

0 comments on commit ca0d377

Please sign in to comment.