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

Black #456

Merged
merged 40 commits into from
Jun 5, 2021
Merged

Black #456

Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d3fb6ac
configure black and isort
Akuli Jun 5, 2021
b8d7b42
apply black -S and isort
Akuli Jun 5, 2021
c98317e
add to requirements.txt
Akuli Jun 5, 2021
6c04f14
get rid of pycodestyle, run black in ci
Akuli Jun 5, 2021
465d8a0
Merge remote-tracking branch 'origin/master' into black
Akuli Jun 5, 2021
8928261
fixed
Akuli Jun 5, 2021
d13d4e5
Update more_plugins/pythonprompt.py
Akuli Jun 5, 2021
0660cab
Update more_plugins/terminal.py
Akuli Jun 5, 2021
0ee0ac7
Update porcupine/_state.py
Akuli Jun 5, 2021
0971bf4
Update tests/test_find_plugin.py
Akuli Jun 5, 2021
0038cb9
Update tests/test_find_plugin.py
Akuli Jun 5, 2021
cb1200c
Update tests/test_find_plugin.py
Akuli Jun 5, 2021
df00238
Update tests/test_find_plugin.py
Akuli Jun 5, 2021
c0e5167
Update porcupine/_state.py
Akuli Jun 5, 2021
9557f3e
Update porcupine/plugins/autocomplete.py
Akuli Jun 5, 2021
4cdbe2d
Update porcupine/plugins/filetypes.py
Akuli Jun 5, 2021
517abde
Update porcupine/plugins/linenumbers.py
Akuli Jun 5, 2021
cf69703
Update porcupine/plugins/pastebin.py
Akuli Jun 5, 2021
46628b1
Update porcupine/plugins/pygments_style.py
Akuli Jun 5, 2021
4b1d035
Update porcupine/plugins/ttk_themes.py
Akuli Jun 5, 2021
0c0e2c6
Update porcupine/settings.py
Akuli Jun 5, 2021
6c67ea4
Update porcupine/settings.py
Akuli Jun 5, 2021
e9bfd7e
Update porcupine/textwidget.py
Akuli Jun 5, 2021
fbccff7
Apply suggestions from code review
Akuli Jun 5, 2021
70a73d6
run black
Akuli Jun 5, 2021
3ce777a
update black and isort
Akuli Jun 5, 2021
58c992b
use config more, disable trailing comma magic
Akuli Jun 5, 2021
9a98f7e
delete setup.cfg
Akuli Jun 5, 2021
9300aa0
tetris: revert shapes formatting
Akuli Jun 5, 2021
7cfc750
grep noqa
Akuli Jun 5, 2021
b4ab62f
fix tetris help text format
Akuli Jun 5, 2021
b8d6827
fix drop_to_open plugin
Akuli Jun 5, 2021
bb21ba0
fix filetypes plugin
Akuli Jun 5, 2021
c882a3b
improve test_slash_in_filename_patterns
Akuli Jun 5, 2021
f6fec87
overloads
Akuli Jun 5, 2021
5a4b510
black scripts
Akuli Jun 5, 2021
a823a87
make isort agree with black https://github.com/PyCQA/isort/issues/1743
Akuli Jun 5, 2021
82bd50d
fix
Akuli Jun 5, 2021
e4832c5
Merge branch 'master' into black
Akuli Jun 5, 2021
783c9bd
black
Akuli Jun 5, 2021
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/master' into black
  • Loading branch information
Akuli committed Jun 5, 2021
commit 465d8a06b3ba9a58199c73458543d0db86da7105
8 changes: 0 additions & 8 deletions tests/test_directory_tree_plugin.py
Original file line number Diff line number Diff line change
@@ -90,14 +90,6 @@ def get_project_names():
assert get_project_names() == ['c', 'a']


@pytest.fixture
def dont_run_in_thread(monkeypatch):
def func(blocking_function, done_callback, check_interval_ms=69):
done_callback(True, blocking_function())

monkeypatch.setattr(utils, 'run_in_thread', func)


@pytest.mark.skipif(shutil.which('git') is None, reason="git not found")
def test_added_and_modified_content(tree, tmp_path, monkeypatch, dont_run_in_thread):
monkeypatch.chdir(tmp_path)
5 changes: 1 addition & 4 deletions tests/test_mergeconflict_plugin.py
Original file line number Diff line number Diff line change
@@ -21,9 +21,6 @@


@pytest.mark.skipif(shutil.which('git') is None, reason="need git to make merge conflicts")
@pytest.mark.skipif(
os.getenv('GITHUB_ACTIONS') == 'true', reason="somehow doesn't work in gh actions"
)
def test_merge_conflict_string(tmp_path, monkeypatch, capfd):
monkeypatch.chdir(tmp_path)
file_content = 'before\nhello\nafter\n'
@@ -44,7 +41,7 @@ def test_merge_conflict_string(tmp_path, monkeypatch, capfd):
subprocess.run(['git', 'commit', '--all', '-m', 'hello my friend'])
subprocess.run(['git', 'merge', 'other_branch'])
assert pathlib.Path('foo.txt').read_text() == merge_conflict_string
capfd.readouterr() # prevents unnecessary prints from git
capfd.readouterr() # hide unnecessary prints from git


def test_find_merge_conflicts(filetab):
5 changes: 1 addition & 4 deletions tests/test_pastebin_plugin.py
Original file line number Diff line number Diff line change
@@ -135,10 +135,7 @@ def fake_wait_window(success_dialog):
assert thread_done and fake_wait_window_done


@pytest.mark.skipif(
os.getenv('GITHUB_ACTIONS') == 'true', reason="somehow doesn't work with gh actions"
)
def test_paste_error_handling(monkeypatch, caplog, mocker, tabmanager, filetab):
def test_paste_error_handling(monkeypatch, caplog, mocker, tabmanager, filetab, dont_run_in_thread):
monkeypatch.setattr(pastebin_module, 'DPASTE_URL', 'ThisIsNotValidUrlStart://wat')
mocker.patch('porcupine.utils.errordialog')

You are viewing a condensed version of this merge commit. You can view the full changes here.