Skip to content

Commit 0cfef19

Browse files
committed
Remove unused import, add github action workflow.
1 parent 3ad87c2 commit 0cfef19

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: ruff + flake8
2+
3+
on: [push]
4+
#on:
5+
# schedule:
6+
# # A complete cython build takes about 14 minutes, let's run it every Monday
7+
# # and not waste too much GitHub free resource.
8+
# - cron: '1 1 * * 1'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
with:
17+
fetch-depth: 1
18+
19+
- uses: astral-sh/ruff-action@v3
20+
- uses: py-actions/flake8@v2
21+
with:
22+
ignore: "C901,E501,E402,W503,E722"
23+
max-line-length: "127"
24+
exclude: "web"
25+
#path: "src"
26+
#plugins: "flake8-bugbear==22.1.11 flake8-black"

libs/iredpwd.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import string
66
import subprocess
77
from base64 import b64encode, b64decode
8-
from hmac import compare_digest
98
from os import urandom
109
from typing import Union, List
1110
from passlib.hash import md5_crypt, sha512_crypt

0 commit comments

Comments
 (0)