forked from ijasperyang/django-survey
-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade interpreters, tool, dependencies (#183)
* Upgrade python interpreters * Put ruff into place * Put pylint and pylint django into place * Update locale
- Loading branch information
1 parent
41837bc
commit 090d6eb
Showing
35 changed files
with
218 additions
and
211 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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
- published | ||
|
||
env: | ||
DEFAULT_PYTHON: 3.9 | ||
DEFAULT_PYTHON: 3.11 | ||
|
||
jobs: | ||
release-pypi: | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,50 +1,48 @@ | ||
#ci: | ||
# skip: [pylint] | ||
ci: | ||
skip: [pylint] | ||
|
||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
rev: v4.5.0 | ||
hooks: | ||
- id: check-merge-conflict | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-json | ||
- repo: https://github.com/myint/autoflake | ||
rev: v2.0.1 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
rev: "v0.1.8" | ||
hooks: | ||
- id: autoflake | ||
args: | ||
- --in-place | ||
- --remove-all-unused-imports | ||
- --expand-star-imports | ||
- --remove-duplicate-keys | ||
- --remove-unused-variables | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.3.1 | ||
hooks: | ||
- id: pyupgrade | ||
args: [--py36-plus] | ||
- id: ruff | ||
args: ["--fix"] | ||
- repo: https://github.com/psf/black | ||
rev: 23.1.0 | ||
rev: 23.12.0 | ||
hooks: | ||
- id: black | ||
args: [--line-length, "120"] | ||
- repo: https://github.com/Pierre-Sassoulas/black-disable-checker/ | ||
rev: v1.1.3 | ||
hooks: | ||
- id: black-disable-checker | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 6.0.0 | ||
hooks: | ||
- id: flake8 | ||
additional_dependencies: [flake8-bugbear, flake8-typing-imports==1.12.0] | ||
- repo: https://github.com/PyCQA/isort | ||
rev: 5.12.0 | ||
hooks: | ||
- id: isort | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v3.0.0-alpha.6 | ||
rev: v3.1.0 | ||
hooks: | ||
- id: prettier | ||
args: [--prose-wrap=always, --print-width=88] | ||
exclude: "survey/static/|dev/templates/|survey/templates/|survey/locale/|survey/tests/" | ||
- repo: local | ||
hooks: | ||
- id: pylint | ||
name: pylint | ||
entry: pylint | ||
language: system | ||
types: [python] | ||
args: | ||
[ | ||
"-rn", | ||
"-sn", | ||
"--rcfile=pyproject.toml", | ||
"--django-settings-module=settings", | ||
"--load-plugins=pylint_django", | ||
"--fail-on=I", | ||
] | ||
exclude: "survey/migrations/" |
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 |
---|---|---|
@@ -1,22 +0,0 @@ | ||
[MASTER] | ||
# Python code to execute, usually for sys.path manipulation such as pygtk.require(). | ||
init-hook=import sys; sys.path.insert(0, 'survey');sys.path.insert(0, 'venv/lib/python3.7/site-packages/'); | ||
|
||
[MESSAGES CONTROL] | ||
# I0011 Warning locally suppressed using disable-msg | ||
disable= | ||
I0011, | ||
no-member, | ||
missing-docstring, # We don't want docstring everywhere | ||
C0330, # black handle this | ||
too-few-public-methods, # More harmful than beneficial in django project | ||
too-many-arguments, | ||
|
||
ignore=migrations | ||
|
||
[BASIC] | ||
# Good variable names which should always be accepted, separated by a comma. | ||
good-names=i,j,k,ex,Run,_,f,e,maxDiff | ||
|
||
[FORMAT] | ||
max-line-length=120 | ||
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
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
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-07 14:14+0000\n" | ||
"POT-Creation-Date: 2023-12-19 14:50+0000\n" | ||
"PO-Revision-Date: 2021-01-23 11:53+0000\n" | ||
"Last-Translator: b' <>'\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -121,28 +121,28 @@ msgstr "rechts" | |
msgid "Cannot generate PDF, we need 'xelatex' to be installed." | ||
msgstr "Kann PDF nicht exportieren, denn 'xelatex' muss installiert sein!" | ||
|
||
#: survey/exporter/tex/survey2tex.py:79 | ||
#: survey/exporter/tex/survey2tex.py:80 | ||
msgid "We could not render a chart because the type" | ||
msgstr "Wir konnten eine Grafik nicht erstellen, weil der Typ" | ||
|
||
#: survey/exporter/tex/survey2tex.py:82 | ||
#: survey/exporter/tex/survey2tex.py:83 | ||
msgid "is not a standard type nor the path to an importable valid Question2Tex child class. Choose between 'raw', 'sankey', 'pie', 'cloud', 'square', 'polar' or 'package.path.MyQuestion2TexCustomClass'" | ||
msgstr "kein Standard Typ und auch kein Pfad zu einer importierbaren Question2Tex child class ist. Wähle zwischen 'raw', 'sankey', 'pie', 'cloud', 'square', 'polar' oder 'package.path.MyQuestion2TexCustomClass'" | ||
|
||
#: survey/exporter/tex/survey2tex.py:156 | ||
#: survey/exporter/tex/survey2tex.py:153 | ||
msgid "No questions to display in this survey." | ||
msgstr "In dieser Umfrage sind keine Fragen die angezeigt werden können." | ||
|
||
#: survey/exporter/tex/survey2tex.py:186 | ||
#: survey/exporter/tex/survey2tex.py:183 | ||
msgid "Cannot export multiple PDF, choose only one." | ||
msgstr "Kann nicht mehrere PDFs exportieren. Es kann nur eins ausgewählt werden." | ||
|
||
#: survey/exporter/tex/survey2tex.py:195 | ||
#: survey/exporter/tex/survey2tex.py:192 | ||
#, python-format | ||
msgid "Error during PDF generation: %s" | ||
msgstr "Fehler beim erstellen des PDFs: %s" | ||
|
||
#: survey/exporter/tex/survey2tex.py:202 | ||
#: survey/exporter/tex/survey2tex.py:199 | ||
msgid "Export to PDF" | ||
msgstr "Exportiere als PDF" | ||
|
||
|
Oops, something went wrong.