-
-
Notifications
You must be signed in to change notification settings - Fork 48
Improve code-base and coverage #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It causes GitHub Releases to be marked as drafts
- Use super constructors and super methods - Remove code duplications where possible - Fixed typos
Codecov Report
@@ Coverage Diff @@
## dev #31 +/- ##
==========================================
+ Coverage 78.46% 81.01% +2.55%
==========================================
Files 10 10
Lines 4453 4288 -165
==========================================
- Hits 3494 3474 -20
+ Misses 959 814 -145
Continue to review full report at Codecov.
|
Still not great since we can't reliably increment the version and produce releases but it's an improvement since we'll only have to update the version once per release
- Adds `WHERE` block tests - Adds max line and max comment line diagnostic tests - Adds semicolon tests - Adds `ENUM` tests - Disables logging for debug calls and Python 2
Hi @gnikit, thanks for taking up the maintainership of I notice here you've removed some code for auto-incrementing the version. I've recently been using setuptools_scm in all my python projects, which automatically sets the version from the latest git tag, and found it very useful. If you're interested, I can open a PR implementing it. |
Hi @ZedThree, I will have a look at setuptools_scm. The code I commented out does not affect the releases of
I suspect that setuptools_scm will run into issue 1), since GitHub will have already created the tag. I will definitely have a look though, feel free to open a PR, you can also locally test how github actions will perform by using https://github.com/nektos/act., e.g. |
Yep, that is how I automate releases too. setuptools_scm writes to a file that you add to The downside is that using an editable install locally might not pick up changes to the version number without running I didn't know about nektos/act, thanks! |
This is for cross-platform compatibility when testing, since os.path tends to mess up capitalisation of paths on windows which are case-insensitive but pytest does not know that so we have to use Path instead which yields more accurate results.
Should make it easier to write cross platform unittests. Also, removed the `shell=True` we do not need that anymore, only the `sys.executable`. Some additional sanitisation of input and Path fixups
Also, fixes uri creation in diagnostic tests
Closes Keywords always sorted on Windows #36
An attempt to remove some of the more obvious clutter