Comments (5)
Not for Py, but Github action is free (and should be ok for your needs)
from gwsl-source.
HI, here's a list of good tools that comes in handy
- black for formatting;
- mypy for type checking;
- flake8 (and plugins) for linting;
- autoflake to fix some lint errors automatically;
- isort (I prefer reorder-python-imports) to... reorder python imports 😉;
- pre-commit to run the aforementioned tools when creating a commit.
Basically, you just need to add some configuration files for those tools, do pip install pre-config
and pre-commit install
;
this way the pre-commit hooks are installed and run everytime you do a commit.
You can also run it manually on every file of the project via pre-commit run --all-files
;
There's also the official github action that will run the checks on the commits and PRs (useful if contributors forget to install the hooks).
Obviously I would also add pytest for unit testing and pytest-cov to make sure your code is properly tested.
The github documentation explains how to create a github action for pytest.
For better insights on the code coverage, you can use codecov.
I can setup something for, but some settings are subjective.
The first thing to choose is the desired line length; I've settled with 80 for my projects, so that I can have two panes in my IDE for faster copy/pasting or testing, etc.
from gwsl-source.
To configure pylint behaviour you have to put a pylintrc
in the root directory.
To disable specific checks on lines or entire modules see the FAQ.
Also, since pylint is a static checker, you don't need to install the dependencies of your project.
from gwsl-source.
That sounds good. I unfortunately do not have experience with linters or "CI"'s. Any recommendations?
from gwsl-source.
I have the github action for pylint turned on at the moment. What annoys me is that the big things it dislikes are not changeable and are necessary for the code to work. I am not sure how to git around this.
from gwsl-source.
Related Issues (20)
- Frighteningly slow GUI after WSL kernel update HOT 8
- Cannot fullscreen apps like QEMU in GWSL HOT 6
- Need exclusive keyboard mode option and a hotkey to exit that mode HOT 3
- gwsl with screen readers HOT 3
- Remember last window state HOT 1
- Custom icons HOT 1
- Pin shortcut in the taskbar HOT 2
- Feature : mount usb disk
- Unhandled exception in script - error when running the downloaded distribution HOT 3
- Price confusion / Where are the binaries? HOT 36
- ? HOT 1
- Nothing happens when running build.py
- [Feature] Add GUI Package Installer for WSL
- Windows Security found a trojan in self-built executable HOT 1
- Black title bar on windows dark theme HOT 1
- Problem when building HOT 1
- Error Upon Startup HOT 4
- Latest version from Microsoft Store triggers virus detection in eset
- Is This Paid Now?
- GWSL Service keeps crashing on Startup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwsl-source.