Compare commits
13 Commits
547b4b2137
...
v1.8.0
Author | SHA1 | Date | |
---|---|---|---|
cc6dbd8ef9 | |||
3cd7de5649 | |||
f8b36a651d | |||
82c8090afd | |||
fac74219f0 | |||
3305e1d489 | |||
7c598f26a8 | |||
5ea6903881 | |||
6824e7d8c7 | |||
ca63149a67 | |||
f00cd8f6bd | |||
3e8626bfaf | |||
389836c10f |
20
README.md
20
README.md
@@ -1,5 +1,25 @@
|
||||
# TMTC Commander EIVE
|
||||
|
||||
# Run Linter
|
||||
|
||||
Can be used to quickly check validity of script. Install `flake8` first
|
||||
|
||||
```sh
|
||||
python3 -m pip install flake8
|
||||
```
|
||||
|
||||
or on Windows
|
||||
|
||||
```sh
|
||||
py -m pip install flake8
|
||||
```
|
||||
|
||||
and then run the `lint.py` script
|
||||
|
||||
```sh
|
||||
./lint.py
|
||||
```
|
||||
|
||||
# Set up virtual environment
|
||||
|
||||
## Linux
|
||||
|
@@ -1,6 +1,6 @@
|
||||
SW_NAME = "eive"
|
||||
VERSION_MAJOR = 1
|
||||
VERSION_MINOR = 7
|
||||
VERSION_SUBMINOR = 1
|
||||
VERSION_MINOR = 8
|
||||
VERSION_SUBMINOR = 0
|
||||
|
||||
__version__ = "1.7.1"
|
||||
__version__ = "1.8.0"
|
||||
|
13
lint.py
13
lint.py
@@ -4,11 +4,20 @@ import sys
|
||||
|
||||
|
||||
def main():
|
||||
status = os.system("flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics")
|
||||
# Ignore folder created by venv
|
||||
exclude_dirs_flag = '--exclude bin,lib'
|
||||
additional_flags_both_steps = '--count --statistics'
|
||||
additional_flags_first_step = '--select=E9,F63,F7,F82 --show-source'
|
||||
flake8_first_step_cmd = \
|
||||
f'flake8 . {additional_flags_both_steps} {additional_flags_first_step} {exclude_dirs_flag}'
|
||||
status = os.system(flake8_first_step_cmd)
|
||||
if os.WEXITSTATUS(status) != 0:
|
||||
print("Flake8 linter errors")
|
||||
sys.exit(0)
|
||||
os.system("flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics")
|
||||
flake8_second_step_cmd = \
|
||||
f'flake8 . {additional_flags_both_steps} --exit-zero --max-complexity=10 ' \
|
||||
f'--max-line-length=127 {exclude_dirs_flag}'
|
||||
os.system(flake8_second_step_cmd)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
0
tmtc_client_cli.py
Normal file → Executable file
0
tmtc_client_cli.py
Normal file → Executable file
0
tmtc_client_gui.py
Normal file → Executable file
0
tmtc_client_gui.py
Normal file → Executable file
2
tmtccmd
2
tmtccmd
Submodule tmtccmd updated: 2058b28fa1...94978512de
Reference in New Issue
Block a user