Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace flake8 by ruff #47

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python: ['3.7', '3.8', '3.9', '3.10']
python: ['3.9', '3.10', '3.11']
fail-fast: false

steps:
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# -*- coding: utf-8 -*-
#
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
1 change: 0 additions & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
1 change: 0 additions & 1 deletion geany.org.service
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand Down
3 changes: 1 addition & 2 deletions geany/apps.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# coding: utf-8
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand All @@ -17,4 +16,4 @@

class GeanyAppConfig(AppConfig):
name = 'geany'
verbose_name = "Geany"
verbose_name = 'Geany'
3 changes: 1 addition & 2 deletions geany/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# based on http://djangosnippets.org/snippets/564/
#
# LICENCE: This program is free software: you can redistribute it and/or modify
Expand All @@ -14,8 +13,8 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from binascii import hexlify
import inspect
from binascii import hexlify

from django.core.cache import cache as _djcache

Expand Down
9 changes: 4 additions & 5 deletions geany/management/commands/dump_database.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# LICENCE: This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
Expand All @@ -23,7 +22,7 @@


class Command(BaseCommand):
help = "Dump the database (excluding users, sessions and logs)"
help = 'Dump the database (excluding users, sessions and logs)' # noqa: A003

# ----------------------------------------------------------------------
def handle(self, *args, **options):
Expand All @@ -33,7 +32,7 @@ def handle(self, *args, **options):

# ----------------------------------------------------------------------
def _dump_main_database(self):
print('Dump main database')
self.stdout.write('Dump main database')
call_command(
'dumpdata',
'--exclude', 'auth.user',
Expand Down Expand Up @@ -97,7 +96,7 @@ def _dump_nightly_builds_database(self):

database_nightlybuilds_filename = 'tmp_database_nightlybuilds.json'
database_nightlybuild_targets_filename = 'tmp_database_nightlybuild_targets.json'
print('Dump nightlybuilds.NightlyBuild')
self.stdout.write('Dump nightlybuilds.NightlyBuild')
call_command(
'dumpdata',
'--database', 'nightlybuilds',
Expand All @@ -106,7 +105,7 @@ def _dump_nightly_builds_database(self):
'--output', database_nightlybuilds_filename,
'nightlybuilds.NightlyBuild')

print('Dump nightlybuilds.NightlyBuildTarget')
self.stdout.write('Dump nightlybuilds.NightlyBuildTarget')
call_command(
'dumpdata',
'--database', 'nightlybuilds',
Expand Down
Loading