Skip to content

Commit

Permalink
fix(agw): Added python version requirement infromation (magma#12376)
Browse files Browse the repository at this point in the history
* fix(agw): Added python version requirement infromation

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>

* Added python version information to precommit script

Signed-off-by: VinashakAnkitAman <ankit.aman@radisys.com>
  • Loading branch information
VinashakAnkitAman authored and emakeev committed Aug 5, 2022
1 parent 95cf5d7 commit a8b75f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lte/gateway/docker/python-precommit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ cd $MAGMA/lte/gateway/python
# to run the flake8 linter by specifying paths
./precommit.py --lint -p PATH1 PATH2
# to run the flake8 linter on all modified files in the current commit
./precommit.py --lint--diff
./precommit.py --lint --diff

# to run all available formatters by specifying paths
./precommit.py --format -p PATH1 PATH2
# to run all available formatters on all modified files in the current commit
./precommit.py --format--diff
./precommit.py --format --diff
```

Note: Python version >= 3.7 is needed to run the above precommit.py script

## How to add/update Python dependencies via `requirements.in`
`requirements.in` is the file that manages most `Python` package dependencies for this Dockerfile.
If you need to add or update dependencies in `requirements.in`, always run the following commands.
Expand Down
1 change: 1 addition & 0 deletions lte/gateway/python/precommit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
# Note: Python version >= 3.7 is needed to run this script
"""
Copyright 2020 The Magma Authors.
Expand Down

0 comments on commit a8b75f1

Please sign in to comment.