Commit Graph

91 Commits

Author SHA1 Message Date
rffontenelle a34a9fed11 Improve parse_args (#2)
ci/woodpecker/push/woodpecker Pipeline was successful Details
This solves two minor issues of the `powrap --help` output:

- First one is that argparse shows short and then long form of --help option, while powrap's arguments show long and then short, causing it to look like:

```
options:
  -h, --help      show this help message and exit
  --modified, -m  Use git to find modified files ...
  -C GIT_ROOT     To use with --modified to tell ...
  --quiet, -q     Do not show progress bar ...
  ...
```

- The other thing is that the exit code is set in multi-line string, but not actually printed as multi-line string. While it looks compacted and OK in the printed help message, I assume that's not the intended so I set RawTextHelpFormatter to make sure the formatting is honored.

```
exit code: 0:nothing to do 1:would rewrap 127:error running msgcat
```

Reviewed-on: #2
Co-authored-by: rffontenelle <rffontenelle@gmail.com>
Co-committed-by: rffontenelle <rffontenelle@gmail.com>
2023-07-18 12:13:18 +00:00
Julien Palard c5042aa2d8
Project migrated out of Github.
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-03-31 08:47:49 +02:00
Julien Palard 03a472d482
Build badge
ci/woodpecker/push/woodpecker Pipeline failed Details
2023-03-30 23:36:48 +02:00
Julien Palard 0c5b9b5bf5
Migrate from Github Actions to Woodpecker CI
ci/woodpecker/pr/woodpecker Pipeline was successful Details
ci/woodpecker/push/woodpecker Pipeline was successful Details
2023-03-30 23:32:45 +02:00
Julien Palard ad95dd2676
Move to pyproject.toml 2023-03-30 23:21:14 +02:00
Julien Palard 5dd4a1c4aa
Drop Python 3.6 (#107) 2023-03-30 23:19:29 +02:00
Julien Palard df2a0a5480
Bump version to 1.0.1 2023-03-30 22:55:27 +02:00
Ege Akman b5c70a7654
Assure powrap is compatible with Windows (#105) 2023-03-30 22:54:35 +02:00
Mathieu Dupuy c826541447 fix mispellings 2022-04-26 21:53:05 +02:00
Julien Palard dc9f814ae9 Add a -C like make and git to tell where to work. 2021-10-25 16:11:29 +02:00
Julien Palard 3dcd6c7ace Testing locally on Python 3.10. 2021-06-04 07:07:51 +02:00
Julien Palard de89183e4d Renaming branch. 2021-06-04 07:07:51 +02:00
Julien Palard f3ddb95e15 Bump requirements. 2021-06-04 07:07:51 +02:00
Julien Palard 7a52106489 To pyproject.toml. 2021-06-04 07:07:51 +02:00
Julien Palard 134b467048 Bump requirements. 2021-02-10 17:04:33 +01:00
Julien Palard 09d24a9ccc Bump version to 0.4.0 2020-12-03 13:19:49 +01:00
Julien Palard 99a3222352 No environment coverage in this project. 2020-12-03 13:17:54 +01:00
Julien Palard 304296952a workflow: Missing pipe. 2020-12-03 13:15:42 +01:00
Julien Palard aa69f07010 Missing run. 2020-12-03 13:14:37 +01:00
Julien Palard e58507b36e Move out of travis. 2020-12-03 13:10:26 +01:00
Julien Palard a1a21ed2fd powrap: Add --diff option. 2020-12-03 13:00:02 +01:00
Julien Palard 8ab1522abc Github whines about cryptography < 3.2 being insecure. 2020-10-28 09:23:09 +01:00
Álvaro Mondéjar 57a5dd9c3d
Remove unnecessary option '--modified' from pre-commit hook configuration. (#88) 2020-10-21 00:43:56 +02:00
Jules Lasne (jlasne) 182aac7d75
Added poutils section to README (#87) 2020-10-14 18:25:19 +02:00
Álvaro Mondéjar 6eff8b9160
Fix pofiles discovering logic in '--modified' option when files are renamed. (#86) 2020-10-14 13:27:13 +02:00
dependabot-preview[bot] bed7e11f1e
Bump tox from 3.15.2 to 3.20.1 (#83)
Bumps [tox](https://github.com/tox-dev/tox) from 3.15.2 to 3.20.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/3.20.1/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.15.2...3.20.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 10:47:21 +02:00
dependabot-preview[bot] 5a231911da
Bump flake8 from 3.8.3 to 3.8.4 (#81)
Bumps [flake8](https://gitlab.com/pycqa/flake8) from 3.8.3 to 3.8.4.
- [Release notes](https://gitlab.com/pycqa/flake8/tags)
- [Commits](https://gitlab.com/pycqa/flake8/compare/3.8.3...3.8.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 09:53:22 +02:00
dependabot-preview[bot] 85ae0bd607
Bump pytest from 5.4.3 to 6.1.1 (#80)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.3 to 6.1.1.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.3...6.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-12 07:30:41 +02:00
dependabot-preview[bot] bace76d40f
Bump pip-tools from 5.2.1 to 5.3.1 (#66)
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 5.2.1 to 5.3.1.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/5.2.1...5.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-11 17:49:39 +02:00
dependabot-preview[bot] 4ec018f67b
Bump tqdm from 4.50.1 to 4.50.2 (#84)
Bumps [tqdm](https://github.com/tqdm/tqdm) from 4.50.1 to 4.50.2.
- [Release notes](https://github.com/tqdm/tqdm/releases)
- [Commits](https://github.com/tqdm/tqdm/compare/v4.50.1...v4.50.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-11 17:22:38 +02:00
dependabot-preview[bot] fa0e94d703
Bump twine from 3.1.1 to 3.2.0 (#55)
Bumps [twine](https://github.com/pypa/twine) from 3.1.1 to 3.2.0.
- [Release notes](https://github.com/pypa/twine/releases)
- [Changelog](https://github.com/pypa/twine/blob/master/docs/changelog.rst)
- [Commits](https://github.com/pypa/twine/compare/3.1.1...3.2.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-11 17:13:32 +02:00
dependabot-preview[bot] 169de38e6b
Bump black from 19.10b0 to 20.8b1 (#72)
Bumps [black](https://github.com/psf/black) from 19.10b0 to 20.8b1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/master/CHANGES.md)
- [Commits](https://github.com/psf/black/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-11 12:10:05 +02:00
dependabot-preview[bot] 04419fc8ce
Bump pylint from 2.5.3 to 2.6.0 (#71)
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.5.3 to 2.6.0.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.5.3...pylint-2.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-11 11:10:03 +02:00
dependabot-preview[bot] da8d0a283a
Bump mypy from 0.782 to 0.790 (#85)
Bumps [mypy](https://github.com/python/mypy) from 0.782 to 0.790.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.782...v0.790)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-10-10 16:34:26 +02:00
Julien Palard 3211da868c Document dependencies, and add pinned setup.cfg dependencies in requirements-dev.txt via pip-compile. 2020-10-07 21:25:12 +02:00
Julien Palard 01a0586f23 Bump version: 0.3.2 → 0.3.3 2020-09-29 17:06:20 +02:00
Christophe Nanteuil 1b392004a7
Handle file errors (#74) 2020-09-29 17:04:53 +02:00
Julien Palard 1dc775bc61 Deduplicate gettext dependency. 2020-07-27 13:46:01 +02:00
Julien Palard 31d2aba6e3 Document gettext dependency. Fixes #61. 2020-07-27 13:45:20 +02:00
dependabot-preview[bot] ac2fcddace
Bump mypy from 0.781 to 0.782 (#54)
Bumps [mypy](https://github.com/python/mypy) from 0.781 to 0.782.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.781...v0.782)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-24 07:03:28 +02:00
Julien Palard 753c6993f1 Bump dev requirements. 2020-06-22 23:15:44 +02:00
dependabot-preview[bot] e414522d5d
Bump mypy from 0.770 to 0.781 (#53)
Bumps [mypy](https://github.com/python/mypy) from 0.770 to 0.781.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.770...v0.781)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-22 23:13:14 +02:00
dependabot-preview[bot] 5f2f38e72e
Bump pytest from 5.4.2 to 5.4.3 (#47)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.2 to 5.4.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.4.2...5.4.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-13 08:29:43 +02:00
dependabot-preview[bot] 74fc719daa
Bump pytest from 5.3.5 to 5.4.2 (#41)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.5 to 5.4.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.3.5...5.4.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-23 10:07:08 +02:00
dependabot-preview[bot] c3d029693a
Bump pylint from 2.4.4 to 2.5.2 (#40)
Bumps [pylint](https://github.com/PyCQA/pylint) from 2.4.4 to 2.5.2.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.4.4...pylint-2.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-23 00:24:17 +02:00
dependabot-preview[bot] c691e91dfa
Bump pip-tools from 4.4.0 to 5.1.2 (#39)
Bumps [pip-tools](https://github.com/jazzband/pip-tools) from 4.4.0 to 5.1.2.
- [Release notes](https://github.com/jazzband/pip-tools/releases)
- [Changelog](https://github.com/jazzband/pip-tools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jazzband/pip-tools/compare/4.4.0...5.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-22 17:52:00 +02:00
dependabot-preview[bot] b19d2c46a9
[Security] Bump bleach from 3.1.0 to 3.1.4 (#32)
Bumps [bleach](https://github.com/mozilla/bleach) from 3.1.0 to 3.1.4. **This update includes security fixes.**
- [Release notes](https://github.com/mozilla/bleach/releases)
- [Changelog](https://github.com/mozilla/bleach/blob/master/CHANGES)
- [Commits](https://github.com/mozilla/bleach/compare/v3.1.0...v3.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-22 17:51:08 +02:00
dependabot-preview[bot] c2efaf7147
Bump mypy from 0.761 to 0.770 (#27)
Bumps [mypy](https://github.com/python/mypy) from 0.761 to 0.770.
- [Release notes](https://github.com/python/mypy/releases)
- [Commits](https://github.com/python/mypy/compare/v0.761...v0.770)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-21 23:24:40 +02:00
dependabot-preview[bot] 637888a1e8
Bump tox from 3.14.3 to 3.15.1 (#44)
Bumps [tox](https://github.com/tox-dev/tox) from 3.14.3 to 3.15.1.
- [Release notes](https://github.com/tox-dev/tox/releases)
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst)
- [Commits](https://github.com/tox-dev/tox/compare/3.14.3...3.15.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-21 09:07:16 +02:00
Manuel Kaufmann 696d74e7a2
Add pre-commit hook (#37) 2020-05-18 10:13:59 +02:00