Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ski for openSUSE:Factory checked in at 2023-07-25 11:50:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ski (Old) and /work/SRC/openSUSE:Factory/.ski.new.1467 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ski" Tue Jul 25 11:50:31 2023 rev:6 rq:1099766 version:6.14 Changes: -------- --- /work/SRC/openSUSE:Factory/ski/ski.changes 2020-03-30 23:07:50.952328475 +0200 +++ /work/SRC/openSUSE:Factory/.ski.new.1467/ski.changes 2023-07-25 11:51:56.933749563 +0200 @@ -1,0 +2,6 @@ +Sun Jul 16 08:07:11 UTC 2023 - Dirk Müller <[email protected]> + +- update to 6.14: + * Update for modern pylint. + +------------------------------------------------------------------- Old: ---- ski-6.13.tar.gz New: ---- ski-6.14.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ski.spec ++++++ --- /var/tmp/diff_new_pack.sIpntO/_old 2023-07-25 11:51:57.873755066 +0200 +++ /var/tmp/diff_new_pack.sIpntO/_new 2023-07-25 11:51:57.877755090 +0200 @@ -1,7 +1,7 @@ # # spec file for package ski # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: ski -Version: 6.13 +Version: 6.14 Release: 0 Summary: Skiing simulation with curses interface in python License: BSD-3-Clause ++++++ ski-6.13.tar.gz -> ski-6.14.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ski-6.13/Makefile new/ski-6.14/Makefile --- old/ski-6.13/Makefile 2019-04-26 20:24:26.000000000 +0200 +++ new/ski-6.14/Makefile 2023-02-17 16:27:18.000000000 +0100 @@ -35,17 +35,8 @@ rm -f /usr/share/pixmaps/ski.png rm -f /usr/share/appdata/ski.xml -pychecker: - @ln -f ski ski.py - @-pychecker --only --limit 50 ski.py - @rm -f ski.py* - -PYLINTOPTS = --rcfile=/dev/null --reports=n \ - --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" \ - --dummy-variables-rgx='^_' -SUPPRESSIONS = "C0103,C0111,C0301,C0325,C0326,C0330,C0410,C1001,R0902,R0911,R0912,W0621,W0622,W0141" pylint: - @pylint $(PYLINTOPTS) --disable=$(SUPPRESSIONS) ski + @pylint --score=n ski version: @echo $(VERS) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ski-6.13/NEWS new/ski-6.14/NEWS --- old/ski-6.13/NEWS 2019-04-26 20:52:10.000000000 +0200 +++ new/ski-6.14/NEWS 2023-02-17 16:31:07.000000000 +0100 @@ -1,6 +1,12 @@ ski project history -6.2: 2019-04-26 +6.14: 2023-02-17:: + Update for modern pylint. + +6.13: 2021-09-20:: + Ubuntu has abolished /usr/bin/python, change shebang to python3. + +6.12: 2019-04-26 Rehosted at GitLab. 6.12: 2016-02-02 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ski-6.13/ski new/ski-6.14/ski --- old/ski-6.13/ski 2019-04-26 20:51:36.000000000 +0200 +++ new/ski-6.14/ski 2023-02-17 16:28:34.000000000 +0100 @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-2-Clause """\ This is ski %s, designed by Mark Stevans, Python port by Eric S. Raymond. @@ -17,9 +17,12 @@ # This code runs under both Python 2 and Python 3. Preserve this property! from __future__ import print_function +# pylint: disable=invalid-name,missing-function-docstring,no-else-return,redefined-outer-name,consider-using-f-string,consider-using-enumerate + +# pylint: disable=multiple-imports import time, random, curses, copy, sys, os -version = "6.13" +version = "6.14" REP_SNOW = '.' REP_TREE = 'Y' @@ -112,9 +115,11 @@ def percent(X): return (random.randint(0, 9999) / 100.0) <= (X) def exists(X): - return X != None + return X is not None +# pylint: disable=too-many-instance-attributes class SkiWorld: + "The game state." def __init__(self): # Constants controlling the multiple cellular growth # automatons that are executed in parallel to generate @@ -157,6 +162,7 @@ "Return a random location" return random.choice(list(range(len(self.slope)))) + # pylint: disable=too-many-branches def gen_next_slope(self): # Generates the slope of the next level, dependent upon # the characteristics of the current level, the probabilities, and the @@ -211,7 +217,7 @@ else: self.slope[i] = REP_SNOW - def update_level(self, player): + def update_level(self): # Go to the next level, and move the player. self.level_num += 1 @@ -312,6 +318,7 @@ return "%4d %s" % (self.level_num, picture) class SkiPlayer: + "The player in all his glory." injuries = ( "However, you escaped injury!", "But you weren't hurt at all!", @@ -367,8 +374,7 @@ score += degree * POINTS_PER_INJURY_DEGREE # Negative scores are just too silly. - if score < 0: - score = 0 + score = max(score, 0) # Print the player's score. print("Your score for this run is %ld." % score) @@ -405,6 +411,7 @@ if player.jump_count >= 0: player.jump_count -= 1 + # pylint: disable=too-many-return-statements,too-many-branches def do_command(self, world, cmdline): # Print a prompt, and read a command. Return True to advance game. cmd = cmdline[0].upper() @@ -466,6 +473,7 @@ # Main sequence if __name__ == "__main__": try: + # pylint: disable=redefined-builtin input = raw_input except NameError: pass @@ -517,7 +525,7 @@ if not player.do_command(world, cmd): continue world.manipulate_objects(player) - world.update_level(player) + world.update_level() player.update_player() except (KeyboardInterrupt, EOFError): sys.stdout.write(reset)
