https://github.com/mozilla-mobile/perf-tools
Tools for the performance team that don't fit into other repositories
https://github.com/mozilla-mobile/perf-tools
Last synced: 12 months ago
JSON representation
Tools for the performance team that don't fit into other repositories
- Host: GitHub
- URL: https://github.com/mozilla-mobile/perf-tools
- Owner: mozilla-mobile
- License: mpl-2.0
- Created: 2020-04-27T22:46:31.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-12-03T18:34:05.000Z (over 1 year ago)
- Last Synced: 2025-04-11T20:51:52.674Z (about 1 year ago)
- Language: Python
- Size: 19.3 MB
- Stars: 7
- Watchers: 3
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# perf-tools
Tools for the performance team that don't fit into other repositories
File issues in the [`perf-frontend-issues` repository](https://github.com/mozilla-mobile/perf-frontend-issues/issues).
## Configuration
To use this repo, you'll need to create a virtual environment and install the
dependencies:
```sh
python3 -m venv venv
source venv/bin/activate
# Ensure the previous commands executed correctly before running this one
# to avoid installing the dependencies globally.
pip install -r requirements.txt
```
If you ever open a new shell, don't forget to reactivate the virtualenv before executing these scripts!
### Pre-push hook
We also recommend setting up a pre-push hook to run some checks before they hit CI:
```
ln -s ../../tools/pre-push-recommended.sh .git/hooks/pre-push
```
## Development
To run the linter, make sure your virtualenv is activated and run:
```sh
pycodestyle
```
Optionally, a path can be passed in. If you want more information about an error, pass the `--show-pep8` option.