Skip to content

AntiCompositeNumber/signatures

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

signatures

GitHub Workflow Status Uptime Robot status Coverage Status Python version 3.9 Code style: black

Validates user signatures, checking for technical and policy issues

Operation

This tool consists of two parts: a webservice and a backend batch report runner.

Webservice

On Toolforge, the repo is symlinked to ~/www/python/

To start the webservice, run webservice --backend=kubernetes python3.9 start

To stop the webservice, run webservice stop

Batch reports

On Toolforge, reports are run from a Kubernetes Job. A custom script is used to start the job. Any arguments passed to the start script will be passed to the report script.

See python3 src/sigprobs.py --help for CLI details.

To create or update a report, run ./sigprobs_start.py <site>

For example, a report for the English Wikipedia can be run with ./sigprobs_start.py en.wikipedia.org

Translating

$ cd src/
$ pybabel extract -F babel.cfg -k N_ -o messages.pot .  # Extract translatable strings
$ pybabel update -d translations/ -i messages.pot  # Update existing message catalogs
$ pybabel init -i messages.pot -d translations/ -l <lang>  # Create new message catalog

Update the translations in src/translations/<lang>/LC_MESSAGES/messages.po

$ pybabel compile -d translations

About

Validates user signatures, checking for technical and policy issues

Resources

License

Stars

Watchers

Forks