pythonista_suncalculator_ipad's Issues
Do not use bare except:
https://www.python.org/dev/peps/pep-0008/#programming-recommendations
When catching exceptions, mention specific exceptions whenever possible instead of using a bare
except:
clause:
https://github.com/PyCQA/flake8-bugbear B001
Do not use bare except:
, it also catches unexpected events like memory errors, interrupts, system exit, and so on. Prefer except Exception:
. If you're sure what you're doing, be explicit and write except BaseException:
.
https://realpython.com/the-most-diabolical-python-antipattern
mainprogram() has a cyclomatic complexit of 66
mainprogram()
is currently 600+ lines long and has a cyclomatic complexity of 66.
To improve readability and maintainability, it should be broken into multiple functions.
https://github.com/PyCQA/mccabe is included in flake8
.
% flake8 --select=C9 --max-complexity=39
# The recommended setting is 10.
./suncalc.py:2803:1: C901 'mainprogram' is too complex (66)
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.