Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add poetry.show_outdated * Print outdated packages * Allow filtering packages * Add git.current_branch * Add git.is_worktree_clean * Add git.branch_exists * Add git.switch * Add poetry.update * Generalize git.{is_worktree_clean => is_clean} * Add git.resolve_branch * Add git.remove_branch * Add git.add * Add git.commit * Add git.push * Add git.push with merge request * Add github.pull_request_exists * Add github.create_pull_request * Use str not Path in git.is_clean * Use str not Path in git.add * Remove unused import for pathlib.Path * Implement default behaviour * Add console.show_package * Eliminate redundant upstream_branch_exists * Fix inverted check if package was modified * Eliminate redundant package_modified * Fix iteration over None in git.is_clean * Fix usage of str.format in console.show_package * Fix usage of git.add * Add options --push and --no-push * Add options --merge-request and --no-merge-request * Add options --pull-request and --no-pull-request * Add options --install and --no-install * Fix broken idempotency * Add option --dry-run * Remove redundant pass * Add options --commit and --no-commit * Add option --remote * Avoid redundant switch * Do not assume master in git.switch(create=True) * Add option --upstream * Minor cleanup * Use `poetry-up/` prefix for branches * Fix `gh pr create` usage * Ignore S404 (subprocess module) * Ignore S603 (subprocess call) * Ignore S607 (Starting a process with a partial executable path) * Fix BLK100 (Black would make changes) * Ignore C901 (too complex: 11) * Fix D101 (Missing docstring in public class) * Fix D103 (Missing docstring in public function) * Fix BLK100 (Black would make changes) * Ignore C901 (too complex: 11) on Python < 3.8 * Fix return type annotation for git.switch * Drop Python 3.6 subprocess.run has no capture_output and text keyword arguments * Add pytest-datadir 1.3.1 * Add option --cwd * Add data files * Add repository fixture * Perform test run on a fixture repository * Add pytest-datadir to Nox session * Use --cov-config as workaround for pytest-cov with subprocesses $ nox -rs tests-3.8 tests/test_console.py . [100%] INTERNALERROR> Traceback (most recent call last): INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/_pytest/main.py", line 191, in wrap_session INTERNALERROR> session.exitstatus = doit(config, session) or 0 INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/_pytest/main.py", line 247, in _main INTERNALERROR> config.hook.pytest_runtestloop(session=session) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pluggy/hooks.py", line 286, in __call__ INTERNALERROR> return self._hookexec(self, self.get_hookimpls(), kwargs) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pluggy/manager.py", line 93, in _hookexec INTERNALERROR> return self._inner_hookexec(hook, methods, kwargs) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pluggy/manager.py", line 84, in <lambda> INTERNALERROR> self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pluggy/callers.py", line 203, in _multicall INTERNALERROR> gen.send(outcome) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pytest_cov/plugin.py", line 254, in pytest_runtestloop INTERNALERROR> self.cov_controller.finish() INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/pytest_cov/engine.py", line 197, in finish INTERNALERROR> self.cov.stop() INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/coverage/control.py", line 680, in combine INTERNALERROR> combine_parallel_data(self._data, aliases=aliases, data_paths=data_paths, strict=strict) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/coverage/data.py", line 117, in combine_parallel_data INTERNALERROR> data.update(new_data, aliases=aliases) INTERNALERROR> File "<path>/.nox/tests-3-8/lib/python3.8/site-packages/coverage/sqldata.py", line 563, in update INTERNALERROR> raise CoverageException("Can't combine line data with arc data") INTERNALERROR> coverage.misc.CoverageException: Can't combine line data with arc data $ ls -la 52K Apr 9 21:48 .coverage 164K Apr 9 21:48 .coverage.<hostname>.25010.488442 52K Apr 9 21:48 .coverage.<hostname>.25010.767724 52K Apr 9 21:48 .coverage.<hostname>.25014.058534 52K Apr 9 21:48 .coverage.<hostname>.25014.368716 52K Apr 9 21:48 .coverage.<hostname>.25015.158100 52K Apr 9 21:48 .coverage.<hostname>.25015.687276 52K Apr 9 21:48 .coverage.<hostname>.25016.098986 52K Apr 9 21:48 .coverage.<hostname>.25016.941181 52K Apr 9 21:48 .coverage.<hostname>.25017.098210 52K Apr 9 21:48 .coverage.<hostname>.25017.556523 164K Apr 9 21:48 .coverage.<hostname>.25021.631968 52K Apr 9 21:48 .coverage.<hostname>.25021.863210 52K Apr 9 21:48 .coverage.<hostname>.25023.568437 52K Apr 9 21:48 .coverage.<hostname>.25023.600773 52K Apr 9 21:48 .coverage.<hostname>.25024.405837 52K Apr 9 21:48 .coverage.<hostname>.25024.452642 52K Apr 9 21:48 .coverage.<hostname>.25025.535531 52K Apr 9 21:48 .coverage.<hostname>.25025.671654 52K Apr 9 21:48 .coverage.<hostname>.25026.557432 52K Apr 9 21:48 .coverage.<hostname>.25026.670483 * Add remote to repository fixture * Add tests for non-default options, excluding PRs and MRs * Add test for --pull-request * Stub poetry.show_outdated * Modernize poetry.lock in test fixture * Add poetry.lock.new to test fixture * Stub poetry.update * Stub git.push (for --merge-request) * Add test for --merge-request * Add test for dirty worktree * Add working_directory context manager * Add test for --dry-run * Test that branch is created * Add stub for poetry.update which does nothing * Test that branch is removed on refused upgrades * Move working_directory context manager to conftest.py * Change working directory to repository fixture * Simplify console test using current working directory * Add test for git.switch without location * Test git.push with merge request * Add pretend 1.0.9 * Add pretend to Nox session * Add tests for github module * Use marshmallow 3.5.1 in all tests, for consistency * Add tests for poetry module * Add missing docstrings for console tests * Ignore missing imports for _pytest.* types * Ignore missing imports for pretend types * Add missing docstrings to conftest.py * Ignore S404 (subprocess module) * Ignore S603 (subprocess call) and S607 (partial executable path) * Fix I100 (import statement order) * Fix BLK100 (Black would make changes) * Fix ANN201 (Missing return type annotation for public function) * Update documentation * Set Git user.email and user.name for tests * Fix YAML multiline syntax
- Loading branch information