Skip to content

Commit

Permalink
chore: remove actionlint (#159)
Browse files Browse the repository at this point in the history
* chore: remove actionlint

* style: run pre-commit
  • Loading branch information
Artem Rys authored Apr 6, 2022
1 parent bfb0923 commit 16b48ec
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 18 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ jobs:
- uses: actions/setup-python@v3
with:
python-version: "3.7"
- name: Install actionlint
run: |
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/v1.6.8/scripts/download-actionlint.bash)
- uses: pre-commit/action@v2.0.3

review_secrets:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
*.DS_Store*
__pycache__
*.pyc
*.pyo
*.pyo
.coverage
13 changes: 2 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
rev: v2.31.1
hooks:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
Expand All @@ -22,12 +22,3 @@ repos:
hooks:
- id: docformatter
args: [--in-place]
- repo: local
hooks:
- id: actionlint
name: actionlint
entry: actionlint
args: [-ignore, 'property ".+" is not defined in object type']
language: script
types: ["yaml"]
files: ^.github/workflows/
2 changes: 1 addition & 1 deletion solnlib/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _get_all_passwords(self):
all_passwords = self._storage_passwords.list(count=-1)

results = {}
ptn = re.compile(fr"(.+){self.SEP}(\d+)")
ptn = re.compile(rf"(.+){self.SEP}(\d+)")
for password in all_passwords:
match = ptn.match(password.name)
if match:
Expand Down
2 changes: 1 addition & 1 deletion solnlib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def wrapper(*args, **kwargs):
):
last_ex = e
if i < max_tries - 1:
time.sleep(2 ** i)
time.sleep(2**i)
else:
raise

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def mock_func():

mock_func()
assert tried[0] == retries + 1
assert mock_sleep_time[0] == sum(2 ** i for i in range(retries))
assert mock_sleep_time[0] == sum(2**i for i in range(retries))

record = [0, 0]

Expand Down

0 comments on commit 16b48ec

Please sign in to comment.