1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-16 12:30:12 +01:00

Remove pylint

This commit is contained in:
Donald Cheng Hong Zou 2022-01-19 09:25:27 -05:00
parent 2e3977e59c
commit fcfd816cec
2 changed files with 4 additions and 28 deletions

View File

@ -1,24 +0,0 @@
name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install Flask ifcfg icmplib flask-qrcode gunicorn
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(find src -name "*.py" | xargs) --disable=line-too-long

View File

@ -66,9 +66,9 @@ def get_dashboard_conf():
Get dashboard configuration
@return: configparser.ConfigParser
"""
config = configparser.ConfigParser(strict=False)
config.read(DASHBOARD_CONF)
return config
r_config = configparser.ConfigParser(strict=False)
r_config.read(DASHBOARD_CONF)
return r_config
def set_dashboard_conf(config):
@ -190,7 +190,7 @@ def read_conf_file(config_name):
conf_peer_data["Peers"].append({})
elif peer > -1:
if len(i) > 0:
tmp = re.split('\s*=\s*', i, 1)
tmp = re.split(r'\s*=\s*', i, 1)
if len(tmp) == 2:
conf_peer_data["Peers"][peer][tmp[0]] = tmp[1]