-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
leandro.leites
committed
Nov 21, 2019
1 parent
f9693a4
commit 27de2c5
Showing
3 changed files
with
108 additions
and
0 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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2019 Leandro Leites Barrios | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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,44 @@ | ||
# TOPyN: Typed Opinionated PYthon Normalizer | ||
|
||
## About | ||
|
||
<img src="scooter.svg" alt="Scooter" width="600"/> | ||
|
||
Python is a quite flexible language, something that is not soo good if you start working on mid level size projects or in teams. | ||
Over the time we have found a set of rules that make working with Python in this context easier, and once you get you use to them you want to apply it to every small Python snippet that you do. | ||
|
||
The problem is that this rules depend on a set of packages and config files and packages installed, and every time we change our mind about one rule we need to update multiple projects. | ||
Topyn solve this by providing in one single place all the tools and configurations we use in our projects. | ||
|
||
All the configurations are part of the project and is not the porpoise of this project to make them flexible, if you need that please check the packages that we use, a d run them with your configuration. | ||
|
||
## Command line | ||
``` | ||
Typed Opinionated PYthon Normalizer | ||
positional arguments: | ||
path path to topynize (default: .) | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
--fix try to fix my code (default: False) | ||
--version show program's version number and exit | ||
``` | ||
|
||
|
||
## Tools included | ||
|
||
### [Flake8](https://github.com/PyCQA/flake8) | ||
flake8 is a command-line utility for enforcing style consistency across Python projects | ||
|
||
#### Flake8 plugins | ||
#### [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) | ||
A plugin for Flake8 finding likely bugs and design problems in your program. Contains warnings that don't belong in pyflakes and pycodestyle. | ||
#### [flake8-print](https://github.com/JBKahn/flake8-print) | ||
Check for Print statements in python files. | ||
#### [flake8-comprehensions](https://github.com/adamchainz/flake8-comprehensions) | ||
A flake8 plugin that helps you write better list/set/dict comprehensions. | ||
### [Black](https://github.com/psf/black) | ||
The Uncompromising Code Formatter | ||
### [Mypy](https://github.com/python/mypy) | ||
Optional static typing for Python (PEP 484) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.