arthurazs / dotapatch Goto Github PK
View Code? Open in Web Editor NEWDota 2: Changelog formatted as it should be.
Home Page: https://arthurazs.github.io/dotapatch/
License: MIT License
Dota 2: Changelog formatted as it should be.
Home Page: https://arthurazs.github.io/dotapatch/
License: MIT License
import logging
from logging import getLevelName as get_level
import argparse
import aux
parser = argparse.ArgumentParser(description='A test script')
parser.add_argument(
'--debug', help='debug output verbose',
action='store_const', dest='log_level', const='DEBUG', default='INFO')
parser.add_argument(
'--save-log', help='save log output',
action='store_true', dest='save_log')
args = parser.parse_args()
log_config = {
'format': '%(levelname)s %(message)s',
'level': get_level(args.log_level)
}
if args.save_log:
save_config = {
'filename': 'example.log', 'filemode': 'w',
'format': '''
%(asctime)s (%(name)s.%(module)s, line %(lineno)d)
%(levelname)s %(message)s'''
}
log_config.update(save_config)
logging.basicConfig(**log_config)
logger = logging.getLogger('dotapatch')
logger.debug('var x = 1')
logger.info('next message will be a warning')
logger.warning('about to go into dotapatch.aux')
aux.main()
logger.critical('cant recovery')
import logging
def main():
logger = logging.getLogger('dotapatch')
logger.error('error in aux')
Dota changed their changelog structure.
This is an ideia.
Maybe even remove this module and put its code under __main__.py
.
See codacy
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
This is an ideia.
Remove raise raise SystemExit(-1)
, and only raise true exceptions. Handle the exceptions on __main__.py
:
dotapatch = Dotapatch(args.file, args.template)
try:
sys_exit(dotapatch.parse())
except (ExceptionType1, ExceptionType1, ExceptionTypeEtc) as err:
handle(err)
The generated HTML relies on the content of the css/
folder (css, fonts and images).
Add an argument to allow the generation of HTML code which points to remote css, fonts and images.
P.S. #6 (Create a 'theme' file and add '--theme' argument) should help to solve this.
Also use green.
EXAMPLE
* Drow Ranger strength gain reduced from 1.9 to 1.6
Should be formatted as:
* Strength gain reduced from 1.9 to 1.6
Create one issue for each of the following:
Testing Projects' tab
If it is not, make it be.
See #8
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create separate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
Describe the solution you'd like
I wonder if you can add a feature: parse change by hero.
Describe alternatives you've considered
It will show all the changes from patch 6.88e to 7.19 for a selected hero.
Additional context
Sent by u/5odin
The theme
file will be imported in model.py
and used as a base to generate the HTML.
-t, --theme
argument will point to the theme to be used as a base.
sudo apt-get install python3
sudo apt-get install python-pip
Make it happen $ pip install dota2patches --upgrade
TODO
.md
to .rst
(Pandoc)Solve every TODO in code classes/modules.
--file
should not be required.
--force-data-update
was called alone, update data/*data
--force-data-update
was called alongside --file
, update data/*data
and outupt <filename>.html
--file
was called alone, output <filename>.html
input('Enter the filename: ')
This is an ideia.
Create a helper class to manage the app's logging.
Example:
def _critical(self, msg, err):
self.logger.error(msg)
self.logger.critical('{}: {}'.format(err.__class__.__name__, err))
raise SystemExit(-1)
This is from model.py but could be used by other classes as well.
HeropediaData doesn't use proper hero name which makes some heroes to appear out of order.
would be useful to gauge when the next patch is coming out
maybe add
'Operating System :: MacOS',
'Operating System :: Microsoft :: Windows',
also
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 2.3
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.0
Programming Language :: Python :: 3.1
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Come up with a way to
Update README.md
Create FAQ (and link it in READMEs) for helping people use pip install --user
(fixing ubuntu $PATH)
Hi ๐
This is my first visit to this fine repo, but it seems you have been working hard to keep all dependencies updated so far.
Once you have closed this issue, I'll create seperate pull requests for every update as soon as I find one.
That's it for now!
Happy merging! ๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.