You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test tools Pylint, Flake8 and Bandit configurations were
simplified.
The Pylint configuration was a long default configuration
that contained all the options with most of the options
in default values. There was also a separate files for the
tests and snippy source code. Now only the needed options
are configured and the files are merged to one default
file 'pylintrc'.
The Flake8 configuration was moved to setup.cfg to remove
own configuration file.
The result files for Pylint and Bandit were removed. This
was not a good idea in the past.
The configuration should be read from pyproject.toml. But
the tools do not yet support this feature.
[1] pylint-dev/pylint#617
[2] https://gitlab.com/pycqa/flake8/issues/428
[3] pytest-dev/pytest#1556
Signed-off-by: Heikki Laaksonen <[email protected]>
Copy file name to clipboardExpand all lines: TODO.md
+5-8Lines changed: 5 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
## WORKING
2
2
-[ ] Check and fix API perfromance test results after in-memory change.
3
-
-[ ] Test if new pypy venv is able to select the pypy specific psycopg2cffi
4
3
-[ ] Change name of --scat to --cat?
5
4
-[ ] Fix cause 'Content has been created without internal errors.' This breaks when there is e.g. created and bad request. That is the cause ok does not see 404 and sends OK.
6
5
-[ ] Fix updating Markdown based solutions in text formats does not work because the Mkdn solution does not have text header and data structure.
@@ -28,8 +27,6 @@
28
27
-[ ] Fix digest computation once things are setling down. Changing this forces changes to all tests and code that rely on digest.
29
28
-[ ] Fix updating content without updates changes the updated timestamp. There is no need to store the content either.
30
29
-[ ] Add delete for wheel build directory for automation. If the folder exist this is a problem (at least used to be) see how to fail python release/building/something.
31
-
-[ ] Refactor Makefile to have python|python3|pypy|pypy3 as ${PYTHON}.
32
-
-[ ] How to compile psycopg2 for PyPY?
33
30
-[ ] Config get_resource could return empty Resource instead of None in failure. This is now related to new migrate refactoring that prevents migrating template resources.
34
31
-[ ] Fix (remove) the LANG in Alpine based dockerfile? Is this useless as MUSL does not support locales? https://github.com/gliderlabs/docker-alpine/issues/144
35
32
-[ ] Fix server silent startup failure if for example the port is reserved. How to get proper error cause for user?
@@ -62,12 +59,13 @@
62
59
-[ ] Fix (optimize) Why GET with limit=20 is much slower than limit=1? Even POST with one resource is much faster than GET with limit=20 (Sqlite in tests). The test produced 409 from trying to POST the same content in loop.
63
60
64
61
## RELEASING
65
-
-[ ] Document user must be able to run Docker. Add instructions.
66
62
-[ ] Automate PostgreSQL startup.
67
63
-[ ] Remove running snippy container before testing.
68
-
-[ ] Use make upgrade-wheel PYTHON=pypy3 instead of PYPY targets. Change setup so that it looks the python version and there are no pypy specific extras (like the server)
69
64
-[ ] Snippy asciinema semi faked prompt fails with rest api responses. The prompt is in the same line as the last curly bracket from rest api response.
70
65
66
+
## PACKAGING
67
+
-[ ] Change Pytest, Pylint, Flake8, Pyflake and Bandit to use pyproject when the support comes. This merges the configuration files to one place.
68
+
71
69
## FEATURES
72
70
-[ ] Add CORS https://stackoverflow.com/a/45183343. This is needed to make the server usable at all?
73
71
-[ ] Add decsription, name, versions and source to CLI? Or does this make the CLI too bloated? These can be updated via editor or REST API.
@@ -76,7 +74,6 @@
76
74
-[ ] Add combine on top of migrate and merge. The combine would allow adding for example a tag to an existing list of tags. This would be nice for CLI and could be used with RFC 6902 (JSON Patch) (if implemented).
77
75
-[ ] Add support to search phrases like has 'active end'. This should return one result with default set but it returns two since each word is searched separately.
78
76
-[ ] Add support to find dead links.
79
-
-[ ] Add Travis CI for PyPy version v6.0 for Python 3 when it comes https://github.com/travis-ci/travis-ci/issues/9542
80
77
-[ ] Add test client to measure performance of the server.
81
78
-[ ] Add user management with a new user table that lins to contents table.
82
79
-[ ] Add limit to multilevel sort fields to two fields to avoid complex scenarios.
@@ -132,7 +129,6 @@
132
129
-[ ] Why changing self._data = data in data setter in line 160 to self.data = data in config base seems to cause core. This can be used to set the Travis gdb parameters.
133
130
-[ ] Should _add_date in Content() be based on updated when DATE already set? The reason would be that this sets the text template DATE and it should be always latest which is updated?
134
131
-[ ] Fix tox and Python 3.4. Tox -e py34 // http://notes.webutvikling.org/darn-installation-of-python-3-4/. This was broken with Fedora 26. With Fedora 30 this works. This is heere because complication instructions are not complete in tox.ini.
135
-
-[ ] Fix PyPy 5.5.0 (Python 3.3) that does not have sqlite uri=True and does not have server 'ssl_version': ssl.PROTOCOL_TLSv1_2. Otherwise tests pass with exception of schema validation errors. works with later Pypy would be the best quess.
136
132
137
133
## REFACTOR
138
134
-[ ] Storage update() supports only one resource and this is not in line with others. Change to collection?
@@ -192,9 +188,10 @@
192
188
-[ ] Fix the Python2 test database naming to be random temp file in the same folder to allow parallelism.
193
189
-[ ] Why when in Python2 a database test fails, it leaves hanging resources and DB clean does not work? Was this fixed into sqlite3_helper already?
194
190
-[ ] How to better prevent commits to snippy.db than git hooks or git --assume-unchanged?
191
+
-[ ] Fix PyPy 5.5.0 (Python 3.3) that does not have sqlite uri=True and does not have server 'ssl_version': ssl.PROTOCOL_TLSv1_2. This is working with latest PyPy implementations and this is not a priority fix.
195
192
196
193
## FOLLOW EXTERNAL BUGS/ISSUES
197
-
-[] Misleading ValidationError from AnyOf required property list // https://github.com/Julian/jsonschema/issues/535
194
+
-[x] Misleading ValidationError from AnyOf required property list // https://github.com/Julian/jsonschema/issues/535
198
195
-[ ] Is there an external bug with more and ANSI color codes? // 'Linux more command with ANSI colors'
199
196
-[ ] Pytest support for PEP-518 pyproject.toml is missing // https://github.com/pytest-dev/pytest/issues/1556
200
197
-[ ] OpenAPI does not support OPTIONS HTTP method and it cannot be defined. // https://github.com/OAI/OpenAPI-Specification/issues/325
0 commit comments