Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flake8 #195

Merged
merged 17 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length = 88
3 changes: 1 addition & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: python -m pip install flake8 nox poetry
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- run: flake8 . --count --show-source --statistics
- run: python -m nox
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

2 changes: 1 addition & 1 deletion tests/test_filtration.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def test_distribution6():

def test_distribution7():
with pytest.raises(InvalidTag):
dist = Distribution({"Tags": "Media", "MinRarity": 0.7})
Distribution({"Tags": "Media", "MinRarity": 0.7})


def test_filter():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_identifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def test_identifier_sorting6():

def test_only_text():
out = r.identify("fixtures/file")
assert None == out["Regexes"]
assert None is out["Regexes"]
jyooru marked this conversation as resolved.
Show resolved Hide resolved

out = r.identify("THM{7281j}}", only_text=True)
assert "TryHackMe Flag Format" in out["Regexes"]["text"][0]["Regex Pattern"]["Name"]
Expand Down