forked from AFPy/potodo
Merge branch 'master' into dependabot/pip/simple-term-menu-0.10.4
This commit is contained in:
commit
b470a2da28
2
.github/FUNDING.yml
vendored
2
.github/FUNDING.yml
vendored
|
@ -1 +1 @@
|
|||
liberapay: Seluj78
|
||||
liberapay: python-docs-fr
|
||||
|
|
39
.github/workflows/ponicode.yml
vendored
39
.github/workflows/ponicode.yml
vendored
|
@ -1,39 +0,0 @@
|
|||
name: Ponicode DogString# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [master]# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
# This workflow contains a single job called "build"
|
||||
build:
|
||||
# The type of runner that the job will run on
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get paths
|
||||
run: |
|
||||
git show --pretty="" --name-only ${{ github.sha }} > PATHS_TO_CHANGED_FILES.txt
|
||||
- uses: ponicode/docstrings-action@master
|
||||
with:
|
||||
repo_path: ./
|
||||
auth_token: ${{ secrets.PONICODE_TOKEN }}
|
||||
all_repo: True
|
||||
# Creates pull request with all changes in file
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
commit-message: '[ponicode-pull-request] Ponicode wrote new docstrings!'
|
||||
branch: ponicode-docstring
|
||||
title: '[Ponicode] Docstrings created'
|
||||
body: |
|
||||
## ⭐️ Ponicode report ⭐️
|
||||
Ponicode found **undocumented functions** in your code, and auto-generated docstrings for you.
|
||||
</br>
|
||||
### 🦄 We'd love to hear your feedback!🦄
|
||||
Send us an email at <feedback@ponicode.com>, open an issue on our Action, or join us on the [Ponicode Community Slack](https://ponicode-community.slack.com/join/shared_invite/zt-fiq4fhkg-DE~a_FkJ7xtiZxW7efyA4Q#/).
|
||||
Visit **[ponicode.com](https://www.google.com)** to find out more about what we do.
|
||||
</br>
|
||||
<img alt="Ponicode Logo" src="https://avatars0.githubusercontent.com/u/49948625?s=200&v=4=200zx" width="100"/>
|
|
@ -2,4 +2,4 @@
|
|||
|
||||
__author__ = """Jules Lasne"""
|
||||
__email__ = "jules.lasne@gmail.com"
|
||||
__version__ = "0.17.3"
|
||||
__version__ = "0.17.4"
|
||||
|
|
|
@ -165,6 +165,8 @@ def exec_potodo(
|
|||
else:
|
||||
exit()
|
||||
else:
|
||||
total_translated: int = 0
|
||||
total_entries: int = 0
|
||||
po_files_and_dirs = get_po_stats_from_repo_or_cache(
|
||||
path, exclude, cache_args, ignore_matches, no_cache
|
||||
)
|
||||
|
@ -205,6 +207,9 @@ def exec_potodo(
|
|||
else:
|
||||
print_dir_stats(directory_name, buffer, folder_stats, printed_list)
|
||||
|
||||
total_translated += folder_stats["translated"]
|
||||
total_entries += folder_stats["total"]
|
||||
|
||||
if json_format:
|
||||
print(
|
||||
json.dumps(
|
||||
|
@ -215,6 +220,9 @@ def exec_potodo(
|
|||
default=json_dateconv,
|
||||
)
|
||||
)
|
||||
else:
|
||||
total_completion = 100 * total_translated / total_entries
|
||||
print(f"\n\n# TOTAL ({total_completion:.2f}% done)\n")
|
||||
|
||||
|
||||
def buffer_add(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
polib==1.1.0
|
||||
requests==2.24.0
|
||||
requests==2.25.0
|
||||
simple-term-menu==0.10.4
|
||||
gitignore_parser==0.0.8
|
2
setup.py
2
setup.py
|
@ -15,7 +15,7 @@ setuptools.setup(
|
|||
long_description_content_type="text/markdown",
|
||||
author="Jules Lasne",
|
||||
author_email="jules.lasne@gmail.com",
|
||||
url="https://github.com/seluj78/potodo",
|
||||
url="https://github.com/afpy/potodo",
|
||||
packages=["potodo"],
|
||||
package_dir={"potodo": "potodo"},
|
||||
entry_points={"console_scripts": ["potodo=potodo.potodo:main"]},
|
||||
|
|
Loading…
Reference in New Issue
Block a user