flake8: enable F401 and F403
use an inline comment to disable for the __init__.py case
This commit is contained in:
parent
dd4474a00f
commit
63765f819d
|
@ -1 +1 @@
|
|||
from ._cairo import *
|
||||
from ._cairo import * # noqa: F401,F403
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from math import pi
|
||||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from math import pi
|
||||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from math import pi
|
||||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
cr.scale(width, height)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
cr.scale(width, height)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
from math import pi
|
||||
import cairo
|
||||
|
||||
|
||||
def path_ellipse(cr, x, y, width, height, angle=0):
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
cr.scale(width, height)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
cr.scale(width, height)
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
"""cairo/cairo-demo/png/hering.c translated into Python"""
|
||||
|
||||
import math
|
||||
import cairo
|
||||
|
||||
|
||||
def draw(ctx, width, height):
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
import cairo
|
||||
|
||||
|
||||
def draw(cr, width, height):
|
||||
cr.scale(width, height)
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
#!/usr/bin/env python
|
||||
"""cairo/cairo-demo/png/spiral.c translated into Python"""
|
||||
|
||||
import cairo
|
||||
|
||||
|
||||
def draw(ctx, width, height):
|
||||
wd = .02 * width
|
||||
|
|
|
@ -1,10 +1,5 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
import cairo
|
||||
|
||||
import gi
|
||||
gi.require_version("Gtk", "3.0")
|
||||
gi.require_foreign("cairo")
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
|
||||
from __future__ import division
|
||||
import math
|
||||
import sys
|
||||
|
||||
import cairo
|
||||
import gi
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import tempfile
|
||||
|
||||
import cairo
|
||||
import pytest
|
||||
|
||||
|
|
Loading…
Reference in New Issue