-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Workflow with Pylint analyzer
- Loading branch information
1 parent
fab2921
commit 1c0cdb6
Showing
9 changed files
with
285 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install -r requirements.txt | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint --disable=C0114 --disable=C0115 --disable=C0116 $(git ls-files '*.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
""" | ||
List of available language codes | ||
""" | ||
LANGUAGE_CODES = [ | ||
"af", | ||
"am", | ||
"ar", | ||
"as", | ||
"az", | ||
"ba", | ||
"be", | ||
"bg", | ||
"bn", | ||
"bo", | ||
"br", | ||
"bs", | ||
"ca", | ||
"cs", | ||
"cy", | ||
"da", | ||
"de", | ||
"el", | ||
"en", | ||
"es", | ||
"et", | ||
"eu", | ||
"fa", | ||
"fi", | ||
"fo", | ||
"fr", | ||
"gl", | ||
"gu", | ||
"ha", | ||
"haw", | ||
"he", | ||
"hi", | ||
"hr", | ||
"ht", | ||
"hu", | ||
"hy", | ||
"id", | ||
"is", | ||
"it", | ||
"ja", | ||
"jw", | ||
"ka", | ||
"kk", | ||
"km", | ||
"kn", | ||
"ko", | ||
"la", | ||
"lb", | ||
"ln", | ||
"lo", | ||
"lt", | ||
"lv", | ||
"mg", | ||
"mi", | ||
"mk", | ||
"ml", | ||
"mn", | ||
"mr", | ||
"ms", | ||
"mt", | ||
"my", | ||
"ne", | ||
"nl", | ||
"nn", | ||
"no", | ||
"oc", | ||
"pa", | ||
"pl", | ||
"ps", | ||
"pt", | ||
"ro", | ||
"ru", | ||
"sa", | ||
"sd", | ||
"si", | ||
"sk", | ||
"sl", | ||
"sn", | ||
"so", | ||
"sq", | ||
"sr", | ||
"su", | ||
"sv", | ||
"sw", | ||
"ta", | ||
"te", | ||
"tg", | ||
"th", | ||
"tk", | ||
"tl", | ||
"tr", | ||
"tt", | ||
"uk", | ||
"ur", | ||
"uz", | ||
"vi", | ||
"yi", | ||
"yo", | ||
"zh", | ||
"yue", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.