Suche senden
Hochladen
PEP8 and-autopep8 - PyCon APAC 2013 LT
•
1 gefällt mir
•
1,264 views
Hattori Hideo
Folgen
Technologie
Melden
Teilen
Melden
Teilen
1 von 14
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
osakapy 2014.10 LT (CI for Python Project)
osakapy 2014.10 LT (CI for Python Project)
Hattori Hideo
image-matchの紹介
image-matchの紹介
Hattori Hideo
Php kansai-2013 lt-slide
Php kansai-2013 lt-slide
Hattori Hideo
Osakapy 20140313 lt
Osakapy 20140313 lt
Hattori Hideo
osakapy 2014.05 LT
osakapy 2014.05 LT
Hattori Hideo
Asynchronous programming in Python
Asynchronous programming in Python
Aurynn Shaw
Go破壊
Go破壊
Hattori Hideo
The state of PyPy
The state of PyPy
m_r_e
Empfohlen
osakapy 2014.10 LT (CI for Python Project)
osakapy 2014.10 LT (CI for Python Project)
Hattori Hideo
image-matchの紹介
image-matchの紹介
Hattori Hideo
Php kansai-2013 lt-slide
Php kansai-2013 lt-slide
Hattori Hideo
Osakapy 20140313 lt
Osakapy 20140313 lt
Hattori Hideo
osakapy 2014.05 LT
osakapy 2014.05 LT
Hattori Hideo
Asynchronous programming in Python
Asynchronous programming in Python
Aurynn Shaw
Go破壊
Go破壊
Hattori Hideo
The state of PyPy
The state of PyPy
m_r_e
Rina sim workshop
Rina sim workshop
ICT PRISTINE
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
dwvisser
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
JesusArroyoTorrens
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
PyCon Italia
Python in real world.
Python in real world.
Alph@.M
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Younggun Kim
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Younggun Kim
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
Ketan Raval
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
kwatch
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Fred Moyer
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
bennuttall
Python x Django
Python x Django
Shin Tokiwa
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
Ahmed Gad
TPOT: The data science assistant
TPOT: The data science assistant
Hoffman Lab
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Takashi Nojima
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Insuk (Chris) Cho
Python coding standards
Python coding standards
Sharad Singla
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Carlos Martins
Python tutorial
Python tutorial
Guru99
Python Crash Course
Python Crash Course
Haim Michael
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Weitere ähnliche Inhalte
Ähnlich wie PEP8 and-autopep8 - PyCon APAC 2013 LT
Rina sim workshop
Rina sim workshop
ICT PRISTINE
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
dwvisser
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
JesusArroyoTorrens
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
PyCon Italia
Python in real world.
Python in real world.
Alph@.M
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Younggun Kim
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Younggun Kim
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
Ketan Raval
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
kwatch
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Fred Moyer
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
bennuttall
Python x Django
Python x Django
Shin Tokiwa
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
Ahmed Gad
TPOT: The data science assistant
TPOT: The data science assistant
Hoffman Lab
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Takashi Nojima
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Insuk (Chris) Cho
Python coding standards
Python coding standards
Sharad Singla
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Carlos Martins
Python tutorial
Python tutorial
Guru99
Python Crash Course
Python Crash Course
Haim Michael
Ähnlich wie PEP8 and-autopep8 - PyCon APAC 2013 LT
(20)
Rina sim workshop
Rina sim workshop
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
Welcome to the Cheese Shop: setuptools, virtualenv and PyPUG
2016/10/28: Reset ETSII UPM
2016/10/28: Reset ETSII UPM
Monitoraggio del Traffico di Rete Usando Python ed ntop
Monitoraggio del Traffico di Rete Usando Python ed ntop
Python in real world.
Python in real world.
Writing Fast Code - PyCon HK 2015
Writing Fast Code - PyCon HK 2015
Writing Fast Code (JP) - PyCon JP 2015
Writing Fast Code (JP) - PyCon JP 2015
Understanding Technologies - Presentation for College Students
Understanding Technologies - Presentation for College Students
PHPer100人にPythonを教えてみた
PHPer100人にPythonを教えてみた
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Comprehensive Container Based Service Monitoring with Kubernetes and Istio
Picamera, Flask and the Twitter API Raspberry Pi workshop
Picamera, Flask and the Twitter API Raspberry Pi workshop
Python x Django
Python x Django
ICEIT'20 Cython for Speeding-up Genetic Algorithm
ICEIT'20 Cython for Speeding-up Genetic Algorithm
TPOT: The data science assistant
TPOT: The data science assistant
Plugin for CakePHP2.0
Plugin for CakePHP2.0
Samsung SDS OpeniT - The possibility of Python
Samsung SDS OpeniT - The possibility of Python
Python coding standards
Python coding standards
Telegram bots with python why not- v1.0
Telegram bots with python why not- v1.0
Python tutorial
Python tutorial
Python Crash Course
Python Crash Course
Kürzlich hochgeladen
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
Remote DBA Services
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Martijn de Jong
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Anna Loughnan Colquhoun
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
Radu Cotescu
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
RTylerCroy
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
apidays
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Neo4j
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Roshan Dwivedi
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
wesley chun
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
apidays
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
sudhanshuwaghmare1
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
apidays
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
SynarionITSolutions
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
sammart93
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
The Digital Insurer
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
The Digital Insurer
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
Product Anonymous
Kürzlich hochgeladen
(20)
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
🐬 The future of MySQL is Postgres 🐘
🐬 The future of MySQL is Postgres 🐘
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
PEP8 and-autopep8 - PyCon APAC 2013 LT
1.
PEP 8 and autopep8 PyCon APAC 2013 LT / 2013.09.15 Hideo Hattori
2.
whoami C/Python/Zsh My Python Projects ,
, , ... code on , @hhatto pgmagick otamapy genzshcomp meow Github Bitbucket
3.
PEP 8 coding conventions for
the Python code Nc”úùk1 ÕúßÕc v ”c v göpvz̈v©–− 2013.08.01•ò&©¤ http://www.python.org/dev/peps/pep- 0008/
4.
PEP 8 modernisation 1 m¤ß”5ðcv •9¡−l¡ ׳•9¡−l¡ Python1.5.2•9¡−l¡w£Œ©–¤ß Python2/3•9¡−l¡wûl©¤ß http://hg.python.org/peps/rev/fb24c80e9afb
5.
About autopep8 simple command-line tool automatic
formatting for Python Code require v0.9.4 (2013.09.08) pep8 $ pip install autopep8
6.
For Example invalid PEP 8
code import sys, os n = True if n != None: print("none") def f(x): return 2 * x
7.
Output Auto-Formatting Code $ autopep8 invalid.py import
sys import os n = True if n != None: print("none") def f(x): return 2 * x
8.
Aggressive $ autopep8 -a
invalid.py import sys import os n = True if n is not None: print("none") def f(x): return 2 * x
9.
Print Diff $ autopep8 -d
invalid.py --- original/invalid.py +++ fixed/invalid.py @@ -1,7 +1,10 @@ -import sys, os +import sys +import os n = True if n != None: print("none") -def f(x): return 2 * x + +def f(x): + return 2 * x
10.
Other Feature ignore/select errors max-line recursive/jobs
11.
ofiØ#”O •PEP 8³
12.
⁄¿autopep8³³›–Æ–z“o
13.
https://github.com/hhatto/autopep8
14.
Thank you
Jetzt herunterladen