Comments (1)
Following up on that, Black is a pretty good tool for code formatting (and covers pretty much the functionalities of Yapf).
Using Black, not simply to check the code formatting but also, to format the code would be very handy in our Python projects (like the Zeth client). To do so, we need to:
- Align the line length to Black's default one of 88 in the
.flake8
file (or simply force Black to operate on smaller lines) - We may also want to ignore E501 and E203 errors and instead use BugBear warnings (https://github.com/PyCQA/flake8-bugbear#list-of-warnings) like B950. This can be done by extending the
.flake8
file as follows:
ignore = E501
select = C,E,F,W,B,B901
See: https://github.com/PyCQA/flake8-bugbear#how-to-enable-opinionated-warnings for reference.
from zeth.
Related Issues (20)
- Optimization of batch insertion and related Merkle tree update
- Consider using `pre-commit` as a tool to setup pre-commit hooks
- Consider updating exponents and round values for MiMC HOT 3
- Explicit solc install required for client docker image
- Upgrade to latest web3.py HOT 1
- bug in sha256_ethereum.tcc | get_hash HOT 6
- Use explicit scopes and access specifiers and use minimal scopes by default HOT 1
- Fix docker build of the mpc image on `develop` HOT 1
- Use codespell at part of the tools ran in the CI jobs HOT 1
- Enable Zeth tx caching and GWEI target in Wallet CLI HOT 1
- Clean up ganache build and usage in this repo HOT 1
- codeql-py-build-linux CI job failing HOT 1
- Factorize configuration files across projects HOT 1
- Remove redundancy in filenames HOT 1
- Better expose prover_server (generic) util functions HOT 1
- Refactor build system dependencies to follow PEP-518 HOT 1
- zeth sync leads to ValueError HOT 1
- CI failing
- Clean up zeth CI HOT 1
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 zeth.